Monday, January 28, 2008

Running the first Test

In my last post I shared how to record a Test. Now is the time to run it. Running a Test means that now we are going to have the results of our test here. Before we go into the detailed step to step I want to share something about the Listeners. Listeners are the Elements of a Jmeter Script which are used to view the response. You can see that we have a number of listeners. To view this list Right-Click on Thread Group and then select "Add > Listeners".



In my last post we have added a listener 'View Results Tree' and now we are going to see why we have added that.

Pre-Condition: It is assumed that you have recently recorded the test as told in my last post. If you haven't read my last post then better read it first and if you are in no mood to do that then I am assuming that you have already recorder a test and your proxies has been set on the browser. Moreover, Open your test script on the Jmeter before starting the following steps

1. Select the Listener, 'View Results Tree' in my case, from the Left Panel



2. Click on "Run > Start" or use the keyboard shortcut '^-R' (Ctrl+R on Windows)



3. Observe that when the Listener is selected, a list of results is displayed on the Jmeter and are displayed according to the Listener which was selected. In our case, as we have selected 'View Results Tree' listener, the list of results is displayed in a form of a tree as displayed below.


When a node from this tree is selected, the specific information related to the node is displayed on the right side of the page.


Similarly, different results can be observed using different Listeners. Each Listener displays the same output in a different way. These different ways are helpful in testing the different areas.

So I have told you about how to run a Jmeter Test Script and how to use listeners to view the results, in a very graphical way. Now go ahead and try to use each and every listener on the test script and observe the difference yourself

No comments: