SlideShare a Scribd company logo
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 interviewquestions
girichinna27
 
Diesel load testing tool
Diesel load testing toolDiesel load testing tool
Diesel load testing tool
Syed Zaid Irshad
 
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.docx
stilliegeorgiana
 
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 JMeter
Wira 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 jmeter
Naga 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 Example
PVS-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 introduction
silenceIT 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_Mode
Sravanthi 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 Passo
Ismael Camargo
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
Purna 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éal
Sidereo
 

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

APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
Ortus Solutions, Corp
 
Game Development with Unity3D (Game Development lecture 3)
Game Development  with Unity3D (Game Development lecture 3)Game Development  with Unity3D (Game Development lecture 3)
Game Development with Unity3D (Game Development lecture 3)
abdulrafaychaudhry
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Nidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, TipsNidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, Tips
vrstrong314
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)
abdulrafaychaudhry
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
abdulrafaychaudhry
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 

Recently uploaded (20)

APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024BoxLang: Review our Visionary Licenses of 2024
BoxLang: Review our Visionary Licenses of 2024
 
Game Development with Unity3D (Game Development lecture 3)
Game Development  with Unity3D (Game Development lecture 3)Game Development  with Unity3D (Game Development lecture 3)
Game Development with Unity3D (Game Development lecture 3)
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Nidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, TipsNidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, Tips
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)Introduction to Pygame (Lecture 7 Python Game Development)
Introduction to Pygame (Lecture 7 Python Game Development)
 
Pro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp BookPro Unity Game Development with C-sharp Book
Pro Unity Game Development with C-sharp Book
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 

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!