HomeSUPPORT QUESTIONS

Need help with StresStimulus? Start here.

Question about Request Body Parameter Messages in this topic - RSS

ter
ter
Posts: 12


8/25/2014
ter
ter
Posts: 12
We need to use a Dataset VU-Iter-Bound parameter in a request body.
The original request body looked like this:
... {"Patient":{"PatientCode":"{076829e9-9774-4a3d-883c-20e7aa960488}"},"...
We need the GUID to come from the Dataset for each VU and Iteration and so tried this:
... {"Patient":{"PatientCode":"{{{PatientCodeDataset.PATIENTCODE$VU-Iter-Bound}}}"},"...
But the resulting requests look like this:
":{"Patient":{"PatientCode":"{{{PatientCodeDataset.PATIENTCODE$VU-Iter-Bound}}}"},"
in other words, nothing no substitution took place.
If I add a space between { and {{,
... {"Patient":{"PatientCode":"{ {{PatientCodeDataset.PATIENTCODE$VU-Iter-Bound}} }"},"...
Stressstimulus will parametrize the requests:
... {"Patient":{"PatientCode":"{ 076829e9-9774-4a3d-883c-20e7aa960488 }"},"...
but unfortunately, the request, with the additional space, is not valid in the eyes of the software we are testing (we cannot have the space in the request).
Is there a workaround?

Thanks,
Ter


0 link






Copyright © 2019 Stimulus Technology