方案: CSV文件包含5个用户名和密码,以下是设置 在EOF上回收:false 在EOF上停止线程:是的 共享模式:当前线程组
Total there are 3 thread group below are the settings:
Thread 1 : Numbers of Thread = 1, Loop Count l; for this thread group single user run for 1 time
Thread 2 : Numbers of Thread = 2, Loop Count 5; for this thread group two user and each user run for 5 time
Thread 3 : Numbers of Thread = 3, Loop Count 3; for this thread group three user and each user run for 3 time
以下是我的测试配置:
Test Plan
HTTP Header Manager
HTTP Request Defaults
CSV Data Set Config
Test Fragment
Login - HTTP Request
JSON Extractor
Thread Group - 1
Module Controller - Login
Transaction - HTTP Request
HTTP Header Manager
Thread Group - 2
Module Controller - Login
Finance - HTTP Request
HTTP Header Manager
Thread Group - 3
Module Controller - Login
Insurance - HTTP Request
HTTP Header Manager
这里是线程2和线程3;它运行两个2和3个用户;但不是循环计数不起作用。
答案 0 :(得分:0)
循环将无效,因为您已配置“在EOF上回收:false”。使它成为现实,它将起作用。但是,它会回收利用。
如果你想要一个线程组的特定用户,那么在每个线程组下使用3个不同的csv,在第一个线程组的csv中放置1个用户,在第二个线程组的第二个csv中放置2个用户,在第三个csv中放入3个用户第3个线程组。