Skip to content

QAInsights/JMeter-Exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

⚑ Apache JMeter Exercises

contributions welcome saythanks

JMeter Exercise

These exercises were designed to learn JMeter by doing. This exercise series is a part of Performance Testing Trilogy πŸ”Ί.

Looking for LoadRunner Exercises? Here it is.

Currently these series under active development.

⚠ Important Notes

  • πŸ›‘ Please do not inject any load into the below mentioned demo web application.
  • πŸ†˜ If you do not know how to proceed with the exercises, please raise an issue. I will help you out. But before that, please watch all my JMeter tutorials in YouTube πŸ“½.

πŸ›  Enviroment Setup

Below exercises were created using the following configurations:

  • Apache JMeter 5.4.1
  • Sampler: HTTP Sampler
  • OS: Windows 10 Pro 10.0.19041 Build 19041
  • CPU 2 Cores, 4 Logical Processors and Intel Core i7-7500U CPU @ 2.70GHz
Component Version
Apache JMeter 5.4.1
JMeter Plugins 1.6
OpenJDK 15

πŸ‘ Exercises

00 Record the simple business flow
  • Start recording
  • Launch Pet Store application
  • Click on Fish
  • Click on the product ID
  • Click on Return to FISH
  • Stop recording
  • Add a View Results Tree listener
  • Run the test plan
  • Go thru each sampler response data

10 Use CSV Data Set Config for the products [Fish, Dogs, etc.]

Use CSV Data Set Config for the products and then Replay.

Hint: https://petstore.octoperf.com/actions/Catalog.action?viewCategory=&categoryId=<P_PRODUCTS>


30 Extract the footer text
  • Launch Pet Store application
  • Extract the footer text www.mybatis.org

40 Extract the Title text
  • Launch Pet Store application
  • Extract the title

Hint: Use <title></title> tags in Boundary Extractor


50 Extract the types of products
  • Launch Pet Store application
  • Extract the types of products and its count

Hint: Use href="/actions/Catalog.action?viewCategory=&categoryId=(.+?)"


60 Validate Cart
  • Launch Pet Store application
  • Click on the cart icon
  • Validate the text Your cart is empty. and the cart total $0.00

70 Find all the hyperlinks
  • Launch Pet Store application
  • Find all the hyperlinks
  • Print them in the Log Viewer

80 Update Cart up to $100 worth of items
  • Launch Pet Store application
  • Add items to the cart upto $100 worth

90 Register an Account
  • Launch Pet Store application
  • Click on Sign in
  • Click on Register Now
  • Fill the mandatory details
  • Click on Save Account Information
  • Login with the credentials you created
  • Logoff

100 Login, Search, and Logoff
  • Launch Pet Store application
  • Click on Sign in
  • Enter the credentials you created in previous exercise
  • Perform a search for ES
  • Click on Search
  • Click on the product
  • Click on Sign Out

⏭ What's next?

πŸ’° Donate

β˜• Buy me a tea