Ask a Question

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

Olga_T
Moderator

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!

 


Olga Terentieva
SmartBear Assistant Community Manager

1 REPLY 1
Olga_T
Moderator

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

Hi all,

 

We have got scripts for both the tasks posted now:

Groovy script to re-run failed tests

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

 

@Lucian, @aaronpliu, thanks for sharing!

 

All, don’t hesitate to share your own scripts or instructions that you find useful with our ReadyAPI Community!

 


Olga Terentieva
SmartBear Assistant Community Manager

cancel
Showing results for 
Search instead for 
Did you mean: