SlideShare a Scribd company logo
1 of 24
JMeter Pre-processors – 2
1
In this presentation, we will study some of the JMeter
preprocessors. If you just bump to this page, mind that
there is another article JMeter Pre-processors – 1 in
our blog. What we are going to cover is;
Precise Throughput Timer
Synchronizing Timer
BeanShell Timer
JSR223 Timer
Poisson Random Timer
2
This timer is not having any fixed amount of pause, it
has variable pauses and calculated the throughput as
close as possible to the given number. Although it has
a precise word in the name itself, still throughput not
need to be precise.
For instance, if a user wants to pause with different
times for switching different pages in the website, then
this throughput timer is used without using precise
throughput.
If you want to add this timer, follow these steps:
Go to Thread Group
Add new Sampler
Right-click on Sampler
Click on Add
Click on Timer
Click on Precise Throughput Timer
Precise Throughput Timer
3
Precise Throughput Timer
4
There are multiple fields in Precise Throughput Timer. Let’s go the details of each one.
Name: This is just a name for the timer which will display in the result.
Target throughput: This is for all the groups and samplers. This works as samples per “throughput period.”
Throughput Period- This time is divided with the throughput value and the user gets the samples per second.
Test duration: This is the total time which a test is taken to execute.
Number of threads in a Batch: It shows the total no. of threads in a go.
Delay between the threads- It shows delay time between the threads.
Use approximate throughput when sequence length exceeds: When the samples are less than the limit then this timer will create
the exact no. of samples.
Allowed throughput surplus: It is used when the samples are more than the limit then it increased accordingly.
Random seed: This value can change from 0 to any random value.
Precise Throughput Timer
5
Precise Throughput Timer
6
This timer is used to block the threads until the certain
no. of threads have been blocked. After that all the
blocked threads are released at once thus it increases
the load at many points in the test plan.
For example, After signup in the particular website
with multiple users, and after that all users may log in
at the same time then we can use this timer for the
blocking the process for some time after sign up.
To find this timer, see these steps:
Go to Thread Group
Add new Sampler
Right-click on Sampler
Click on Add
Click on Timer
Click on Synchronizing Timer
Synchronizing Timer
7
Synchronizing Timer
8
This timer also has following sections,
Name: This is just a name for the timer which will
display in the result.
Number of simultaneous users to Group by: It
shows the threads which are ready to release.
Timeout in milliseconds: This time is basically for
the above field to reach the value of the number of
simultaneous users to group by.
Synchronizing Timer
9
Synchronizing Timer
10
The BeanShell Timer is used to create a delay time
between each request.
For example, after Login into the Facebook, User
wants to go to the profile page and wants to update
the profile picture then this timer can be used for the
delay between opening the updating the profile
picture.
For adding this Timer to your sampler, here you go:
Go to Thread Group
Add new Sampler
Right-click on Sampler
Click on Add
Click on Timer
Click on BeanShell Timer
Synchronizing Timer
11
Beanshell Timer
12
This timer displays these fields:
Name: This is just a name for timer which will display
in the result.
Reset bsh. Interpreter before each call: If a user
wants to select this option then the interpreter will be
regenerated for each sample.
Parameters: This is used for the parameters to be
passed to the script.
Script File: This is having a file to run which is a
BeanShell Script.
Script: This is the BeanShell script which returns the
value of the used milliseconds to wait.
Beanshell Timer
13
Beanshell Timer
14
Beanshell Timer
In the above screenshot, no. of threads (TCount) and ramp duration (RPeriod) are used as user-defined variables and
accessed these variables using vars.get (Parameter-name). Thread loop counter argument accessed by bsh.args[].
15
This Timer works same as BeanShell Timer to
generate the delay but the difference is that it
generates the delay between each request using the
JSR223 scripting language.
For example, If a user wants to delay between the
Login and edit profile requests then this timer should
take place.
How to add this timer to your Sampler, Please follow
these steps:
Go to Thread Group
Add new Sampler
Right-click on Sampler
Click on Add
Click on Timer
Click on JSR223 Timer
JSR223 Timer
16
JSR223 Timer
17
This Timer has sections below:
Name: This is just a name for timer which will display
in the result.
Script Language: This is for JSR223 scripting
language.
Parameters: This is used for the parameters to be
passed to the script.
Script File: This is having a file to run which is a
BeanShell Script.
Script compilation caching: It has the cache of
compiled scripting.
Script: This is the BeanShell script which returns the
value of the used milliseconds to wait.
JSR223 Timer
18
JSR223 Timer
In the above screenshot, Scenario is for 3000 milliseconds (3 seconds). If the scenario runs over 3 seconds then The
‘Abc’ value is not required anymore. Here ‘a’ is having the conditions for null and not null situations of scenario timer
and used vars.put method just before returning the value of ‘a’.
19
This Timer basically works as Gaussian Random
Timer for the random amount of pause but the
difference is that the total delay value is an addition of
Poisson distributed value and the offset value.
For example, If a user wants to switch the pages after
Login into the particular website with the distributed
amount of time pauses then this timer should be used.
To add this timer into your sampler follow these steps:
Go to Thread Group
Add new Sampler
Right-click on Sampler
Click on Add
Click on Timer
Click on Poisson Random Timer
Poisson Random Timer
20
Poisson Random Timer
21
This timer contains these fields:
Name– This is just a name for timer which will display
in the result.
Lambda- This value used in milliseconds for the
Poisson distribution.
Constant Delay Offset- This time is to pause in
addition to random delay in milliseconds.
Poisson Random Timer
22
Poisson Random Timer
23
Hope this article could be helpful for you. Don’t forget to get a week trial BASIC plan.
Happy Load Testing!

