Forum Discussion

Olga_T's avatar
Olga_T
SmartBear Alumni (Retired)
7 years ago

Develop a Script [part III] – Win in API Summer!

Hi Community,

 

Hurry up to create new topics and win in API Summer 2018! Share your use cases, scripts you developed, or any useful instructions with the ReadyAPI Community.

 

Here are some ideas for the scripts to post:

 

  • Rerunning failed TestCases

Create a script, which reruns failed TestCases until they pass, but not more than N times.  

 

  • Convert a flat JSON object to x-www-form-urlencoded

Create a Groovy script, which transforms a non-nested JSON object to the x-www-form-urlencoded format before sending it in the request body.

Example: converting this object

{
  "name": "John",
  "age": 30,
  "city": "New York"
}

should result in the name=John&age=30&city=New%20York string.

 

Create scripts based on these tasks and feel free to share your own scripts with us.

I’m looking forward to new topics!