From the course: JMeter: Performance and Load Testing
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Running your load test through the CLI - Apache JMeter Tutorial
From the course: JMeter: Performance and Load Testing
Running your load test through the CLI
- [Instructor] So I've created my load test that hits the London hotel site a number of times and returns results. I've edited it and debugged it and now I want to run it properly in the command line. Firstly, I need to make sure I'm in the right location. I need to be in the bin folder of the jmeter installation directory. From there I'm going to be using the sh jmeter.sh command. But, before I press return I'm going to add a couple of switches. I'm first going to add -n switch, this test jmeter to run in non-gooey mode. This means we essentially need to tell jmeter everything it needs to do with this load test on this command line. To specify a test file that I'm going to run, I need to include a -t switch, followed by the name of the test file. I've moved this file to the jmeter bin folder, but you'll find this in the exercise files. So, to recap I've built a command that opens jmeter, tells it to run on non-gooey…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.