Code Monkey home page Code Monkey logo

jmeter-exercises's Introduction

โšก 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

jmeter-exercises's People

Contributors

qainsights avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jmeter-exercises's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.