Forum Discussion
Hi,
I am not sure that I got the actual problem...
Have you checked that your regular expression extracts correct data?
Or the problem is that the regular expression works but the extracted value is not assigned to the variable at all?
Or the variable contains some unexpected value?
Any error in the log?
Any chance to see the sample response, regular expression and how things are setup in your project (screenshot(s) for the setup part)?
- SagarShroff9 years agoOccasional Contributor
Hi Alex,
Excuse me for not being clear in post description.
Regular expression works fine when specified in data selectors directly. But if a variable containing the expression is specified then the expression fails to extract the value from the response.
I think LoadComplete treats @variable also as regular expression string and does not evaluate the variable.
Regards,
Shroff.
- AlexeyKryuchkov9 years agoSmartBear Alumni (Retired)
Hi,
Try defining an appropriate auto-correlation rule instead - in the "Find names and extra attributes" section, it is possible to define a regular expression for finding names or extra attributes. Then, it will be possible to reuse found values for building regular expressions for data selectors.
Related Content
- 3 years ago
- 8 years ago
- 3 years ago
Recent Discussions
- 3 years ago
- 3 years ago
- 4 years ago