In this video, Mike Smith demonstrates how to run the 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 mode,…and also specifies a test file…with it's associated switches.…
And then I'm going to hit return.…
- What is load testing and why do we do it?
- Creating and running load tests
- Improving a test by adding timers and assertions
- Running your load test through the CLI
- Saving CLI results to a .jtl file
- Importing a .jtl file to JMeter graphs
- Creating an HTML dashboard at CLI runtime