SlideShare a Scribd company logo
1 of 11
Load Test Correlation
1
In today’s world, we have to deal with
various behaviors of systems while
communicating with one another.
In most cases, to carry on with test
scenarios, we need to fetch the dynamic
responses from preceding requests and
pass it to the subsequent ones.
By simply parsing and passing the needed
data to the next caller provides a smooth
transition during the test execution process
(Load Test Correlation).
Let’s get started
2
Since load/stress testing scenarios are
based on mutual interactions between the
client and remote, the need of correlation is
a technical state every performance tester
encounters at some point.
To establish a strong bond with your test
flow, JMeter comes with a handy feature:
Regular Expression Extractor under Post
Processors.
Storyline
3
Reliability of your tests depends on the
frequency of buggy occurrences, how robust
your design is and how ready you are for
unexpected situations.
When using static parameters is not
enough…
Tagline
4
After spending some time and going through
the basics of JMeter, it is inevitable not to
get stuck with handling dynamic data in your
complex scenarios. At this very point,
correlation kicks in.
Getting the data parsed from the response
on the fly and passing it to the next request,
plays a vital role in your test flow.
JMeter supports correlation with its
“Regular Expression Extractor” which
provides smooth data transition by using
regular expressions and applies the parsed
data on another sampler in our flow.
Tagline
5
Regular expressions are a set of symbols &
characters which are used to build a pattern
to match character combinations in strings.
Regular expressions are very popular and
used widely in programming languages and
very easy to get used to.
JMeter’s regular expressions are provided
by Jakarta ORO framework based on Perl5
Regex Engine.
There are many great tutorials, websites,
and articles about it, so take your time and
you should be writing your style of patterns
in no time.
Why regular expressions?
6
JMeter’s Regular Expression Extractor helps
us fetch any portion of data from the
response by using regular expressions.
Since applying the regular expressions on
the response is a post process, this explains
why Regular Expression Extractor is located
under Post-Processors.
After matching the set of characters by
using the Extractor, this value is set to a
variable for future use on another sampler.
How JMeter handles
correlation…
7
Regex Extractor has a few options we need
to know in advance.
A. Apply To:
Main Sample -produced by the primary
request- and/or Sub Sample -produced by
any request made related to the primary
request- can be picked to apply the regular
expression.
Getting to the point…
8
B. Response Field To Check:
A Regex can be applied to a part of the
response message such as header, body
etc…
C. Reference Name:
This is the name of the variable which stores
the matched data. This variable can later be
called from another request by simply using
the following syntax: ${}
D. Regular Expression:
Your regex pattern goes here.
Getting to the point…
9
E. Template:
Regex may have more than one group.
Templates – regex group index- are used to
match the group that contains the data.
F. Match No:
Multiple matched sets might return for a
regex pattern. By setting the match number,
data-to-store is chosen from the result set
and set to the variable -reference name-.
G. Default Value:
If there is no match to the regex, then the
default value is set to the variable.
Getting to the point…
10
If you wonder how this technique is applied in practice, please go ahead and take a look at the
following link;
HTTP Live Streaming Performance Test
Happy Load Testing…

More Related Content

Similar to Load Test Correlation

Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
Foredoomed
 
Software testing
Software testingSoftware testing
Software testing
nil65
 
jmeter - Google Search.pdf
jmeter - Google Search.pdfjmeter - Google Search.pdf
jmeter - Google Search.pdf
MohanKoppala3
 
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip BannonSoft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
David O'Dowd
 
Informatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guideInformatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guide
Dhanasekar T
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
Nitish Bhardwaj
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
Hattori Sidek
 
Parameter Estimation User Guide
Parameter Estimation User GuideParameter Estimation User Guide
Parameter Estimation User Guide
Andy Salmon
 

Similar to Load Test Correlation (20)

Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
Software testing
Software testingSoftware testing
Software testing
 
Top 20 JMeter Interview Questions and Answers in 2023.pdf
Top 20 JMeter Interview Questions and Answers in 2023.pdfTop 20 JMeter Interview Questions and Answers in 2023.pdf
Top 20 JMeter Interview Questions and Answers in 2023.pdf
 
jmeter interview q.pdf
jmeter interview q.pdfjmeter interview q.pdf
jmeter interview q.pdf
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Top 20 JMeter Interview Questions and Answers in 2023.pptx
Top 20 JMeter Interview Questions and Answers in 2023.pptxTop 20 JMeter Interview Questions and Answers in 2023.pptx
Top 20 JMeter Interview Questions and Answers in 2023.pptx
 
Jms intro
Jms introJms intro
Jms intro
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
Jms
JmsJms
Jms
 
