Search code examples
jmetertaurus

How to create global setup in Taurus/jmeter


I want to create a setup scenario that runs once per test execution, creates dependencies for my tests and saves a reference to them in global properties. I can not find any examples of this.

As a more concrete example I want to load test my comment section. I want to create a single blog post then write a bunch of comments to the same blog post. I want to do these comments concurrently across threads using execution.


Solution

  • For vanilla JMeter you can consider using setUp Thread Group which is designed for implementing the preconditions, the values which you need to define globally can be populated using __setProperty() function to keep them in memory or stored into external file(s) using i.e. Flexible File Writer

    Once you come up with a proper JMeter .jmx script you should be able to execute it using Taurus and see real-time results, define pass/fail criteria, etc.