SlideShare a Scribd company logo
1 of 23
Download to read offline
Logic Controllers
 Simple Controller
 Loop Controller
 Once Only Controller
 Interleave Controller
 Random Controller
 Random Order Controller
 Runtime Controller
 Throughput Controller
 If Controller
 While Controller
 Switch Controller
 For Each Controller
 Module Controller
 Transaction Controller
 Recording Controller
Confidential
 The Simple Logic Controller lets you organize your Samplers and other Logic Controllers.
Unlike other Logic Controllers, this controller provides no functionality beyond that of a
storage device.
 The Simple Logic Controller has no effect on how JMeter processes the controller(s) you
add to it. So, in this example, JMeter sends the requests in the following order: Ant Home
Page, Ant News Page, Log4J Home Page, Log4J History Page.
Confidential
 If you add Generative or Logic Controllers to a Loop Controller, JMeter will loop
through them a certain number of times, in addition to the loop value you specified
for the Thread Group.
 We configured the Thread Group for a single thread and a loop count value of one.
Instead of letting the Thread Group control the looping, we used a Loop Controller.
 We added one HTTP Request to the Thread Group and another HTTP Request to a
Loop Controller. We configured the Loop Controller with a loop count value of five.
Confidential
 Now JMeter will send the requests in the following order:
Home Page, News Page, News Page, News Page, News Page, and News Page.
Confidential
 The Once Only Logic Controller tells JMeter to process the controller(s) inside it
only once, and pass over any requests under it during further iterations through the
test plan.
Confidential
 We created a Test Plan that has a thread which sends a request to Home page and
followed by a Bug page.
 Now we configured Thread group to iterate 3 times.
 JMeter thread sends only one request to the Home page because it was in the
Once Only Controller.
 JMeter will send the requests in the following order:
Home Page, Bug Page, Bug Page, Bug Page
 This controller will be helpful for testing that requires login session once ( same as
vuser_init() in Load Runner)
Confidential
 If we add an Interleave Controller , JMeter will alternate among each of the other
controllers for each loop iteration.
 We configured the Thread Group and a loop count of five for a Test Plan.
Confidential
 See the table below for the sequence JMeter sends the HTTP Requests.
Loop Iteration Each JMeter Thread Sends These HTTP Requests
1 News Page
1 Log Page
2 FAQ Page
2 Log Page
3 Gump Page
3 Log Page
4 Because there are no more requests in the controller,
JMeter starts over and sends the first HTTP Request, which is the News Page.
4 Log Page
5 FAQ Page
5 Log Page
Confidential
 The Random Logic Controller acts similarly to the Interleave Controller, except that instead of
going in order through its sub-controllers and samplers, it picks one at random at each pass.
Confidential
 The Random Order Controller is much like a Simple Controller in that it will execute each child
element at most once, but the order of execution of the nodes will be random
Confidential
 The Throughput Controller allows the user to control how often it is executed. There are two
modes - percent execution and total executions. Percent executions causes the controller to
execute a certain percentage of the iterations through the test plan. Total executions causes the
controller to stop executing after a certain number of executions have occurred. Like the Once
Only Controller, this setting is reset when a parent Loop Controller restarts.
Confidential
 The Runtime Controller controls how long its children are allowed to run.
Confidential
 The If Controller allows the user to control whether the test elements below it (its children)
are run or not.
Confidential
 The While Controller runs its children until the condition is "false".
 Possible condition values:
1. blank - exit loop when last sample in loop fails
2. LAST - exit loop when last sample in loop fails. If the last sample just before the
loop failed, don't enter loop.
3. Otherwise - exit (or don't enter) the loop when the condition is equal to the
string "false"
Confidential
 The Switch Controller acts like the Interleave Controller in that it runs one of the
subordinate elements on each iteration, but rather than run them in sequence, the
controller runs the element number defined by the switch value.
 If the switch value is out of range, it will run the zeroth element, which therefore acts as
the default.
Confidential
 ForEach controller loops through the values of a set of related variables. When you add samplers
(or controllers) to a ForEach controller, every sample sample (or controller) is executed one or
more times, where during every loop the variable has a new value.
 The input should consist of several variables, each extended with an underscore and a number.
Each such variable must have a value .
 We created a Test Plan that sends a particular HTTP Request only once and sends another HTTP
Request to every link that can be found on the page.
Confidential
 We configured the Thread Group for a single thread and a loop count value of one. You can see
that we added one HTTP Request to the Thread Group and another HTTP Request to the
ForEach Controller.
 After the first HTTP request, a regular expression extractor is added, which extracts all the html
links out of the return page and puts them in the inputVar variable
Confidential
 The Module Controller provides a mechanism for substituting test plan fragments into the
current test plan at run-time. To use this module effectively, one might have a number of
Controllers under the WorkBench , each with a different series of samplers under them. The
module controller can then be used to easily switch between these multiple test cases
simply by choosing the appropriate controller in it's drop down box. This provides
convenience for running many alternate test plans quickly and easily.
Confidential
 The Include Controller is designed to use an external jmx file. To use it, add samples to a simple
controller, then save the simple controller as a jmx file. The file can then be used in a test plan.
Confidential
 The Transaction Controller times how long it takes for all its children to run. It then adds a
"sample" entry to the test output with the total elapsed time. The name of the element is used to
name the "sample".
Confidential
 The Recording Controller is a place holder indicating where the proxy server should record
samples to.
 During the test run, it has no effect, similar to the Simple Controller.
 But during recording using the HTTP Proxy Server , all recorded samples will by default be saved
under the Recording Controller.
Confidential
Confidential

More Related Content

What's hot

C# 5 deep drive into asynchronous programming
C# 5 deep drive into asynchronous programmingC# 5 deep drive into asynchronous programming
C# 5 deep drive into asynchronous programmingPraveen Prajapati
 
Apache JMeter - A Brief Introduction
Apache JMeter - A Brief IntroductionApache JMeter - A Brief Introduction
Apache JMeter - A Brief Introductionagilitator
 
Selenium XPath Performance Problems in IE
Selenium XPath Performance Problems in IESelenium XPath Performance Problems in IE
Selenium XPath Performance Problems in IEClever Moe
 
Using Altera Signal tap
Using Altera Signal tapUsing Altera Signal tap
Using Altera Signal tapRafe Husain
 
Monitoring with prometheus
Monitoring with prometheusMonitoring with prometheus
Monitoring with prometheusKasper Nissen
 
Linux synchronization tools
Linux synchronization toolsLinux synchronization tools
Linux synchronization toolsmukul bhardwaj
 
GoSF Jan 2016 - Go Write a Plugin for Snap!
GoSF Jan 2016 - Go Write a Plugin for Snap!GoSF Jan 2016 - Go Write a Plugin for Snap!
GoSF Jan 2016 - Go Write a Plugin for Snap!Matthew Broberg
 
Kirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationKirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationSergey Arkhipov
 
So I used Erlang... is my system as scalable as they say it'd be?
So I used Erlang... is my system as scalable as they say it'd be?So I used Erlang... is my system as scalable as they say it'd be?
So I used Erlang... is my system as scalable as they say it'd be?Laura M. Castro
 
Async Programming with C#5: Basics and Pitfalls
Async Programming with C#5: Basics and PitfallsAsync Programming with C#5: Basics and Pitfalls
Async Programming with C#5: Basics and PitfallsEastBanc Tachnologies
 
Asynchronous Programming in C# - Part 1
Asynchronous Programming in C# - Part 1Asynchronous Programming in C# - Part 1
Asynchronous Programming in C# - Part 1Mindfire Solutions
 
CTU June 2011 - C# 5.0 - ASYNC & Await
CTU June 2011 - C# 5.0 - ASYNC & AwaitCTU June 2011 - C# 5.0 - ASYNC & Await
CTU June 2011 - C# 5.0 - ASYNC & AwaitSpiffy
 

What's hot (16)

C# 5 deep drive into asynchronous programming
C# 5 deep drive into asynchronous programmingC# 5 deep drive into asynchronous programming
C# 5 deep drive into asynchronous programming
 
Apache JMeter - A Brief Introduction
Apache JMeter - A Brief IntroductionApache JMeter - A Brief Introduction
Apache JMeter - A Brief Introduction
 
Selenium XPath Performance Problems in IE
Selenium XPath Performance Problems in IESelenium XPath Performance Problems in IE
Selenium XPath Performance Problems in IE
 
Using Altera Signal tap
Using Altera Signal tapUsing Altera Signal tap
Using Altera Signal tap
 
Testing Guide
Testing GuideTesting Guide
Testing Guide
 
Fault tolerance
Fault toleranceFault tolerance
Fault tolerance
 
Monitoring with prometheus
Monitoring with prometheusMonitoring with prometheus
Monitoring with prometheus
 
Pentest with Metasploit
Pentest with MetasploitPentest with Metasploit
Pentest with Metasploit
 
Linux synchronization tools
Linux synchronization toolsLinux synchronization tools
Linux synchronization tools
 
GoSF Jan 2016 - Go Write a Plugin for Snap!
GoSF Jan 2016 - Go Write a Plugin for Snap!GoSF Jan 2016 - Go Write a Plugin for Snap!
GoSF Jan 2016 - Go Write a Plugin for Snap!
 
Kirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for AutomatizationKirill Rozin - Practical Wars for Automatization
Kirill Rozin - Practical Wars for Automatization
 
So I used Erlang... is my system as scalable as they say it'd be?
So I used Erlang... is my system as scalable as they say it'd be?So I used Erlang... is my system as scalable as they say it'd be?
So I used Erlang... is my system as scalable as they say it'd be?
 
Introduction to Reactive Java
Introduction to Reactive JavaIntroduction to Reactive Java
Introduction to Reactive Java
 
Async Programming with C#5: Basics and Pitfalls
Async Programming with C#5: Basics and PitfallsAsync Programming with C#5: Basics and Pitfalls
Async Programming with C#5: Basics and Pitfalls
 
Asynchronous Programming in C# - Part 1
Asynchronous Programming in C# - Part 1Asynchronous Programming in C# - Part 1
Asynchronous Programming in C# - Part 1
 
CTU June 2011 - C# 5.0 - ASYNC & Await
CTU June 2011 - C# 5.0 - ASYNC & AwaitCTU June 2011 - C# 5.0 - ASYNC & Await
CTU June 2011 - C# 5.0 - ASYNC & Await
 

Viewers also liked

LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011
LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011
LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011Jimmy Keng
 
9 2 t4_chapterninepowerpoint
9 2 t4_chapterninepowerpoint9 2 t4_chapterninepowerpoint
9 2 t4_chapterninepowerpointsagebennet
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)IIUM
 
Testing for Validity with Venn Diagrams
Testing for Validity with Venn DiagramsTesting for Validity with Venn Diagrams
Testing for Validity with Venn Diagramsdyeakel
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statementsguestd166eb5
 
Categorical syllogism
Categorical syllogismCategorical syllogism
Categorical syllogismNoel Jopson
 
Detailed lesson plan - PP
Detailed lesson plan - PPDetailed lesson plan - PP
Detailed lesson plan - PPJerwin Lopez
 
Module 6 PREPOSITION
Module 6 PREPOSITIONModule 6 PREPOSITION
Module 6 PREPOSITIONJenny Sanchez
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics LectureGenie Rose Santos
 
Concept of constitution
Concept of constitutionConcept of constitution
Concept of constitutionNoel Jopson
 
a detailed lesson plan in mathematics VI(volume of rectangular prism
a detailed lesson plan in mathematics VI(volume of rectangular prisma detailed lesson plan in mathematics VI(volume of rectangular prism
a detailed lesson plan in mathematics VI(volume of rectangular prismCes Sagmon
 
Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)
Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)
Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)Junnie Salud
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Omnia A. Abdullah
 

Viewers also liked (18)

LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011
LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011
LEAP Educators' Conference 2011, Manila, The Philippines, 11 - 12 February 2011
 
9 2 t4_chapterninepowerpoint
9 2 t4_chapterninepowerpoint9 2 t4_chapterninepowerpoint
9 2 t4_chapterninepowerpoint
 
Logic (slides)
Logic (slides)Logic (slides)
Logic (slides)
 
Testing for Validity with Venn Diagrams
Testing for Validity with Venn DiagramsTesting for Validity with Venn Diagrams
Testing for Validity with Venn Diagrams
 
Set in discrete mathematics
Set in discrete mathematicsSet in discrete mathematics
Set in discrete mathematics
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
Categorical syllogism
Categorical syllogismCategorical syllogism
Categorical syllogism
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Syllogistic figures
Syllogistic figuresSyllogistic figures
Syllogistic figures
 
Lesson plan in geometry
Lesson plan in geometryLesson plan in geometry
Lesson plan in geometry
 
Detailed lesson plan - PP
Detailed lesson plan - PPDetailed lesson plan - PP
Detailed lesson plan - PP
 
Module 6 PREPOSITION
Module 6 PREPOSITIONModule 6 PREPOSITION
Module 6 PREPOSITION
 
Discrete Mathematics Lecture
Discrete Mathematics LectureDiscrete Mathematics Lecture
Discrete Mathematics Lecture
 
Concept of constitution
Concept of constitutionConcept of constitution
Concept of constitution
 
a detailed lesson plan in mathematics VI(volume of rectangular prism
a detailed lesson plan in mathematics VI(volume of rectangular prisma detailed lesson plan in mathematics VI(volume of rectangular prism
a detailed lesson plan in mathematics VI(volume of rectangular prism
 
A detailed lesson plan
A detailed lesson planA detailed lesson plan
A detailed lesson plan
 
Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)
Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)
Detailed Lesson Plan (ENGLISH, MATH, SCIENCE, FILIPINO)
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters
 

Similar to Day3_Part 1_Apache_JMeter_Logic_Controllers

Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeterGalih Lasahido
 
Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02veeru madduri
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Nitish Bhardwaj
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
ApachejmeterabriefintroductionForedoomed
 
Elments Used on Jmeter
Elments Used on JmeterElments Used on Jmeter
Elments Used on JmeterViviana Lesmes
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewSravanthi N
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSVladimir Ilic
 
Performance testing with loadrunner by kc
Performance testing with loadrunner by kcPerformance testing with loadrunner by kc
Performance testing with loadrunner by kckrishna chaitanya
 
SE2_Lec 20_Software Testing
SE2_Lec 20_Software TestingSE2_Lec 20_Software Testing
SE2_Lec 20_Software TestingAmr E. Mohamed
 
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
 
Monitor(karthika)
Monitor(karthika)Monitor(karthika)
Monitor(karthika)Nagarajan
 
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
 
Java Unit Test - JUnit
Java Unit Test - JUnitJava Unit Test - JUnit
Java Unit Test - JUnitAktuğ Urun
 
Day1 JMeter_training_overview
Day1 JMeter_training_overviewDay1 JMeter_training_overview
Day1 JMeter_training_overviewSravanthiN
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introductionsilenceIT Inc.
 
Emulation Error Recovery
Emulation Error RecoveryEmulation Error Recovery
Emulation Error Recoverysomnathb1
 
Software testing
Software testingSoftware testing
Software testingnil65
 

Similar to Day3_Part 1_Apache_JMeter_Logic_Controllers (20)

Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Jmeter.ppt
Jmeter.pptJmeter.ppt
Jmeter.ppt
 
Load testing with J meter
Load testing with J meterLoad testing with J meter
Load testing with J meter
 
Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02Test talk academy apachejmeter-120521121306-phpapp02
Test talk academy apachejmeter-120521121306-phpapp02
 
Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02Performancetestingjmeter 131210111657-phpapp02
Performancetestingjmeter 131210111657-phpapp02
 
Apachejmeterabriefintroduction
ApachejmeterabriefintroductionApachejmeterabriefintroduction
Apachejmeterabriefintroduction
 
Elments Used on Jmeter
Elments Used on JmeterElments Used on Jmeter
Elments Used on Jmeter
 
Day1_Apache_JMeter_Overview
Day1_Apache_JMeter_OverviewDay1_Apache_JMeter_Overview
Day1_Apache_JMeter_Overview
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
Load Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWSLoad Test Drupal Site Using JMeter and Amazon AWS
Load Test Drupal Site Using JMeter and Amazon AWS
 
Performance testing with loadrunner by kc
Performance testing with loadrunner by kcPerformance testing with loadrunner by kc
Performance testing with loadrunner by kc
 
SE2_Lec 20_Software Testing
SE2_Lec 20_Software TestingSE2_Lec 20_Software Testing
SE2_Lec 20_Software Testing
 
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...
 
Monitor(karthika)
Monitor(karthika)Monitor(karthika)
Monitor(karthika)
 
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
 
Java Unit Test - JUnit
Java Unit Test - JUnitJava Unit Test - JUnit
Java Unit Test - JUnit
 
Day1 JMeter_training_overview
Day1 JMeter_training_overviewDay1 JMeter_training_overview
Day1 JMeter_training_overview
 
Apache JMeter - A brief introduction
Apache JMeter - A brief introductionApache JMeter - A brief introduction
Apache JMeter - A brief introduction
 
Emulation Error Recovery
Emulation Error RecoveryEmulation Error Recovery
Emulation Error Recovery
 
Software testing
Software testingSoftware testing
Software testing
 

More from Sravanthi N

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_SlaveSravanthi N
 
Day4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANT
Day4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANTDay4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANT
Day4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANTSravanthi 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_ModeSravanthi N
 
Day3_Part 2_Apache_JMeter_Config_Elements
Day3_Part 2_Apache_JMeter_Config_ElementsDay3_Part 2_Apache_JMeter_Config_Elements
Day3_Part 2_Apache_JMeter_Config_ElementsSravanthi N
 
Day2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_EnhancementsDay2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_EnhancementsSravanthi N
 
TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6Sravanthi N
 
Day2 j meter_training_script_enhancements
Day2 j meter_training_script_enhancementsDay2 j meter_training_script_enhancements
Day2 j meter_training_script_enhancementsSravanthi N
 

More from Sravanthi N (7)

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
 
Day4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANT
Day4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANTDay4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANT
Day4_Part 2_Apache_JMeter_Performance_Test_Execution_using_ANT
 
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
 
Day3_Part 2_Apache_JMeter_Config_Elements
Day3_Part 2_Apache_JMeter_Config_ElementsDay3_Part 2_Apache_JMeter_Config_Elements
Day3_Part 2_Apache_JMeter_Config_Elements
 
Day2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_EnhancementsDay2_Apache_JMeter_Script_Enhancements
Day2_Apache_JMeter_Script_Enhancements
 
TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6TechTalk_Cloud Performance Testing_0.6
TechTalk_Cloud Performance Testing_0.6
 
Day2 j meter_training_script_enhancements
Day2 j meter_training_script_enhancementsDay2 j meter_training_script_enhancements
Day2 j meter_training_script_enhancements
 

Recently uploaded

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 

Recently uploaded (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 

Day3_Part 1_Apache_JMeter_Logic_Controllers

  • 2.  Simple Controller  Loop Controller  Once Only Controller  Interleave Controller  Random Controller  Random Order Controller  Runtime Controller  Throughput Controller  If Controller  While Controller  Switch Controller  For Each Controller  Module Controller  Transaction Controller  Recording Controller Confidential
  • 3.  The Simple Logic Controller lets you organize your Samplers and other Logic Controllers. Unlike other Logic Controllers, this controller provides no functionality beyond that of a storage device.  The Simple Logic Controller has no effect on how JMeter processes the controller(s) you add to it. So, in this example, JMeter sends the requests in the following order: Ant Home Page, Ant News Page, Log4J Home Page, Log4J History Page. Confidential
  • 4.  If you add Generative or Logic Controllers to a Loop Controller, JMeter will loop through them a certain number of times, in addition to the loop value you specified for the Thread Group.  We configured the Thread Group for a single thread and a loop count value of one. Instead of letting the Thread Group control the looping, we used a Loop Controller.  We added one HTTP Request to the Thread Group and another HTTP Request to a Loop Controller. We configured the Loop Controller with a loop count value of five. Confidential
  • 5.  Now JMeter will send the requests in the following order: Home Page, News Page, News Page, News Page, News Page, and News Page. Confidential
  • 6.  The Once Only Logic Controller tells JMeter to process the controller(s) inside it only once, and pass over any requests under it during further iterations through the test plan. Confidential
  • 7.  We created a Test Plan that has a thread which sends a request to Home page and followed by a Bug page.  Now we configured Thread group to iterate 3 times.  JMeter thread sends only one request to the Home page because it was in the Once Only Controller.  JMeter will send the requests in the following order: Home Page, Bug Page, Bug Page, Bug Page  This controller will be helpful for testing that requires login session once ( same as vuser_init() in Load Runner) Confidential
  • 8.  If we add an Interleave Controller , JMeter will alternate among each of the other controllers for each loop iteration.  We configured the Thread Group and a loop count of five for a Test Plan. Confidential
  • 9.  See the table below for the sequence JMeter sends the HTTP Requests. Loop Iteration Each JMeter Thread Sends These HTTP Requests 1 News Page 1 Log Page 2 FAQ Page 2 Log Page 3 Gump Page 3 Log Page 4 Because there are no more requests in the controller, JMeter starts over and sends the first HTTP Request, which is the News Page. 4 Log Page 5 FAQ Page 5 Log Page Confidential
  • 10.  The Random Logic Controller acts similarly to the Interleave Controller, except that instead of going in order through its sub-controllers and samplers, it picks one at random at each pass. Confidential
  • 11.  The Random Order Controller is much like a Simple Controller in that it will execute each child element at most once, but the order of execution of the nodes will be random Confidential
  • 12.  The Throughput Controller allows the user to control how often it is executed. There are two modes - percent execution and total executions. Percent executions causes the controller to execute a certain percentage of the iterations through the test plan. Total executions causes the controller to stop executing after a certain number of executions have occurred. Like the Once Only Controller, this setting is reset when a parent Loop Controller restarts. Confidential
  • 13.  The Runtime Controller controls how long its children are allowed to run. Confidential
  • 14.  The If Controller allows the user to control whether the test elements below it (its children) are run or not. Confidential
  • 15.  The While Controller runs its children until the condition is "false".  Possible condition values: 1. blank - exit loop when last sample in loop fails 2. LAST - exit loop when last sample in loop fails. If the last sample just before the loop failed, don't enter loop. 3. Otherwise - exit (or don't enter) the loop when the condition is equal to the string "false" Confidential
  • 16.  The Switch Controller acts like the Interleave Controller in that it runs one of the subordinate elements on each iteration, but rather than run them in sequence, the controller runs the element number defined by the switch value.  If the switch value is out of range, it will run the zeroth element, which therefore acts as the default. Confidential
  • 17.  ForEach controller loops through the values of a set of related variables. When you add samplers (or controllers) to a ForEach controller, every sample sample (or controller) is executed one or more times, where during every loop the variable has a new value.  The input should consist of several variables, each extended with an underscore and a number. Each such variable must have a value .  We created a Test Plan that sends a particular HTTP Request only once and sends another HTTP Request to every link that can be found on the page. Confidential
  • 18.  We configured the Thread Group for a single thread and a loop count value of one. You can see that we added one HTTP Request to the Thread Group and another HTTP Request to the ForEach Controller.  After the first HTTP request, a regular expression extractor is added, which extracts all the html links out of the return page and puts them in the inputVar variable Confidential
  • 19.  The Module Controller provides a mechanism for substituting test plan fragments into the current test plan at run-time. To use this module effectively, one might have a number of Controllers under the WorkBench , each with a different series of samplers under them. The module controller can then be used to easily switch between these multiple test cases simply by choosing the appropriate controller in it's drop down box. This provides convenience for running many alternate test plans quickly and easily. Confidential
  • 20.  The Include Controller is designed to use an external jmx file. To use it, add samples to a simple controller, then save the simple controller as a jmx file. The file can then be used in a test plan. Confidential
  • 21.  The Transaction Controller times how long it takes for all its children to run. It then adds a "sample" entry to the test output with the total elapsed time. The name of the element is used to name the "sample". Confidential
  • 22.  The Recording Controller is a place holder indicating where the proxy server should record samples to.  During the test run, it has no effect, similar to the Simple Controller.  But during recording using the HTTP Proxy Server , all recorded samples will by default be saved under the Recording Controller. Confidential