Forum Discussion
Hi
thank you for helping out. I tried the way you have mentioned but I am getting error in the response, which look something like this; Also i have attached the screenshot of how I have set it up. Please let me know if you if I had done something differently.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>SyntaxError: Unexpected token C in JSON at position 11<br> at JSON.parse (<anonymous>)<br> at pars
Hi,
Screenshots look OK.
I would recommend to Verify the scenario (button with green triangle in the Scenario Editor). This will execute the scenario for one virtual user and all data for requests and responses will be logged. Then navigate to the failed request in the log and check if the structure of the JSON been sent corresponds to the structure of the recorded one.
- nkarmacharya6 years agoOccasional Contributor
HI Alex,
So the reason why it was not working was, in set variable we were using the quotes. I removed the quotes on the starting and the ending of the expression and it worked fine. thanks much for your help
- AlexKaras6 years agoChampion Level 3
Hi,
Thank you for the update. Great to know that things are working for you now.
> I removed the quotes
In this case, one concat() function should be enough, though I am pretty sure that you've already did it this way :)
P.S. I created a new feature request: https://community.smartbear.com/t5/LoadComplete-Feature-Requests/Make-it-possible-to-use-variables-within-the-data-correlation/idi-p/174630 and you are welcome to comment / vote.
Related Content
- 8 years ago
Recent Discussions
- 12 months ago
- 3 years ago
- 3 years ago
- 3 years ago