运行 用户在 csv 中定义;对于在线程组-Jmeter 中定义的循环数
Run user defined in csv; for the number of loop defined In Thread Group -Jmeter
场景:
CSV 文件包含 5 个用户名和密码,下面是设置
在 EOF 上回收:false
在 EOF 上停止线程:true
共享模式:当前线程组
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 用户运行;但不是循环计数不起作用。
循环将不会像您配置的那样运行 "Recycle on EOF: false"。让它成为现实,它就会起作用。但是,它会回收。
如果您想要特定的 user/s 用于一个线程组,则在每个线程组下使用 3 个不同的 csv,并将 1 个用户放入第一个线程组的 csv 中,将 2 个用户放入第二个 csv 中,用于第二个线程组和 3 个用户在第 3 个线程组的第 3 个 csv 中。
场景: CSV 文件包含 5 个用户名和密码,下面是设置 在 EOF 上回收:false 在 EOF 上停止线程:true 共享模式:当前线程组
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 用户运行;但不是循环计数不起作用。
循环将不会像您配置的那样运行 "Recycle on EOF: false"。让它成为现实,它就会起作用。但是,它会回收。
如果您想要特定的 user/s 用于一个线程组,则在每个线程组下使用 3 个不同的 csv,并将 1 个用户放入第一个线程组的 csv 中,将 2 个用户放入第二个 csv 中,用于第二个线程组和 3 个用户在第 3 个线程组的第 3 个 csv 中。