Postman (Newman) ExecutorExecutor type newman allows running Postman collections. It is mostly useful for functional testing. Internally, Newman utility is used to run tests, providing 100% Postman compatibility. Simplest example to run a Postman collection: execution: - executor: newman iterations: 1 scenario: functional/postman-sample-collection.json Supported features:
Concurrency, ramp-up and hold-for options are not supported at the moment. Timeouts and Pauses Between RequestsTwo options timeout and think-time enable you to specify timeout for requests, and also a pause between requests to throttle down the load. execution: - executor: newman scenario: simple scenarios: simple: script: functional/postman-sample-collection.json timeout: 1s think-time: 0.5s Specifying Environment and Global VariablesTo specify environment or global variables, you need to provide environment and/or globals item under scenario description section. If the value of option is string, it is treated as path to JSON file containing variables description. Otherwise, it is interpreted as key/value pairs. execution: - executor: newman scenario: simple scenarios: simple: script: functional/postman-sample-collection.json environment: path/to/environment.json globals: glob1: val1 glob2: val2 SettingsBy default, Taurus will install Newman and its dependencies with npm into ~/.bzt/newman/ directory. You can customize it with tools-dir module setting. modules: newman: tools-dir: my-dir |
On this page:
Quick Links: |