SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Regexp Extractor is not passing the expected value

    I'm trying to set a variable retrieved from the database into an HTTP request to my website. So far, the value returned has been incorrect regardless of what method I've tried. Seems like I'm missing something important, but I can't see what based on documentation. Attached to this post is an image that indicates what I've done so far. Please let me know if additional information is needed but I would appreciate any advice regarding this road-block.

    Note: I created a Regular Expression Extractor with a default value of 42 - value of 42 is being passed to the HTTP request so I've been working under the impression that this step is the point of failure since the response data from the parent JDBC request provides the correct value.
    Attached Images Attached Images

  2. #2
    Member
    Join Date
    Jan 2010
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regexp Extractor is not passing the expected value

    You need to wrap parenthesis instead of single quotes around your targeted regex.

    Let's say you wanted the post number to this topic:
    http://www.sqaforums.com/showflat.ph...e=0#Post659803

    Your regex would be something like this:
    http://www.sqaforums.com/showflat.php?Cat=0&Number=([0-9]+)&an=0&page=0#Post659803

    I've found that this link is helpful in testing out regex that works in Jmeter (use debug sampler liberally!!), dropdown set to Perl5 expressions.
    http://jakarta.apache.org/oro/demo.html

  3. #3
    Senior Member
    Join Date
    Apr 2009
    Posts
    331
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regexp Extractor is not passing the expected value

    If, after reading Link's post, you're still having issues, give us an example of the source you're applying the regex too, and we can give you some more pointers.

    Also, another great tool for regex testing is regexbuddy. It's small and invaluable, imho.

  4. #4
    Junior Member
    Join Date
    Jan 2011
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regexp Extractor is not passing the expected value

    Thank you guys. I promise to name my firstborn children after you. It worked perfectly!

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.34%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 06:29 AM.

Copyright BetaSoft Inc.