0% found this document useful (0 votes)
120 views6 pages

Pre-Processor: Jmeter Tutorial

dfgdf

Uploaded by

Interact people
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views6 pages

Pre-Processor: Jmeter Tutorial

dfgdf

Uploaded by

Interact people
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Pre-Processor

Home / JMeter

November 6, 2016 JMeter By Rida Sattar

JMeter Tutorial

JMeter SetUp

JMeter Basics

Build JMeter Test Plan

Elements of Test Plan

Pre-Processor element is defined to alter the settings of Samplers in their scope. It will always execute before the actual sampler
request.

Pre-Processors elements list is as follows:

BeanShell PreProcessor
BSF PreProcessor
HTML Link Parser
HTTP URL Re-writting Modifier
JDBC PreProcessor
JSR223 PreProcessor
RegEx User Parameters
Sample Timeout
User Parameters

Let’s have a look on some common types of Pre-processors:


1: User Parameters:
User Parameter element is used to define variables and its values, specific to individual threads.

User Parameter values will be defined for the current sampler only, unlike User Defined Variables in test plan which are available to all
the samplers in the scope.

1. Update Once Per Iteration Checkbox: A flag to specify whether the User Parameters element should update its variables only once
per iteration.
2. Add Variable: New empty row can be added to define variable
3. Add User: New column can be added for user/thread

2: HTML Link Parser:


HTML Link Parser is used to parse HTML response from the test server and to extract links/forms.

If we use this preprocessor with a sampler, that URL test sample will be examined to see if it matches any of the links/forms which
extracted from the previous response. If this is the case then it will replace the URL test sample values from the matching link/form.

3: HTTP URL Re-writing Modifier:


HTTP URL Re-writing Modifier is quite similar to the “HTML Link Parser”. However, it is more efficient and easy to use because it has a
specific goal to achieve. For Instance: If your web application uses URL rewriting to store session Ids instead of cookies, you can define
this element at the Thread Group level similar to the HTTP Cookie Manager. You are required to mention Session Id parameter name,
then it will find it on the page and will pass argument to every request of that Thread Group.
1. Session Argument parameter name is used to fetch value (href/form) from previous response.
2. If you web application rewrite URLs by appending a semi-colon and session Id parameter, then select it.
3. If your web application rewrite URLs without an “=” sign between parameter name and its value, then select it.
4. It will prevent query string in the path extension.
5. Check “Cache Session Id” checkbox, if session Id is to be saved for later use, when there is no session Id present.
6. URL Encode value while writing parameter.

4: RegEx User Parameters


RegEx User Parameters element let us stipulate dynamic values for HTTP parameters extracted from other HTTP Request with the
help of Regular Expressions. RegEx User Parameter are specific to individual threads in a test plan.

For more updates on JMeter, please Subscribe to our Newsletter.



Please ask any questions on ForumsQA, in case of any issues or doubts.

JMeter

Share this post

About the author

Rida Sattar

My name is Rida Sattar. As a technical-savvy, I have more than 3 years of experience in Software testing and Selenium automation.
Currently I am working as a Senior QA Automation Engineer for an IT company in Karachi, Pakistan. I always love to put myself in new
challenges and break software from different angles. I have passion for automation and performance testing. I always try to share my
ideas and knowledge with the community because I believe in this quote: “Knowledge has no value unless you use and share it.”

Related posts

Test Plan Elements


September 24, 2018

Getting Familiar with JMeter GUI


July 19, 2018

How to Install JMeter?


July 4, 2018

How to Install Java on Mac OS?


July 4, 2018

Introduction to JMeter
June 21, 2018

Logic Controller
November 6, 2016

SUBSCRIBE TO NEWSLETTER

Enter your email address:

Subscribe
GOT SELENIUM PROBLEMS ?

RECENT POST

What is TestNG?

WebDriverManager

Test Plan Elements

Generate Newman Reports on Jenkins

Run Postman Collection on Jenkins

Getting Started with Cucumber BDD for Testing in Agile Teams

Using XPath Generator for test recording in Katalon Studio

Configure Jenkins Job to Run Batch Command

Postman with Newman & Jenkins

API Testing with Postman

Install Jenkins

SQL Table Commands

Newman Optional Parameters & Configurations

Trees

Queuing for Beginners

Got a Question?

Subscribe in a reader
Site Links

Selenium Training
Corporate Training
Video Tutorials
About Us
Guest Blogs
Testimonials
Contact Us
SITEMAP

Tutorials

Software Testing

Selenium - Java

Selenium - C#

Cucumber

SpecFlow

Appium

TestNg

JUnit

Maven

Java

Postman

Katalon

Author

I’M LAKSHAY SHARMA AND I’M A TEST AUTOMATION ENGINEER.

Have passed 11 years playing with automation in mammoth projects like O2 (UK), Sprint (US), TD Bank (CA), Canadian Tire
(CA), NHS (UK) & ASOS(UK).
Currently I am working with BLOOMREACH as SDET.

I am passionate about designing Automation Frameworks that are effective and easy to maintain. For automating websites my
weapons are QTP and Selenium (Webdriver). I live in Amsterdam(NL), with my wife and a lovely daughter.

Please connect with me at LinkedIn or follow me on Instagram.

© 2013-2018 TOOLSQA.COM | ALL RIGHTS RESERVED

You might also like