How to record the script _ saving test plan _ Execution order

Saving the test plan
You can save an entire Test Plan either by using Save or "Save Test Plan As ..." from the File menu. Or by default save button will be there in jmeter hit on that save the script by providing a name .jmx.
Running a test plan
You can run your Test Plan choosing Start (Control + r) from the Run menu item. When JMeter is running, it shows a small green box at the right hand end of the section just under the menu bar.
The numbers to the left of the green box are the number of active threads / total number of threads. These only apply to a locally run test; they do not include any threads started on remote systems when using client-server mode .
In the following screenshot you can see the save and run buttons.



Recording Script with Jmeter
we can record the script using the jmeter non-test element( Http test script recorder)
Step 1: open jmeter
step 2: add to non test element (HTTp test script recorder)
step 3:Now in http test script window,port value will be 8080 by default,otherwise set it to 8080
step 4:In the drop down list,select recording controller as the target controller.
In the next step,add recording controller,under http test script recorder.Recording controller enables to record script under it,so that it will be in a structured way.
Step 5 :The workbench is now ready to record scripts.Now open web browser and go to settings.
Step 6:In settings,go to proxy server and check the check box.
Step 7:Type localhost in the address text box and in the port provide the port number which we have given to proxy server port ie 8080.
step 8:Finally click ok button and close the window.
Step 9:To start recording the script, type url of the application in the browser and press enter. Now in recording controller under workbench,some http request will be recorded. For eg, if the static web site has five pages and if we want to record those five pages in different group or specified name,then it can be done.
Step 10:In the next step, add simple controller to the http test script recorder and select the entire http request from the recording controller and paste it under simple controller.
Step 11:Once the recording is done,go to internet options and uncheck the check box in proxy server and save it.
Step 12:In the next step,copy the script to test plan under thread group.
Step 13:Finally, add listeners to the thread group.Add agrregate grph,view results tree and response time graph to view the results.
Note: see the following screenshot for reference


Execution order of Test Elements

Following is the execution order of the test plan elements:
1. Configuration elements
2. Pre-Processors
3. Timers
4. Sampler
5. Post-Processors (unless SampleResult is null)
6. Assertions (unless SampleResult is null)
7. Listeners (unless SampleResult is null)

No comments:

Post a Comment