Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in using Regular Expression Extractor

 
Raminder Singh
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • 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?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Amit Tomer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic