From the course: JMeter: Performance and Load Testing

Unlock this course with a free trial

Join today to access over 25,400 courses taught by industry experts.

Challenge: Run a load test via CLI

Challenge: Run a load test via CLI - Apache JMeter Tutorial

From the course: JMeter: Performance and Load Testing

Challenge: Run a load test via CLI

All right, so it's time to step away from the GUI. You've built test plans, you've clicked the run button, and now I want you to launch JMeter the way performance testers actually do it day-to-day, through the command line. This challenge looks simple, but don't underestimate it. Once you can run tests through the CLI, you've unlocked automation, CI integration and large scale test execution. Start by opening your command prompt or terminal. Find the test plan you've created earlier in this course. You can also find it in the exercise files. Any valid .jmx file is absolutely fine for this challenge. Now we're going to run the core command jmeter-n-t and then your testplan.jmx filename, then dash l and then your results.jtl filename. Now make sure you replace these placeholders with real filenames. So in our example, it would be jmeter-n-t landonhoteltest.jmx-l landonhotelresults.jtl Once you hit enter…

Contents