Code Monkey home page Code Monkey logo

jmeteruserloadtest's Introduction

JMeter User Load Test

Creating a JMeter test plan with a thread group which can run CRUD operations on user resource at a given server. Each creates operations need to have different email address randomly generated before sending the request. Fetch authentication token and user id provided a response to create user request. An authentication token is used as the header in all subsequent requests and user id in URL and body parameter as needed. Finally, have a view result tree listener where we can see all requests with their responses.

Step 1: Add a Thread Group to our test plan

Step 2: Add an HTTP request defaults using the config elements to define default parameters like hostname and port of server needed for all requests.

Step 3: Add an HTTP request sampler to send Create user request

Step 4: Add a BeanShell pre-processor to generate a random email address for creating user request.

Step 5: Add a JSON extractor post-processor to get authentication token and userId from the response of creating user request.

Step 6: Add an HTTP header manager to add authentication token as the header to all subsequent requests.

Step 7: Add Update user, get user and delete user HTTP request sampler for subsequent requests with userId as dynamic variable fetched from creating user post-processor.

Step 8: Add View result tree to get the response to all requests.

Using JMeter version : 5.0

jmeteruserloadtest's People

Contributors

miteshsharma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jmeteruserloadtest's Issues

Not properly explained the steps.

Just a screenshot of the sub-topic is not able to help. Could you please elaborate what all fields we have yo fill and what to fill after every step of yours.

  • Add a HTTP Request Default
  • Add HTTP Request Sampler
    Can't exactly what to fill in these boxes after clicking on these options?

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.