Using JMeter with Yanel

Using JMeter

JMeter can be used either interactively by running the GUI (JMETER_HOME/bin/jmeter), or through the JMeter Ant Task. For the complete JMeter documention, see http://jakarta.apache.org/jmeter/usermanual/index.html

How to use the jmeter-ant-task

Included in yanel is a jmeter testplan. you can find it under local/test/data/jmeter/testplan/yanel_test_plan.jmx resp. src/realms/test/yanel/data/jmeter/testplan/yanel_test_plan.jmx

To make it work you need to install jmeter2.2 (jmeter2.1 will write the output in a different format hence the xslt included in yanel will not work) on your system and configure the path to your jmeter installation in src/build/local.build.properties jmeter.home.dir

Also set jmeter.save.saveservice.output_format=xml in the jmeter.properties of your jmeter installation.

To execute the test just type ./build.sh jmeter.

You will find the results in local/test/data/jmeter/jmeter-results/ resp. http://localhost:8080/yanel/test/jmeter/jmeter-results/

Note: turn off SSL.

Setting up a test plan

JMeter test plans are XML files, but generally too comlicated to edit by hand, so use the JMeter GUI to set up a test plan.

Here is a basic example:

This test plan should now look like this:

Test Plan
|__ Thread Group
|__ HTTP Request Defaults
|__ Loop Controller
| |__ HTTP Request
| | |__ Response Assertion
| |__ Constant Timer
|__ Graph Results
|__ View Results in Table

Login

If you need to login to the website for testing, you will need these 2 additions to your thread group:

For more detailed information, see the JMeter Documentation. Also, it might help to use the JMeter Proxy to figure out how the login procedure is actually working, or to debug it if it doesn't seem to be doing what you expect.

More Documentation

Other resources on testing: