Skip to content
cplim edited this page Jan 17, 2013 · 3 revisions

Start JMeter

Run the following commands to show the GUI

ant download_jars
ant run_gui

If everything works, then the JMeter GUI will be shown.

JMeter GUI

Create a Web Sampler

In the GUI, right click on the test plan to create a Thread Group.

JMeter Thread Group Popup

Once created, the Thread Group contents should be displayed.

JMeter Thread Group Display

Then right click on the Thread Group to add a Web Browser Sampler.

JMeter Web Sampler Popup

The Web Browser Sampler contents should be displayed.

JMeter Web Sampler Display

Create a Test script

In the Script pane enter the following commands to change the URL for the Web Browser.

SampleResult.sampleStart();
Browser.get('http://www.google.com');
SampleResult.sampleEnd();

JMeter Web Sampler Script

Run the test by pressing the Start button. The browser should appear and it should go to Google as shown below.

JMeter Web Sampler Browser

See the [detailed example](Web Sampler Explained) for a more in depth discussion on the purpose of the Web Sampler and how to measure the user interactions.

Clone this wiki locally