harish3314
7 years agoOccasional Contributor
How to generate a Json request body using the test case property.
Hello I want to generate a Json Req body using the test case properties which I actually did but I am unable to pass it in a post body.
- 7 years ago
Hi Harish,
Thank you for your post.
The test case property values can be gotten via a groovy script(you can use a groovy script test step to do this), and then use the property expansion on the post body to get the value from the groovy script.
https://www.soapui.org/scripting-properties/tips-tricks.html
https://www.soapui.org/getting-started/point-and-click-testing.html
https://support.smartbear.com/readyapi/docs/testing/properties/get-data.html
Best,
Lakshmi