JMeter Performance Testing
Hi!! friends in this blog we are going to see the performance testing — device creation, Network sync, Provision
Device creation
Thread Group
The Recorded Script we have to open in the jmx file into the Apache J meter
Note: Record the script with the help of a Blaze meter
Note: In the Thread group I have given the no of users as 100 and should set the ramp up seconds the time that takes for the Device creation one by one
J meter slider
Thread group holds the controllers, samplers config elements also the listeners Under the Thread Group we can find the
Device creation
In device creation we used “post”, the body data as device name,description, uuid, type, organization, location, email id, mobile no as a variable
CSV Data Set
Under the Test plan, we have to add the=> Config element and set the CSV data set config
In the csv data set config, we have to add:
- File name: Set the File name with path
- File encoding: UTF-8
- Variable names: device id
- We should add the file with the filename, and within the file, it should contain the UUID number.
View Results in Tree
Under the Thread group we can
add=>Listeners=>view results in tree
- To view the results in tree structure
- Green colour indicates the script run successfully
- Red colour indicates the script is getting error
- Can view request along with the response parameter
View Results in Table
Under the Thread group we can
add=>Listeners=>view results in table
To view the results in the table structure
- START TIME — we can see the start time of each user
- THREADNAME — It is nothing but the thread group name which we give
- LABEL — label is nothing but the request name
- SAMPLE TIME — Sample time is nothing but millisecond how much time it takes
- STATUS — Proper response — will indicates the green colour Invalid response indicates — red colour
- BYTES — Amount of data receive ==> response
- SENT BYTES — amount of data sent ==>Request
- LATENCY — time from before sending the request to just after receiving the first part of the response
- CONNECT TIME — time taken to connect to the server
Network Sync
In Network sync we used “post”, the body data as object which we need
- Set the variable name as ${uuid} in HTTP Header Manager
CSV Data Set
Under the Test plan, we have to add the=> Config element and set the CSV data set config
In the csv data set config, we have to add:
- File name: Set the File name with path
- File encoding: UTF-8
- Variable names: uuid
- We should add the file with the filename, and within the file, it should contain the UUID number.
View Results in Tree
Under the Thread group we can
add=>Listeners=>view results in tree
- To view the results in tree structure
- Green colour indicates the script run successfully
- Red colour indicates the script is getting error
- Can view request along with the response parameter
View Results in Table
Under the Thread group we can
add=>Listeners=>view results in table
To view the results in the table structure
- START TIME — we can see the start time of each user
- THREADNAME — It is nothing but the thread group name which we give
- LABEL — label is nothing but the request name
- SAMPLE TIME — Sample time is nothing but millisecond how much time it takes
- STATUS — Proper response — will indicates the green colour Invalid response indicates — red colour
- BYTES — Amount of data receive ==> response
- SENT BYTES — amount of data sent ==>Request
- LATENCY — time from before sending the request to just after receiving the first part of the response
- CONNECT TIME — time taken to connect to the server
Provison
In Provision we used “post”, the body data as an object which we need and give the mac address & uuid as variable name
CSV Data Set
Under the Test plan, we have to add the=> Config element and set the CSV data set config
In the csv data set config, we have to add:
- File name: Set the File name with path
- File encoding: UTF-8
- Variable names: uuid,mac_address
- We should add the file with the filename, and within the file, it should contain the UUID number and mac address
View Results in Tree
Under the Thread group we can
add=>Listeners=>view results in tree
- To view the results in tree structure
- Green colour indicates the script run successfully
- Red colour indicates the script is getting error
- Can view request along with the response parameter
View Results in Table
Under the Thread group we can
add=>Listeners=>view results in table
To view the results in the table structure
- START TIME — we can see the start time of each user
- THREADNAME — It is nothing but the thread group name which we give
- LABEL — label is nothing but the request name
- SAMPLE TIME — Sample time is nothing but millisecond how much time it takes
- STATUS — Proper response — will indicates the green colour Invalid response indicates — red colour
- BYTES — Amount of data receive ==> response
- SENT BYTES — amount of data sent ==>Request
- LATENCY — time from before sending the request to just after receiving the first part of the response
- CONNECT TIME — time taken to connect to the server
Thank You :)