How to add regular expression extractor for more than 1 viewstate in jmeter for asp.net page2019 Community Moderator ElectionJMeter Regular Expression Extractor Not Working For IFrameHow to extract GUID using regular extractor in jmeterJMeter: “__VIEWSTATE” and “__EVENTVALIDATION” value does not get replaced after extracting values using Regular Expression Extractor Post ProcessorJMeter: How to know why my regular expression extractor in JMeter is not extracting the dataRegular Expression for span text in jmeterHow to extract the Json values in jmeter using regular expression extractor?Jmeter - Regular Expression ExtractorNeed help understanding jmeter regular expression extractor and results tree outputhow to use regular expression extractor in jmeterHow can add regular expression in Jmeter
How to chmod files that have a specific set of permissions
Dukha vs legitimate need
Is divide-by-zero a security vulnerability?
Create chunks from an array
PTIJ: Mouthful of Mitzvos
Deal the cards to the players
Can inspiration allow the Rogue to make a Sneak Attack?
How do you make a gun that shoots melee weapons and/or swords?
Who is at the mall?
Did Amazon pay $0 in taxes last year?
Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?
Can a space-faring robot still function over a billion years?
Should I use HTTPS on a domain that will only be used for redirection?
Learning to quickly identify valid fingering for piano?
Is there a math equivalent to the conditional ternary operator?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
Iron deposits mined from under the city
Is every open circuit a capacitor?
How to write a chaotic neutral protagonist and prevent my readers from thinking they are evil?
ESPP--any reason not to go all in?
Is "cogitate" an appropriate word for this?
What is the purpose of a disclaimer like "this is not legal advice"?
Why do we call complex numbers “numbers” but we don’t consider 2 vectors numbers?
Why won't the strings command stop?
How to add regular expression extractor for more than 1 viewstate in jmeter for asp.net page
2019 Community Moderator ElectionJMeter Regular Expression Extractor Not Working For IFrameHow to extract GUID using regular extractor in jmeterJMeter: “__VIEWSTATE” and “__EVENTVALIDATION” value does not get replaced after extracting values using Regular Expression Extractor Post ProcessorJMeter: How to know why my regular expression extractor in JMeter is not extracting the dataRegular Expression for span text in jmeterHow to extract the Json values in jmeter using regular expression extractor?Jmeter - Regular Expression ExtractorNeed help understanding jmeter regular expression extractor and results tree outputhow to use regular expression extractor in jmeterHow can add regular expression in Jmeter
I have 10 different __viewstate values in jmeter script. one is for login and others are for post methods. how can i use regular expression extractor to parameterize the viewstate for performance testing.
jmeter viewstate
add a comment |
I have 10 different __viewstate values in jmeter script. one is for login and others are for post methods. how can i use regular expression extractor to parameterize the viewstate for performance testing.
jmeter viewstate
You can use 1 regular expression with multiple matches. Did you look up the documentation for regex extractor?
– RaGe
Dec 8 '15 at 14:44
So you want to use a regular expression extractor to grab 10 values from the page? Is this correct? Can you provide an example?
– jgabb
Dec 8 '15 at 14:48
@jgabb Yes. Posted an answer below.
– RaGe
Dec 8 '15 at 19:20
I was asking the OP =) @RaGe
– jgabb
Dec 8 '15 at 20:55
@jgabb ah! that makes more sense. You sounded super-aggressive when I thought you were talking to me :)
– RaGe
Dec 8 '15 at 21:26
add a comment |
I have 10 different __viewstate values in jmeter script. one is for login and others are for post methods. how can i use regular expression extractor to parameterize the viewstate for performance testing.
jmeter viewstate
I have 10 different __viewstate values in jmeter script. one is for login and others are for post methods. how can i use regular expression extractor to parameterize the viewstate for performance testing.
jmeter viewstate
jmeter viewstate
asked Dec 8 '15 at 13:51
RM123RM123
315
315
You can use 1 regular expression with multiple matches. Did you look up the documentation for regex extractor?
– RaGe
Dec 8 '15 at 14:44
So you want to use a regular expression extractor to grab 10 values from the page? Is this correct? Can you provide an example?
– jgabb
Dec 8 '15 at 14:48
@jgabb Yes. Posted an answer below.
– RaGe
Dec 8 '15 at 19:20
I was asking the OP =) @RaGe
– jgabb
Dec 8 '15 at 20:55
@jgabb ah! that makes more sense. You sounded super-aggressive when I thought you were talking to me :)
– RaGe
Dec 8 '15 at 21:26
add a comment |
You can use 1 regular expression with multiple matches. Did you look up the documentation for regex extractor?
– RaGe
Dec 8 '15 at 14:44
So you want to use a regular expression extractor to grab 10 values from the page? Is this correct? Can you provide an example?
– jgabb
Dec 8 '15 at 14:48
@jgabb Yes. Posted an answer below.
– RaGe
Dec 8 '15 at 19:20
I was asking the OP =) @RaGe
– jgabb
Dec 8 '15 at 20:55
@jgabb ah! that makes more sense. You sounded super-aggressive when I thought you were talking to me :)
– RaGe
Dec 8 '15 at 21:26
You can use 1 regular expression with multiple matches. Did you look up the documentation for regex extractor?
– RaGe
Dec 8 '15 at 14:44
You can use 1 regular expression with multiple matches. Did you look up the documentation for regex extractor?
– RaGe
Dec 8 '15 at 14:44
So you want to use a regular expression extractor to grab 10 values from the page? Is this correct? Can you provide an example?
– jgabb
Dec 8 '15 at 14:48
So you want to use a regular expression extractor to grab 10 values from the page? Is this correct? Can you provide an example?
– jgabb
Dec 8 '15 at 14:48
@jgabb Yes. Posted an answer below.
– RaGe
Dec 8 '15 at 19:20
@jgabb Yes. Posted an answer below.
– RaGe
Dec 8 '15 at 19:20
I was asking the OP =) @RaGe
– jgabb
Dec 8 '15 at 20:55
I was asking the OP =) @RaGe
– jgabb
Dec 8 '15 at 20:55
@jgabb ah! that makes more sense. You sounded super-aggressive when I thought you were talking to me :)
– RaGe
Dec 8 '15 at 21:26
@jgabb ah! that makes more sense. You sounded super-aggressive when I thought you were talking to me :)
– RaGe
Dec 8 '15 at 21:26
add a comment |
2 Answers
2
active
oldest
votes
As per regular expression extractor documentation:
If the match number is set to a negative number, then all the possible matches in the sampler data are processed. The variables are set as follows:
- refName_matchNr - the number of matches found; could be 0
- refName_n, where n = 1,2,3 etc - the strings as generated by the template
- refName_n_gm, where m=0,1,2 - the groups for match n
- refName - always set to the default value
Set match number -1
for one expression to return all matches from the response.
add a comment |
As RaGe mentioned in the comment, you can just use 1 Regular Expression Extractor to find all the matches for the given pattern.
Regular Expression Extractor - Example
MatchNo :
- 0 for random
- 1 for first match
- 2 for second match and so on.
- -1 for all matches
When you enter -1 & get all matches, to access the first match, use TheVariableName_1
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f34157649%2fhow-to-add-regular-expression-extractor-for-more-than-1-viewstate-in-jmeter-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
As per regular expression extractor documentation:
If the match number is set to a negative number, then all the possible matches in the sampler data are processed. The variables are set as follows:
- refName_matchNr - the number of matches found; could be 0
- refName_n, where n = 1,2,3 etc - the strings as generated by the template
- refName_n_gm, where m=0,1,2 - the groups for match n
- refName - always set to the default value
Set match number -1
for one expression to return all matches from the response.
add a comment |
As per regular expression extractor documentation:
If the match number is set to a negative number, then all the possible matches in the sampler data are processed. The variables are set as follows:
- refName_matchNr - the number of matches found; could be 0
- refName_n, where n = 1,2,3 etc - the strings as generated by the template
- refName_n_gm, where m=0,1,2 - the groups for match n
- refName - always set to the default value
Set match number -1
for one expression to return all matches from the response.
add a comment |
As per regular expression extractor documentation:
If the match number is set to a negative number, then all the possible matches in the sampler data are processed. The variables are set as follows:
- refName_matchNr - the number of matches found; could be 0
- refName_n, where n = 1,2,3 etc - the strings as generated by the template
- refName_n_gm, where m=0,1,2 - the groups for match n
- refName - always set to the default value
Set match number -1
for one expression to return all matches from the response.
As per regular expression extractor documentation:
If the match number is set to a negative number, then all the possible matches in the sampler data are processed. The variables are set as follows:
- refName_matchNr - the number of matches found; could be 0
- refName_n, where n = 1,2,3 etc - the strings as generated by the template
- refName_n_gm, where m=0,1,2 - the groups for match n
- refName - always set to the default value
Set match number -1
for one expression to return all matches from the response.
answered Dec 8 '15 at 19:20
RaGeRaGe
13.4k53774
13.4k53774
add a comment |
add a comment |
As RaGe mentioned in the comment, you can just use 1 Regular Expression Extractor to find all the matches for the given pattern.
Regular Expression Extractor - Example
MatchNo :
- 0 for random
- 1 for first match
- 2 for second match and so on.
- -1 for all matches
When you enter -1 & get all matches, to access the first match, use TheVariableName_1
add a comment |
As RaGe mentioned in the comment, you can just use 1 Regular Expression Extractor to find all the matches for the given pattern.
Regular Expression Extractor - Example
MatchNo :
- 0 for random
- 1 for first match
- 2 for second match and so on.
- -1 for all matches
When you enter -1 & get all matches, to access the first match, use TheVariableName_1
add a comment |
As RaGe mentioned in the comment, you can just use 1 Regular Expression Extractor to find all the matches for the given pattern.
Regular Expression Extractor - Example
MatchNo :
- 0 for random
- 1 for first match
- 2 for second match and so on.
- -1 for all matches
When you enter -1 & get all matches, to access the first match, use TheVariableName_1
As RaGe mentioned in the comment, you can just use 1 Regular Expression Extractor to find all the matches for the given pattern.
Regular Expression Extractor - Example
MatchNo :
- 0 for random
- 1 for first match
- 2 for second match and so on.
- -1 for all matches
When you enter -1 & get all matches, to access the first match, use TheVariableName_1
answered Dec 8 '15 at 16:30
vinsvins
9,97612033
9,97612033
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f34157649%2fhow-to-add-regular-expression-extractor-for-more-than-1-viewstate-in-jmeter-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can use 1 regular expression with multiple matches. Did you look up the documentation for regex extractor?
– RaGe
Dec 8 '15 at 14:44
So you want to use a regular expression extractor to grab 10 values from the page? Is this correct? Can you provide an example?
– jgabb
Dec 8 '15 at 14:48
@jgabb Yes. Posted an answer below.
– RaGe
Dec 8 '15 at 19:20
I was asking the OP =) @RaGe
– jgabb
Dec 8 '15 at 20:55
@jgabb ah! that makes more sense. You sounded super-aggressive when I thought you were talking to me :)
– RaGe
Dec 8 '15 at 21:26