Using Simple Thread Group
Suppose there is below scenario which we want to achieve in jmeter but the problem is that how we will design our scenario to simulate the number of login and logout transactions equals to number of users and we want to run the test by the duration.
Total vusers = 5
Login Transaction = 5
Search Transaction = 30
Logout Transaction = 5
Ramp up = 50 sec
Total Duration = 300 sec
In the above scenario how to simulate 5 login and logout transaction
1.In thread group , set Number of Threads = 5 , Ramup Period = 50 sec and Loop Count = 1
2.Use Once Only Controller for login and logout request and Runtime controller for Search request.
3.In Runtime Controller , set Runtime = 300 sec.
4. Use Constant throughput Controller to control the Search transaction
5. Run the script and see the results, you will get desired scenario.





No comments:
Post a Comment