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










0















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.










share|improve this question






















  • 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















0















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.










share|improve this question






















  • 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













0












0








0


0






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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












2 Answers
2






active

oldest

votes


















1














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.






share|improve this answer






























    0














    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






    share|improve this answer






















      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
      );



      );













      draft saved

      draft discarded


















      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









      1














      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.






      share|improve this answer



























        1














        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.






        share|improve this answer

























          1












          1








          1







          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 8 '15 at 19:20









          RaGeRaGe

          13.4k53774




          13.4k53774























              0














              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






              share|improve this answer



























                0














                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






                share|improve this answer

























                  0












                  0








                  0







                  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






                  share|improve this answer













                  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







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 8 '15 at 16:30









                  vinsvins

                  9,97612033




                  9,97612033



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

                      Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

                      Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved