为包含多个线程组的JMeter脚本创建Taurus yml的最佳实践

ne5o7dgx  于 2023-08-05  发布在  其他
关注(0)|答案(1)|浏览(136)

JMeter脚本开发如下:
测试计划

  • 并发线程组1(目标并发:${__tstFeedback(TST Name,1,600,50)})
  • 取样器1
  • 采样器2(包含一个全程整形计时器)
  • 并发线程组2(目标并发:${__tstFeedback(TST Name,1,100,50)})
  • 取样器1
  • 采样器2(包含一个全程整形计时器)。.

对于Taurus yml,我创建了以下内容:

  1. settings:
  2. env:
  3. jmeterVersion: 5.5
  4. execution:
  5. - scenario: peak-test
  6. hold-for: 15m
  7. scenarios:
  8. peak-test:
  9. script: testscript.jmx
  10. modifications:
  11. disable:
  12. - Thread Group 2
  13. - Thread Group 3
  14. - Thread Group 4
  15. modules:
  16. memory-xmx: 6G
  17. detect plugins: true
  18. reporting:
  19. - module: final-stats
  20. - module: console

字符串
我在网上看了几篇关于如何创建一个Taurus yml的文章,其中包含多个具有不同吞吐量需求的线程组。我使用上面的yml的方法是为每个线程组创建不同的yml文件,并禁用吞吐量不同的线程组。
然后我就可以使用命令运行每个yml:
bzt testscript1.yml、testscript2.yml等。等等。
从实施的Angular 来看,这是最佳做法吗?

guykilcj

guykilcj1#

本人根据以下内容修改了情景章节:

  1. scenarios:
  2. peak-test:
  3. script: APM_Performance_Test_latest.jmx
  4. variables:
  5. sender_connections: 100
  6. receiver_connections: 50
  7. duration: 900
  8. modifications:
  9. thread-groups:
  10. - name: PDCS Send MQ - CTG
  11. timers:
  12. - throughput-shaping:
  13. startRampUp: 0
  14. steps:
  15. - duration: ${duration}
  16. target: 55
  17. concurrency: auto
  18. - name: PNRGOV Send MQ - CTG
  19. timers:
  20. - throughput-shaping:
  21. startRampUp: 0
  22. steps:
  23. - duration: ${duration}
  24. target: 55
  25. concurrency: auto
  26. - name: EBORDERS XML Send MQ - CTG
  27. timers:
  28. - throughput-shaping:
  29. startRampUp: 0
  30. steps:
  31. - duration: ${duration}
  32. target: 2
  33. concurrency: auto

字符串
当TST反馈函数在脚本中时,它看起来不工作,因为吞吐量和线程数没有相应地生成。上面的工作更好。很高兴听到关于如何提高效率的反馈。- 谢谢-谢谢

展开查看全部

相关问题