Hi,
Need help in below problem..
JMeter script recording capture JSON post request with three escape
character(\) and rerun as it is without parameterization it works fine. But if
we use any Variable "${xyz}" anywhere in the request body and run in JMeter,
all the three slashes(\) becomes two slashes(\) while passing the request to
application. Then the request failed as "BAD Request" as application doesn't
accept request with two slashes.
I have already tried "FileToString" method but no success.
"Draft":{
"id": 123654656,
"draftdata":{\\\"accCat\\\":\\\"207\\\",\\\"accNumber\\\":\\\"656565
\\\",\\\"id\\\":${Var_ID},...}
}
"Draft":{
"id": 123654656,
"draftdata":{\\\"accCat\\\":\\\"207\\\",\\\"accNumber\\\":\\\"656565
\\\",\\\"id\\\":9876,...}
}
When i pass request with variable the request becomes like below and can be
seen in results tree as request body
"Draft":{
"id": 123654656,
"draftdata":{\\"accCat\\":\\"207\\",\\"accNumber\\":\\"656565
\\",\\"id\\":${Var_ID},...}
But without parameterization variable it works perfectly as request goes with
three slashes(\).
============================================================================================================================
Disclaimer: This message and the information contained herein is proprietary
and confidential and subject to the Tech Mahindra policy statement, you may
review the policy at http://www.techmahindra.com/Disclaimer.html
<http://www.techmahindra.com/Disclaimer.html> externally
http://tim.techmahindra.com/tim/disclaimer.html
<http://tim.techmahindra.com/tim/disclaimer.html> internally within
TechMahindra.
============================================================================================================================