July 13, 2010 0

Combining Performance and Functional Testing, Using Selenium and JMeter.

By Anthony in Writing

In progress.

Combining Performance Testing with Functional Testing:

1) Using JMeter
2) Using Selenium
3) Combining the two

Non-GUI Mode (Command Line mode)

For non-interactive testing, you may choose to run JMeter without the GUI. To do so, use the following command options

-n This specifies JMeter is to run in non-gui mode
-t [name of JMX file that contains the Test Plan].
-l [name of JTL file to log sample results to].
-r Run the test in the servers specified by the JMeter property “remote_hosts”
-R [list of remote servers] Run the test in the specified remote servers

The script also lets you specify the optional firewall/proxy server information:

-H [proxy server hostname or ip address]
-P [proxy server port]

Example : jmeter -n -t my_test.jmx -l log.jtl -H my.proxy.server -P 8000

Summary:

Run jmeter via subprocess, for x amount of time while performing selenium tests.
Methodology: Run jmeter solo for a baseline