Skip to content

postman.class.test

Set a test script at the class level for Postman export.

Usage

properties
postman.class.test=groovy:'''
pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});
'''

This script will be applied to all API methods within the class when exporting to Postman.

See Also

Released under the Apache-2.0 License.