Wednesday, 3 May 2023

How to create JMX script from Jmeter?




 SDET Interview Question and Answers

TestNG Interview questions and answers

Jenkins Interview Questions and Answers

Appium Interview Questions and Answers

Selenium Interview Questions and answers

Java Coding Interview Questions and Answers

GIT Interview Questions and Answers


If you are new to JMeter and performance testing then refer the post below:

Introduction to JMeter



🔴What is JMX script and why we need it ?


🚀JMX scripts are used in performance testing to simulate user behavior and generate load on the application, enabling testers to measure its performance under different conditions.


🚀JMX scripts consist of various elements such as thread groups, samplers, controllers, listeners, and timers. 


🚀Thread groups represent a group of virtual users that will simulate load on the application. 


🚀Samplers are used to simulate requests made by virtual users, while controllers are used to define the flow of requests. 


🚀Timers can be used to introduce delays between requests.


🔴How to create JMX script from JMeter?

Here are the steps to create a JMX script to test www.reqres.in with 100 users:

 ðŸš€Open JMeter and create a new Test Plan.

 ðŸš€Right-click on the Test Plan and select Add > Threads (Users) > Thread Group.

 ðŸš€In the Thread Group, set the following properties:Number of Threads: 100 

Ramp-Up Period: 10 (this means that each user will be started with a delay of 100ms between them)

 Loop Count: 1


🚀Right-click on the Thread Group and select Add > Sampler > HTTP Request.


🚀In the HTTP Request sampler, set the following properties:

Name: Reqres Request 

Protocol: http

Server Name or IP: www.reqres.in

Path: /api/users?page=1

🚀Right-click on the HTTP Request sampler and select Add > Listener > View Results Tree. 


🚀Save the Test Plan as a JMX file.


🚀This script will send a GET request to www.reqres.in/api/users?page=1 with 100 concurrent users and capture the response using the View Results Tree listener. You can customize this script by adding additional samplers, modifying the request properties, or adding more listeners to capture specific metrics.


*******************************************************************
For any doubts or career guidance from me, reach out here : https://topmate.io/sidharth_shukla

********************************************************************

Do remember that knowing Linux is one of the most important aspect to work as an SDET.

Basic Linux Commands for Automation QA


****************************************

TOP 15 BDD - CUCUMBER Interview Q&A


************************************************

✍️AUTHORLinkedIn Profile

************************************************

Learn (API-Microservice)Testing+ Selenium UI Automation-SDET with Self Paced Videos prepared by FAANG employees and LIVE Doubt Session 

SDET TRANING VIDEOS AVAILABLE with Live Doubt Session(course-1 below,API TRaining Videos With Class Notes and Coding Set) and (API++Mobile+UI, course-1 & 2 below) Check Training Page for Course Content or reach out @whatsapp +91-9619094122. 
This includes classnotes, 300+ interview questions, 3 projects, Java Coding question set for product companies along with career guidance from FAANG employees for Automation and SDET.

For more details whatsapp : https://lnkd.in/dnBWDM33

*************************************************



SeleniumWebdriver Automation Testing Interview Questions:

https://automationreinvented.blogspot.com/search/label/SeleniumWebdriver

API Testing Interview Question Set:

https://automationreinvented.blogspot.com/2022/03/top-80-api-testing-interview-questions.html

DevOps Interview Q&A:

https://automationreinvented.blogspot.com/2021/11/top-11-devops-interview-questions-and.html 

Kubernetes Interview Question Set

https://automationreinvented.blogspot.com/search/label/Kubernetes

Docker Interview Question Set

https://automationreinvented.blogspot.com/Docker

Linux Interview question Set

https://automationreinvented.blogspot.com/search/label/Linux

Automation Testing/SDET Framework Design

https://automationreinvented.blogspot.com/search/label/FrameworkDesign

Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java

GIT Interview Question Set:

https://automationreinvented.blogspot.com/2021/09/top-40-git-interview-questions-and.html

Coding Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Coding%20Questions

Mobile Testing Interview Question Set:

https://automationreinvented.blogspot.com/search/label/Mobile%20Testing

Python Interview Question Set for QAE - SDET - SDE:

https://automationreinvented.blogspot.com/search/label/Python

No comments:

Post a Comment

All Time Popular Posts

Most Featured Post

Introduction to Web Testing with Playwright

  Introduction to Web Testing with Playwright 📌  Telegram Group:  https://t.me/+FTf_NPb--GQ2ODhl 📌  YouTube channel:  https://lnkd.in/gGUG...