Hi Everyone,
I am here to hope getting some help that how should I know the all APIs of pm.expect ?
For example, as far as I know there are:
pm.expect().to.equal();
pm.expect().to.have.property(’’, ‘’);
pm.expect().to.have.property(’’, ‘’);
But what else ? Where can I find the all methods of pm.expect ?
Thanks
@su.ziying
This blog post might be helpful. Writing tests in Postman
From that article:
“pm.expect()
The pm.expect() assertion function was built on the shoulders of the popular JavaScript test library ChaiJS BDD. Using a similar syntax, pm.expect() makes it easy to write readable tests, and you can deal with assertions of data from a response or variables.”
Link to the ChaiJS BDD documentation: ChaiJS BDD
Thanks @mick-mcbride. It’s really helpful