In this post we will learn how to record a test scenario and run it in Windows. Follow step by step process as describe below,
- Download Apache JMeter.
- Download Java. And install it.
- Unzip Apache JMeter file. And open jmeter.bat.
- Add users by right clicking on the Test plan. Test plan-> Add-> Threads (Users)-> Thread Group.
- Add Thread group name, Number of threads, Ramp up period and Loop count. Remember in JMeter Thread meaning User. Replace thread word with user. Add User group name, Number of users and others. Ramp up period in sec = Ramp up period/ Number of users. Loop count can be forever also. If you use forever loop than you have manually stop the test.
- In your Mozilla Firefox driver go to Options-> Networks-> Manual proxy. Add localhost in your server field and 8080 in the port number field.
- Add Recording controller.
- Right click on the Thread group. Add-> Logic controller-> Recording controller.
- Perform the test scenario in the browser.
- After finishing the scenario hit the Stop button in HTTP(S) Test Script Recorder of JMeter.
- Observe that all test steps are added in Recording controller under the Thread group as HTTP requests.
- It is a good practice to clear your previous records before saving the test plan. Try to do it every time you save.
- Save your test plan and hit the play button.
- By hitting the play button you are saying to JMeter, run the recorded test for 50 users. 1 user will be added every second. Running the loop 5 times, that will be 50*5 times for all users.
- After test run process is finish check the Summery report for test data.
Please leave a reply, about this article was helpful or not? Suggestions of improvements are also welcome. Thanks for your time.
Very nice article. However, need to be more descriptive Beginner would appreciate more if all steps are mentioned in descriptive manner..
ReplyDeleteThank you very much, I appreciate your feedback.
Delete