Skip to content

This repository contains practice scripts using Jmeter for performance testing. Also a sample request to google and performance results

Notifications You must be signed in to change notification settings

aisabel/Jmeter-TestExamples

Repository files navigation

Jmeter-TestExamples

Description

This repository contains practice scripts using Jmeter for performance testing.
Below a basic guide on how to install,run, architecture folder structure and useful resources.

Architecture folder structure

  • Google-JmeterExample >An example for a request to google and get performance results
  • Examples > Contains the csv sample files
  • Test Plan - IntroductionTestExamples > Contains the actual tests excercises
  • SourcesOfKnowledge > Contains the key tips, cheatsheet, pdf guide with terms

Install

The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. This repository is using version apache-jmeter-5.1.1. The tool can be downloaded at: https://jmeter.apache.org/download_jmeter.cgi

Run Tests:

How to run tests locally by UI

  • Install Jmeter
  • Double click in Jmeter batch file (jmeter.bat)
  • In the top menu go to File > Open and locate the file with the jmx extension (example: Jmeter-IntroductionTestsExamples.jmx)
  • Click on the green top play button > to run all tests
  • Under each ThreadGroup you can see a "View Results Tree". To verify results of the tests individually
  • Summary report displays a table with results

How to run tests from the command line

  • To run the testplan from the command line you need to open a command prompt
  • Traverse locally until jmeter bin folder is located (ex: \apache-jmeter-5.1.1\bin)
  • Run the command: jmeter -n -t -l
  • Parameters:
      -n: This specifies JMeter is to run in cli mode
      -t [name of JMX file that contains the Test Plan].
      -l [name of JTL file to log sample results to]
      .-j [name of JMeter run log file].
      - 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
      -g [path to CSV file] generate report dashboard only-egenerate report dashboard after load test
      -o output folder where to generate the report dashboard after load test. Folder must not exist or be empty

External references:

About

This repository contains practice scripts using Jmeter for performance testing. Also a sample request to google and performance results

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published