Skip to content

postman.class.prerequest

Set a pre-request script at the class level for Postman export.

Usage

properties
postman.class.prerequest=groovy:'''
console.log("Pre-request for class: " + it.name())
'''

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.