如何在 Taurus/jmeter 中创建全局设置

How to create global setup in Taurus/jmeter

我想创建一个每次测试执行运行一次的设置场景,为我的测试创建依赖项并在全局属性中保存对它们的引用。我找不到这方面的任何例子。

作为一个更具体的例子,我想对我的评论部分进行负载测试。我想创建一个博客 post,然后向同一个博客 post 写一堆评论。我想使用执行跨线程同时进行这些评论。

对于普通的 JMeter,您可以考虑使用 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

一旦你想出了一个合适的 JMeter .jmx 脚本,你应该能够 execute it using Taurus and see real-time results, define pass/fail criteria,等等