jmeter - Google Search.pdf
jmeter - Google Search.pdfjmeter - Google Search.pdf
jmeter - Google Search.pdf
 
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip BannonSoft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
Soft Test Ireland - Introduction to Jakarta Jmeter - Philip Bannon
 
.doc
.doc.doc
.doc
 
.doc
.doc.doc
.doc
 
Informatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guideInformatica data warehousing_job_interview_preparation_guide
Informatica data warehousing_job_interview_preparation_guide
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
Predicting and Explaining Individual Performance in Complex Tasks
Predicting and Explaining Individual Performance in Complex TasksPredicting and Explaining Individual Performance in Complex Tasks
Predicting and Explaining Individual Performance in Complex Tasks
 
Jmeter From Scratch
Jmeter From ScratchJmeter From Scratch
Jmeter From Scratch
 
Ch1 principles of software development
Ch1 principles of software developmentCh1 principles of software development
Ch1 principles of software development
 
Parameter Estimation User Guide
Parameter Estimation User GuideParameter Estimation User Guide
Parameter Estimation User Guide
 
Adapted Branch-and-Bound Algorithm Using SVM With Model Selection
Adapted Branch-and-Bound Algorithm Using SVM With Model SelectionAdapted Branch-and-Bound Algorithm Using SVM With Model Selection
Adapted Branch-and-Bound Algorithm Using SVM With Model Selection
 

Recently uploaded

Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Marc Lester
 

Recently uploaded (20)

Auto Affiliate AI Earns First Commission in 3 Hours..pdf
Auto Affiliate  AI Earns First Commission in 3 Hours..pdfAuto Affiliate  AI Earns First Commission in 3 Hours..pdf
Auto Affiliate AI Earns First Commission in 3 Hours..pdf
 
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
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 
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...
 
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
 
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
 
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
 
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
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeCon
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
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...
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
 
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
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
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with Links
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdf
 
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
 
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
 
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
 

Load Test Correlation

  • 2. 1 In today’s world, we have to deal with various behaviors of systems while communicating with one another. In most cases, to carry on with test scenarios, we need to fetch the dynamic responses from preceding requests and pass it to the subsequent ones. By simply parsing and passing the needed data to the next caller provides a smooth transition during the test execution process (Load Test Correlation). Let’s get started
  • 3. 2 Since load/stress testing scenarios are based on mutual interactions between the client and remote, the need of correlation is a technical state every performance tester encounters at some point. To establish a strong bond with your test flow, JMeter comes with a handy feature: Regular Expression Extractor under Post Processors. Storyline
  • 4. 3 Reliability of your tests depends on the frequency of buggy occurrences, how robust your design is and how ready you are for unexpected situations. When using static parameters is not enough… Tagline
  • 5. 4 After spending some time and going through the basics of JMeter, it is inevitable not to get stuck with handling dynamic data in your complex scenarios. At this very point, correlation kicks in. Getting the data parsed from the response on the fly and passing it to the next request, plays a vital role in your test flow. JMeter supports correlation with its “Regular Expression Extractor” which provides smooth data transition by using regular expressions and applies the parsed data on another sampler in our flow. Tagline
  • 6. 5 Regular expressions are a set of symbols & characters which are used to build a pattern to match character combinations in strings. Regular expressions are very popular and used widely in programming languages and very easy to get used to. JMeter’s regular expressions are provided by Jakarta ORO framework based on Perl5 Regex Engine. There are many great tutorials, websites, and articles about it, so take your time and you should be writing your style of patterns in no time. Why regular expressions?
  • 7. 6 JMeter’s Regular Expression Extractor helps us fetch any portion of data from the response by using regular expressions. Since applying the regular expressions on the response is a post process, this explains why Regular Expression Extractor is located under Post-Processors. After matching the set of characters by using the Extractor, this value is set to a variable for future use on another sampler. How JMeter handles correlation…
  • 8. 7 Regex Extractor has a few options we need to know in advance. A. Apply To: Main Sample -produced by the primary request- and/or Sub Sample -produced by any request made related to the primary request- can be picked to apply the regular expression. Getting to the point…
  • 9. 8 B. Response Field To Check: A Regex can be applied to a part of the response message such as header, body etc… C. Reference Name: This is the name of the variable which stores the matched data. This variable can later be called from another request by simply using the following syntax: ${} D. Regular Expression: Your regex pattern goes here. Getting to the point…
  • 10. 9 E. Template: Regex may have more than one group. Templates – regex group index- are used to match the group that contains the data. F. Match No: Multiple matched sets might return for a regex pattern. By setting the match number, data-to-store is chosen from the result set and set to the variable -reference name-. G. Default Value: If there is no match to the regex, then the default value is set to the variable. Getting to the point…
  • 11. 10 If you wonder how this technique is applied in practice, please go ahead and take a look at the following link; HTTP Live Streaming Performance Test Happy Load Testing…