Executing a test script
Sometimes, the test scripts to execute have already been recorded and handed over to you to run. In this recipe, we will show you just how to go about executing a script that was prerecorded.
How to do it…
To execute a test script, perform the following steps:
- Open the command line prompt.
- Change to the directory of your JMeter install. We'll refer to this as
JMETER_HOME
.Note
Refer to Appendix for JMeter installation instructions.
- Change
JMETER_HOME
to thebin
directory. - To launch the JMeter GUI on Windows, type in
jmeter.bat
. Alternatively, for Unix/Mac OS, type in./jmeter
. - Navigate to File | Open.
Note
Alternative key binding: Mac OS (Command + O), Windows (Ctrl + O).
- Navigate to the script you want to execute. For example,
Get JMeter Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.