SlideShare a Scribd company logo
Scripting Enhancements
Script Enhancements



◦
◦

Recording Scripts
Parameterization

User Parameters


◦

Correlation


◦
◦
◦

Function Helper Dialog
Regular Expression Extractor

Assertions
Listeners
Timers

Confidential

2
The Http proxy server is selected
for Configuring the recording
option.

Right Click WorkBench Add Non-Test Elements  HTTP Proxy Server
We are using the proxy server to record ,as the Browser is routed to JMeter port to record the
HTTP browser sessions .

Confidential

3
Select Target Controller settings

Port number is
entered

Select type of Grouping

Add patterns to be
included while recording.
E.g. Add “.*.html”
Start recording

Add patterns to be excluded while
recording. E.g. Add “.*.gif”

Confidential

4














Enter port number in the place provided as 8090.
Select the target controller – The requests will be targeted or recorded at the option
selected.
Select the grouping type – This option groups the requests according to the type selected.
Enter patterns to be included.
Enter patterns to be included.
Open Browser.
Click Tools -> Internet options -> Connections -> LAN settings.
Change IP of proxy to “localhost” and also the port number as 8090.
Click Start.
Traverse through the pages needed.
Close browser.
Click Stop in JMeter.

Confidential

5
Confidential

6


User Parameters
◦ Right Click the Request Add  Pre Processors User Parameters

Confidential

7


User Parameters
◦ The variable is specified by clicking the Add Variable button in the bottom of the panel
and filling in the Variable name in the 'Name:' column.
◦ To add a new value to the series, click the 'Add User' button and fill in the desired value
in the newly added column.
Similar to Unique each iteration in Load
Runner tool

Confidential

8
Values can be accessed
in any test component in
the same thread group,
using the syntax:
${SearchString}.

Make the number of
users in Thread
Properties to the number
of users assigned in the
User Parameter.

Confidential

9


Using Function
◦ Create a Txt File with the parameters in any location .
◦ Click Options  Function Helper Dialog in JMeter.
◦ Choose the function __StringFromFile.

Confidential

10
◦
◦
◦
◦
◦

Provide Full path of the location of file.
Provide a Name to the variable
Provide start File sequence Number as needed.
Click generate.
Copy and paste the value generated to the value of the variable which has to be
parameterized in the request.
◦ The data will be taken from the file while execution. This function can be used to provide
only one column of data.
◦ To use multiple columns, __CSVRead function can be used.

Confidential

11
Confidential

1
2
The generated value is
pasted here (exclude
variable name and
sequence number)

Confidential

13


Using Function
◦ Create a CSV File with the parameters in any location .
◦ Click Options  Function Helper Dialog in JMeter.
◦ Choose the function __CSVRead.

Confidential

14
Confidential

15
The generated
value is pasted here
with column 0

The generated
value is pasted here
with column 1

Confidential

16
Confidential

17
Substituting the correlated values

Confidential

18
Confidential

19


Using Regular Expression Extractor (Regex)
◦ Allows the user to extract values from a server response using a Perl-type regular
expression
◦ Extracts the requested values, generate the template string, and store the result into the
given variable name.
◦ Equivalent to Correlation.

Right Click the Request Add Post Processors Regular Expression Extractor
Confidential

2
0


The Regular Expression Extractor needs to be added in the previous request to capture the
dynamically changing data in the current request.

In the above figure, the SessionId has got recorded in the ‘LoginPageToPlannerPage’ request. To
capture the SessionId, the Regular Expression Extractor named ‘SessionId’ is included in the
previous request ‘HomePageToLoginPage’.
Confidential

21


Reference Name: The name of the variable where the dynamically parameterized value get stored.



Regular Expression: This must contain at least one set of parentheses "()" to capture a portion of the string.
And left and right boundary of the parameter to be correlated can also be given. In the given example:
(&BV_SessionID=)  Left Boundary of the SessionId within parentheses.
(.*)
 .* within parentheses signifies that any value between the left and right boundary has to
be captured. This .* is one of the patterns of regular expression. Other patterns include W,d etc.
(&BV_EngineID=)  Right Boundary of the SessionId within parentheses.



Template: The template is used to create a string from the matches found. It can be $0$, $1$, $2$.
From the given example, the parentheses break the expression into three groups: Left Boundary, SessionId
Value and Right Boundary. The value $2$ in the Template field signifies that the value in the second group i.e.
the SessionId value needs to be captured and assigned to the given variable.



