1

I am trying to handle the dynamic path of an HTTP request using JMeter. But I am not able to do so. I have tried post processor in a previous HTTP request to get the next HTTP request dynamic path but it is not working. Please guide me.

Dynamic path:

Path

The complete path looks like as below mentioned an example.

abc.c_o_m/en/book/confirm/VZM5O/ARL715?tfk=tfk59771a9df0fbd4.08848159

Post Regular expression:

Post Regular Expression Extractor

After execution, I have checked in debug sampler but ${Path} contains only default value i.e. 0.

2

Your Regular Expression Extractor configuration is a little bit incorrect:

  1. You should change "Field to check" of your Regular Expression Extractor to URL
  2. You should amend your Regular Expression to something like: /en/book/confirm/(.*)

In your current setup your Regular Expression looks into the Response Message (which is OK for HTTP Status Code 200) and extracts the first letter only from it, which is 0

Example Regular Expression Configuration:

JMeter Regular Expression Configuration

Demo:

JMeter Regular Expression Demo

References:

  • Currently i am facing one more issue that Dynamic URL path is changed on same HTTP request and site navigate to the next step by using this Dynamic URL path using same URL. This path is not known to previous HTTP request. – Islam Jul 31 '17 at 12:50
0

There might be some code at browser which would be decrypting the password before sending it.You need to get that code. Capture the value and pass it in that code before sending it.

It might be written in javascript, else check what it is doing and replicate same in BeanShell.

Read more: https://softwaretestingboard.com/q2a/3381/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.