More Related Content

Similar to JMeter Pre Processors 2

Performance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationPerformance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationJay Jha
 
Jmeter interviewquestions
Jmeter interviewquestionsJmeter interviewquestions
Jmeter interviewquestionsgirichinna27
 
Software testing
Software testingSoftware testing
Software testingnil65
 
Process Synchronization Producer-Consumer ProblemThe purpose o.docx
Process Synchronization Producer-Consumer ProblemThe purpose o.docxProcess Synchronization Producer-Consumer ProblemThe purpose o.docx
Process Synchronization Producer-Consumer ProblemThe purpose o.docxstilliegeorgiana
 
Iasi code camp 12 october 2013 performance testing for web applications with...
Iasi code camp 12 october 2013  performance testing for web applications with...Iasi code camp 12 october 2013  performance testing for web applications with...
Iasi code camp 12 october 2013 performance testing for web applications with...Codecamp Romania
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeterWira Santos
 
Jmeter proxy step_by_step
Jmeter proxy step_by_stepJmeter proxy step_by_step
Jmeter proxy step_by_stepKapil Chawla
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeterNaga Mallala
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Atul Pant
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter Shub
 
Exploring Microoptimizations Using Tizen Code as an Example
Exploring Microoptimizations Using Tizen Code as an ExampleExploring Microoptimizations Using Tizen Code as an Example
Exploring Microoptimizations Using Tizen Code as an ExamplePVS-Studio
 
Performance testing with loadrunner by kc
Performance testing with loadrunner by kcPerformance testing with loadrunner by kc
Performance testing with loadrunner by kckrishna chaitanya
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_ModeDay4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_ModeSravanthi N
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
ApachejmeterabriefintroductionForedoomed
 
Utilizando Proxy no Jmeter Passo a Passo
Utilizando Proxy no Jmeter Passo a PassoUtilizando Proxy no Jmeter Passo a Passo
Utilizando Proxy no Jmeter Passo a PassoIsmael Camargo
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
RxJava pour Android : présentation lors du GDG Android Montréal
RxJava pour Android : présentation lors du GDG Android MontréalRxJava pour Android : présentation lors du GDG Android Montréal
RxJava pour Android : présentation lors du GDG Android MontréalSidereo
 

Similar to JMeter Pre Processors 2 (20)

Performance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authenticationPerformance testing using Jmeter for apps which needs authentication
Performance testing using Jmeter for apps which needs authentication
 
Jmeter interviewquestions
Jmeter interviewquestionsJmeter interviewquestions
Jmeter interviewquestions
 
Diesel load testing tool
Diesel load testing toolDiesel load testing tool
Diesel load testing tool
 
Software testing
Software testingSoftware testing
Software testing
 
Process Synchronization Producer-Consumer ProblemThe purpose o.docx
Process Synchronization Producer-Consumer ProblemThe purpose o.docxProcess Synchronization Producer-Consumer ProblemThe purpose o.docx
Process Synchronization Producer-Consumer ProblemThe purpose o.docx
 
Iasi code camp 12 october 2013 performance testing for web applications with...
Iasi code camp 12 october 2013  performance testing for web applications with...Iasi code camp 12 october 2013  performance testing for web applications with...
Iasi code camp 12 october 2013 performance testing for web applications with...
 
Automation - Apache JMeter
Automation - Apache JMeterAutomation - Apache JMeter
Automation - Apache JMeter
 
Jmeter proxy step_by_step
Jmeter proxy step_by_stepJmeter proxy step_by_step
Jmeter proxy step_by_step
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
Performance Test Plan - Sample 1
Performance Test Plan - Sample 1Performance Test Plan - Sample 1
Performance Test Plan - Sample 1
 
Basic of jMeter
Basic of jMeter Basic of jMeter
Basic of jMeter
 
Pdf jmeter
Pdf jmeterPdf jmeter
Pdf jmeter
 
Exploring Microoptimizations Using Tizen Code as an Example
Exploring Microoptimizations Using Tizen Code as an ExampleExploring Microoptimizations Using Tizen Code as an Example
Exploring Microoptimizations Using Tizen Code as an Example
 
Performance testing with loadrunner by kc
Performance testing with loadrunner by kcPerformance testing with loadrunner by kc
Performance testing with loadrunner by kc
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_ModeDay4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
Day4_Part 1_Apache_JMeter_Performance_Test_Execution_GUI_Mode
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
Utilizando Proxy no Jmeter Passo a Passo
Utilizando Proxy no Jmeter Passo a PassoUtilizando Proxy no Jmeter Passo a Passo
Utilizando Proxy no Jmeter Passo a Passo
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
RxJava pour Android : présentation lors du GDG Android Montréal
RxJava pour Android : présentation lors du GDG Android MontréalRxJava pour Android : présentation lors du GDG Android Montréal
RxJava pour Android : présentation lors du GDG Android Montréal
 

Recently uploaded

Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Maxim Salnikov
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanNeo4j
 
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale IbridaUNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale IbridaNeo4j
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAShane Coughlan
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfkalichargn70th171
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Andreas Granig
 
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-CloudAlluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-CloudAlluxio, Inc.
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Conceptsthomashtkim
 
Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...Varun Mithran
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdftimtebeek1
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIInflectra
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfICS
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfWSO2
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Eraconfluent
 
Rapidoform for Modern Form Building and Insights
Rapidoform for Modern Form Building and InsightsRapidoform for Modern Form Building and Insights
Rapidoform for Modern Form Building and Insightsrapidoform
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...drm1699
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMarkus Moeller
 

Recently uploaded (20)

Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit MilanWorkshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
Workshop: Enabling GenAI Breakthroughs with Knowledge Graphs - GraphSummit Milan
 
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale IbridaUNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
 
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCAOpenChain Webinar: AboutCode and Beyond - End-to-End SCA
OpenChain Webinar: AboutCode and Beyond - End-to-End SCA
 
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdfThe Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
The Evolution of Web App Testing_ An Ultimate Guide to Future Trends.pdf
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-CloudAlluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
 
Encryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key ConceptsEncryption Recap: A Refresher on Key Concepts
Encryption Recap: A Refresher on Key Concepts
 
Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...Incident handling is a clearly defined set of procedures to manage and respon...
Incident handling is a clearly defined set of procedures to manage and respon...
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST API
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
Rapidoform for Modern Form Building and Insights
Rapidoform for Modern Form Building and InsightsRapidoform for Modern Form Building and Insights
Rapidoform for Modern Form Building and Insights
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Microsoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdfMicrosoft365_Dev_Security_2024_05_16.pdf
Microsoft365_Dev_Security_2024_05_16.pdf
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 

JMeter Pre Processors 2

  • 2. 1 In this presentation, we will study some of the JMeter preprocessors. If you just bump to this page, mind that there is another article JMeter Pre-processors – 1 in our blog. What we are going to cover is; Precise Throughput Timer Synchronizing Timer BeanShell Timer JSR223 Timer Poisson Random Timer
  • 3. 2 This timer is not having any fixed amount of pause, it has variable pauses and calculated the throughput as close as possible to the given number. Although it has a precise word in the name itself, still throughput not need to be precise. For instance, if a user wants to pause with different times for switching different pages in the website, then this throughput timer is used without using precise throughput. If you want to add this timer, follow these steps: Go to Thread Group Add new Sampler Right-click on Sampler Click on Add Click on Timer Click on Precise Throughput Timer Precise Throughput Timer
  • 5. 4 There are multiple fields in Precise Throughput Timer. Let’s go the details of each one. Name: This is just a name for the timer which will display in the result. Target throughput: This is for all the groups and samplers. This works as samples per “throughput period.” Throughput Period- This time is divided with the throughput value and the user gets the samples per second. Test duration: This is the total time which a test is taken to execute. Number of threads in a Batch: It shows the total no. of threads in a go. Delay between the threads- It shows delay time between the threads. Use approximate throughput when sequence length exceeds: When the samples are less than the limit then this timer will create the exact no. of samples. Allowed throughput surplus: It is used when the samples are more than the limit then it increased accordingly. Random seed: This value can change from 0 to any random value. Precise Throughput Timer
  • 7. 6 This timer is used to block the threads until the certain no. of threads have been blocked. After that all the blocked threads are released at once thus it increases the load at many points in the test plan. For example, After signup in the particular website with multiple users, and after that all users may log in at the same time then we can use this timer for the blocking the process for some time after sign up. To find this timer, see these steps: Go to Thread Group Add new Sampler Right-click on Sampler Click on Add Click on Timer Click on Synchronizing Timer Synchronizing Timer
  • 9. 8 This timer also has following sections, Name: This is just a name for the timer which will display in the result. Number of simultaneous users to Group by: It shows the threads which are ready to release. Timeout in milliseconds: This time is basically for the above field to reach the value of the number of simultaneous users to group by. Synchronizing Timer
  • 11. 10 The BeanShell Timer is used to create a delay time between each request. For example, after Login into the Facebook, User wants to go to the profile page and wants to update the profile picture then this timer can be used for the delay between opening the updating the profile picture. For adding this Timer to your sampler, here you go: Go to Thread Group Add new Sampler Right-click on Sampler Click on Add Click on Timer Click on BeanShell Timer Synchronizing Timer
  • 13. 12 This timer displays these fields: Name: This is just a name for timer which will display in the result. Reset bsh. Interpreter before each call: If a user wants to select this option then the interpreter will be regenerated for each sample. Parameters: This is used for the parameters to be passed to the script. Script File: This is having a file to run which is a BeanShell Script. Script: This is the BeanShell script which returns the value of the used milliseconds to wait. Beanshell Timer
  • 15. 14 Beanshell Timer In the above screenshot, no. of threads (TCount) and ramp duration (RPeriod) are used as user-defined variables and accessed these variables using vars.get (Parameter-name). Thread loop counter argument accessed by bsh.args[].
  • 16. 15 This Timer works same as BeanShell Timer to generate the delay but the difference is that it generates the delay between each request using the JSR223 scripting language. For example, If a user wants to delay between the Login and edit profile requests then this timer should take place. How to add this timer to your Sampler, Please follow these steps: Go to Thread Group Add new Sampler Right-click on Sampler Click on Add Click on Timer Click on JSR223 Timer JSR223 Timer
  • 18. 17 This Timer has sections below: Name: This is just a name for timer which will display in the result. Script Language: This is for JSR223 scripting language. Parameters: This is used for the parameters to be passed to the script. Script File: This is having a file to run which is a BeanShell Script. Script compilation caching: It has the cache of compiled scripting. Script: This is the BeanShell script which returns the value of the used milliseconds to wait. JSR223 Timer
  • 19. 18 JSR223 Timer In the above screenshot, Scenario is for 3000 milliseconds (3 seconds). If the scenario runs over 3 seconds then The ‘Abc’ value is not required anymore. Here ‘a’ is having the conditions for null and not null situations of scenario timer and used vars.put method just before returning the value of ‘a’.
  • 20. 19 This Timer basically works as Gaussian Random Timer for the random amount of pause but the difference is that the total delay value is an addition of Poisson distributed value and the offset value. For example, If a user wants to switch the pages after Login into the particular website with the distributed amount of time pauses then this timer should be used. To add this timer into your sampler follow these steps: Go to Thread Group Add new Sampler Right-click on Sampler Click on Add Click on Timer Click on Poisson Random Timer Poisson Random Timer
  • 22. 21 This timer contains these fields: Name– This is just a name for timer which will display in the result. Lambda- This value used in milliseconds for the Poisson distribution. Constant Delay Offset- This time is to pause in addition to random delay in milliseconds. Poisson Random Timer
  • 24. 23 Hope this article could be helpful for you. Don’t forget to get a week trial BASIC plan. Happy Load Testing!