Match No: Indicates which match to use. The regular expression may match multiple times.



Default Value: If no matches are found, then the value given in this field will be substituted. Hence, this value
needs to be empty.

Confidential

22
• Replace the value of variable which is to be Dynamically Parameterized as ${SessionId}

Confidential

23


Assertions allow you to assert facts about responses received from the server being tested.



You can assert that the response to a query will contain some particular text and check if
the correct response is received from the server.

Right Click the Request Add  Assertions Response Assertion

Confidential

24
Name for the Assertion

Text to check in the
web page

Confidential

25


To view Assertion Results , add Assertion Listener to the thread group while running the script.

Confidential

26
Asserted text found in Page

Asserted text not found in page

Confidential

27
 JMeter thread sends requests without pausing between each request.


Available Timers can be used to provide delay between the requests so that the server is not
loaded with requests in a short time.

Confidential

28
In the above figure, Constant Timers are added between the requests. The delay is given as 3000 milli seconds
i.e. 3 seconds.

Confidential

29
Confidential

30

More Related Content

Viewers also liked

Social Media and NPD
Social Media and NPDSocial Media and NPD
Social Media and NPD
Victoria Gnatoka
 
Day3_Part 1_Apache_JMeter_Logic_Controllers
Day3_Part 1_Apache_JMeter_Logic_ControllersDay3_Part 1_Apache_JMeter_Logic_Controllers
Day3_Part 1_Apache_JMeter_Logic_Controllers
Sravanthi N
 
Social Media Week 2013 in Chicago
Social Media Week 2013 in Chicago Social Media Week 2013 in Chicago
Social Media Week 2013 in Chicago
Victoria Gnatoka
 
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_SlaveDay5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
Sravanthi N
 
Day2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_EnhancementsDay2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_Enhancements
Sravanthi N
 
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
 
Marketing Communications: social media case study
Marketing Communications: social media case studyMarketing Communications: social media case study
Marketing Communications: social media case study
Victoria Gnatoka
 
Environmental issues and Earth Hour Day
Environmental issues and Earth Hour DayEnvironmental issues and Earth Hour Day
Environmental issues and Earth Hour Day
Victoria Gnatoka
 
Les enjeux de l'acquisition de trafic sur Internet
Les enjeux de l'acquisition de trafic sur InternetLes enjeux de l'acquisition de trafic sur Internet
Les enjeux de l'acquisition de trafic sur Internet
Brigitte Neveu-Dérotrie
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
Sravanthi N
 
Rethinking macroeconomic policy by IMF
Rethinking macroeconomic policy by IMFRethinking macroeconomic policy by IMF
Rethinking macroeconomic policy by IMF
Victoria Gnatoka
 
TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6
Sravanthi N
 
Retail and Food Marketing Retro Style
Retail and Food Marketing Retro StyleRetail and Food Marketing Retro Style
Retail and Food Marketing Retro Style
Victoria Gnatoka
 
Armadale Chiropractic Centre - Health & Wellness
Armadale Chiropractic Centre - Health & WellnessArmadale Chiropractic Centre - Health & Wellness
Armadale Chiropractic Centre - Health & Wellness
Michael Black
 
Artificial intelligence study project
Artificial intelligence study projectArtificial intelligence study project
Artificial intelligence study project
Victoria Gnatoka
 
Conflict and negotiation presentation
Conflict and negotiation presentationConflict and negotiation presentation
Conflict and negotiation presentation
Victoria Gnatoka
 
BMW Case Study Analysis
BMW Case Study AnalysisBMW Case Study Analysis
BMW Case Study Analysis
Victoria Gnatoka
 

Viewers also liked (17)

Social Media and NPD
Social Media and NPDSocial Media and NPD
Social Media and NPD
 
Day3_Part 1_Apache_JMeter_Logic_Controllers
Day3_Part 1_Apache_JMeter_Logic_ControllersDay3_Part 1_Apache_JMeter_Logic_Controllers
Day3_Part 1_Apache_JMeter_Logic_Controllers
 
Social Media Week 2013 in Chicago
Social Media Week 2013 in Chicago Social Media Week 2013 in Chicago
Social Media Week 2013 in Chicago
 
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_SlaveDay5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
Day5_Apache_JMeter_Test_Execution_RemoteMode_Master_Slave
 
Day2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_EnhancementsDay2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_Enhancements
 
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
 
Marketing Communications: social media case study
Marketing Communications: social media case studyMarketing Communications: social media case study
Marketing Communications: social media case study
 
Environmental issues and Earth Hour Day
Environmental issues and Earth Hour DayEnvironmental issues and Earth Hour Day
Environmental issues and Earth Hour Day
 
Les enjeux de l'acquisition de trafic sur Internet
Les enjeux de l'acquisition de trafic sur InternetLes enjeux de l'acquisition de trafic sur Internet
Les enjeux de l'acquisition de trafic sur Internet
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 
Rethinking macroeconomic policy by IMF
Rethinking macroeconomic policy by IMFRethinking macroeconomic policy by IMF
Rethinking macroeconomic policy by IMF
 
TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6
 
Retail and Food Marketing Retro Style
Retail and Food Marketing Retro StyleRetail and Food Marketing Retro Style
Retail and Food Marketing Retro Style
 
Armadale Chiropractic Centre - Health & Wellness
Armadale Chiropractic Centre - Health & WellnessArmadale Chiropractic Centre - Health & Wellness
Armadale Chiropractic Centre - Health & Wellness
 
Artificial intelligence study project
Artificial intelligence study projectArtificial intelligence study project
Artificial intelligence study project
 
Conflict and negotiation presentation
Conflict and negotiation presentationConflict and negotiation presentation
Conflict and negotiation presentation
 
BMW Case Study Analysis
BMW Case Study AnalysisBMW Case Study Analysis
BMW Case Study Analysis
 

Similar to Day2 j meter_training_script_enhancements

Rpt ppt
Rpt pptRpt ppt
Rpt ppt
sindhu T
 
Chapter 6 slides
Chapter 6 slidesChapter 6 slides
Chapter 6 slides
jdpike
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
Naga Mallala
 
Auto fac mvc以及進階應用(一)
Auto fac mvc以及進階應用(一)Auto fac mvc以及進階應用(一)
Auto fac mvc以及進階應用(一)
LearningTech
 
Advanced Qtp Book
Advanced Qtp BookAdvanced Qtp Book
Advanced Qtp Book
G.C Reddy
 
Stop hardcoding follow parameterization
Stop hardcoding  follow parameterizationStop hardcoding  follow parameterization
Stop hardcoding follow parameterization
Preeti Sagar
 
Control Transactions using PowerCenter
Control Transactions using PowerCenterControl Transactions using PowerCenter
Control Transactions using PowerCenter
Edureka!
 
70562 (1)
70562 (1)70562 (1)
70562 (1)
Pragya Rastogi
 
SCWCD : The servlet model : CHAP : 2
SCWCD  : The servlet model : CHAP : 2SCWCD  : The servlet model : CHAP : 2
SCWCD : The servlet model : CHAP : 2
Ben Abdallah Helmi
 
Android framework design and development
Android framework design and developmentAndroid framework design and development
Android framework design and development
ramalinga prasad tadepalli
 
C++ Programming Class Creation Program Assignment Instructions
C++ Programming Class Creation Program Assignment InstructionsC++ Programming Class Creation Program Assignment Instructions
C++ Programming Class Creation Program Assignment Instructions
TawnaDelatorrejs
 
Bt0083 server side programing
Bt0083 server side programing Bt0083 server side programing
Bt0083 server side programing
Techglyphs
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworks
Vishwanath KC
 
data binding.docx
data binding.docxdata binding.docx
data binding.docx
kishorebabu123
 
Struts 2
Struts 2Struts 2
Struts 2
Lalit Garg
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
Nisa Soomro
 
Portlet Specification 3.0 Is Here!
Portlet Specification 3.0 Is Here! Portlet Specification 3.0 Is Here!
Portlet Specification 3.0 Is Here!
Dev_Events
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
Rameswara Reddy
 
Shibboleth 2.0 IdP slides - Installfest (Edited)
Shibboleth 2.0 IdP slides - Installfest (Edited)Shibboleth 2.0 IdP slides - Installfest (Edited)
Shibboleth 2.0 IdP slides - Installfest (Edited)
JISC.AM
 
Steps for csr generation sap netweaver
Steps for csr generation sap netweaverSteps for csr generation sap netweaver
Steps for csr generation sap netweaver
rathiyash
 

Similar to Day2 j meter_training_script_enhancements (20)

Rpt ppt
Rpt pptRpt ppt
Rpt ppt
 
Chapter 6 slides
Chapter 6 slidesChapter 6 slides
Chapter 6 slides
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
Auto fac mvc以及進階應用(一)
Auto fac mvc以及進階應用(一)Auto fac mvc以及進階應用(一)
Auto fac mvc以及進階應用(一)
 
Advanced Qtp Book
Advanced Qtp BookAdvanced Qtp Book
Advanced Qtp Book
 
Stop hardcoding follow parameterization
Stop hardcoding  follow parameterizationStop hardcoding  follow parameterization
Stop hardcoding follow parameterization
 
Control Transactions using PowerCenter
Control Transactions using PowerCenterControl Transactions using PowerCenter
Control Transactions using PowerCenter
 
70562 (1)
70562 (1)70562 (1)
70562 (1)
 
SCWCD : The servlet model : CHAP : 2
SCWCD  : The servlet model : CHAP : 2SCWCD  : The servlet model : CHAP : 2
SCWCD : The servlet model : CHAP : 2
 
Android framework design and development
Android framework design and developmentAndroid framework design and development
Android framework design and development
 
C++ Programming Class Creation Program Assignment Instructions
C++ Programming Class Creation Program Assignment InstructionsC++ Programming Class Creation Program Assignment Instructions
C++ Programming Class Creation Program Assignment Instructions
 
Bt0083 server side programing
Bt0083 server side programing Bt0083 server side programing
Bt0083 server side programing
 
Automation frameworks
Automation frameworksAutomation frameworks
Automation frameworks
 
data binding.docx
data binding.docxdata binding.docx
data binding.docx
 
Struts 2
Struts 2Struts 2
Struts 2
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
Portlet Specification 3.0 Is Here!
Portlet Specification 3.0 Is Here! Portlet Specification 3.0 Is Here!
Portlet Specification 3.0 Is Here!
 
Informatica cloud Powercenter designer
Informatica cloud Powercenter designerInformatica cloud Powercenter designer
Informatica cloud Powercenter designer
 
Shibboleth 2.0 IdP slides - Installfest (Edited)
Shibboleth 2.0 IdP slides - Installfest (Edited)Shibboleth 2.0 IdP slides - Installfest (Edited)
Shibboleth 2.0 IdP slides - Installfest (Edited)
 
Steps for csr generation sap netweaver
Steps for csr generation sap netweaverSteps for csr generation sap netweaver
Steps for csr generation sap netweaver
 

Recently uploaded

Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
zjhamm304
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
ScyllaDB
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
Sease
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
DianaGray10
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
UiPathCommunity
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 

Recently uploaded (20)

Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...QA or the Highway - Component Testing: Bridging the gap between frontend appl...
QA or the Highway - Component Testing: Bridging the gap between frontend appl...
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
From Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMsFrom Natural Language to Structured Solr Queries using LLMs
From Natural Language to Structured Solr Queries using LLMs
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
 
Day 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio FundamentalsDay 2 - Intro to UiPath Studio Fundamentals
Day 2 - Intro to UiPath Studio Fundamentals
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 

Day2 j meter_training_script_enhancements

  • 2. Script Enhancements  ◦ ◦ Recording Scripts Parameterization  User Parameters  ◦ Correlation  ◦ ◦ ◦ Function Helper Dialog Regular Expression Extractor Assertions Listeners Timers Confidential 2
  • 3. The Http proxy server is selected for Configuring the recording option. Right Click WorkBench Add Non-Test Elements  HTTP Proxy Server We are using the proxy server to record ,as the Browser is routed to JMeter port to record the HTTP browser sessions . Confidential 3
  • 4. Select Target Controller settings Port number is entered Select type of Grouping Add patterns to be included while recording. E.g. Add “.*.html” Start recording Add patterns to be excluded while recording. E.g. Add “.*.gif” Confidential 4
  • 5.             Enter port number in the place provided as 8090. Select the target controller – The requests will be targeted or recorded at the option selected. Select the grouping type – This option groups the requests according to the type selected. Enter patterns to be included. Enter patterns to be included. Open Browser. Click Tools -> Internet options -> Connections -> LAN settings. Change IP of proxy to “localhost” and also the port number as 8090. Click Start. Traverse through the pages needed. Close browser. Click Stop in JMeter. Confidential 5
  • 7.  User Parameters ◦ Right Click the Request Add  Pre Processors User Parameters Confidential 7
  • 8.  User Parameters ◦ The variable is specified by clicking the Add Variable button in the bottom of the panel and filling in the Variable name in the 'Name:' column. ◦ To add a new value to the series, click the 'Add User' button and fill in the desired value in the newly added column. Similar to Unique each iteration in Load Runner tool Confidential 8
  • 9. Values can be accessed in any test component in the same thread group, using the syntax: ${SearchString}. Make the number of users in Thread Properties to the number of users assigned in the User Parameter. Confidential 9
  • 10.  Using Function ◦ Create a Txt File with the parameters in any location . ◦ Click Options  Function Helper Dialog in JMeter. ◦ Choose the function __StringFromFile. Confidential 10
  • 11. ◦ ◦ ◦ ◦ ◦ Provide Full path of the location of file. Provide a Name to the variable Provide start File sequence Number as needed. Click generate. Copy and paste the value generated to the value of the variable which has to be parameterized in the request. ◦ The data will be taken from the file while execution. This function can be used to provide only one column of data. ◦ To use multiple columns, __CSVRead function can be used. Confidential 11
  • 13. The generated value is pasted here (exclude variable name and sequence number) Confidential 13
  • 14.  Using Function ◦ Create a CSV File with the parameters in any location . ◦ Click Options  Function Helper Dialog in JMeter. ◦ Choose the function __CSVRead. Confidential 14
  • 16. The generated value is pasted here with column 0 The generated value is pasted here with column 1 Confidential 16
  • 18. Substituting the correlated values Confidential 18
  • 20.  Using Regular Expression Extractor (Regex) ◦ Allows the user to extract values from a server response using a Perl-type regular expression ◦ Extracts the requested values, generate the template string, and store the result into the given variable name. ◦ Equivalent to Correlation. Right Click the Request Add Post Processors Regular Expression Extractor Confidential 2 0
  • 21.  The Regular Expression Extractor needs to be added in the previous request to capture the dynamically changing data in the current request. In the above figure, the SessionId has got recorded in the ‘LoginPageToPlannerPage’ request. To capture the SessionId, the Regular Expression Extractor named ‘SessionId’ is included in the previous request ‘HomePageToLoginPage’. Confidential 21
  • 22.  Reference Name: The name of the variable where the dynamically parameterized value get stored.  Regular Expression: This must contain at least one set of parentheses "()" to capture a portion of the string. And left and right boundary of the parameter to be correlated can also be given. In the given example: (&BV_SessionID=)  Left Boundary of the SessionId within parentheses. (.*)  .* within parentheses signifies that any value between the left and right boundary has to be captured. This .* is one of the patterns of regular expression. Other patterns include W,d etc. (&BV_EngineID=)  Right Boundary of the SessionId within parentheses.  Template: The template is used to create a string from the matches found. It can be $0$, $1$, $2$. From the given example, the parentheses break the expression into three groups: Left Boundary, SessionId Value and Right Boundary. The value $2$ in the Template field signifies that the value in the second group i.e. the SessionId value needs to be captured and assigned to the given variable.  Match No: Indicates which match to use. The regular expression may match multiple times.  Default Value: If no matches are found, then the value given in this field will be substituted. Hence, this value needs to be empty. Confidential 22
  • 23. • Replace the value of variable which is to be Dynamically Parameterized as ${SessionId} Confidential 23
  • 24.  Assertions allow you to assert facts about responses received from the server being tested.  You can assert that the response to a query will contain some particular text and check if the correct response is received from the server. Right Click the Request Add  Assertions Response Assertion Confidential 24
  • 25. Name for the Assertion Text to check in the web page Confidential 25
  • 26.  To view Assertion Results , add Assertion Listener to the thread group while running the script. Confidential 26
  • 27. Asserted text found in Page Asserted text not found in page Confidential 27
  • 28.  JMeter thread sends requests without pausing between each request.  Available Timers can be used to provide delay between the requests so that the server is not loaded with requests in a short time. Confidential 28
  • 29. In the above figure, Constant Timers are added between the requests. The delay is given as 3000 milli seconds i.e. 3 seconds. Confidential 29