• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in using Regular Expression Extractor

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,
i'm providing details of problem i'm facing.
I have to extract values from a server response, save in a variable and pass along with URL of next HTTP request.
Lets say reqA generates resA. in reqB there is variable hotelNumber=1 append in URL.
Now i'm using Post-Processer Regular Expression Extractor to extract value from resA with Reference Name:HN/Regular Expression:hotelNumber=(.+?)/Template:$1$/Match No:1.
now in HTTP Request sampler, i'm using Pre-processer user parameters with name:hotelName/user_1:$HN(as reference name in Regular Expression Extractor ).
but value of hotelNumber not appending with reqB.
where am going wrong?
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
May I ask how is this related to Testing? If it isn't, then I'd strongly suggest posting the question to the "Java in General (Advanced)" forum.
 
Raminder Singh
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm doing this all in JMeter.
What i asked, is part of writing test scripts in JMeter for my application.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Raminder,
I am also facing same problem in JMeter script. I have to process value of one variable from HTML response. If you were able to get through your problem, could you pls share it here.

Thanks
Amit
 
reply
    Bookmark Topic Watch Topic
  • New Topic