cancel
Showing results for 
Search instead for 
Did you mean: 

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

Moderator

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

Hi all,

 

It’s time for another portion of additional tasks for our API Summer 2018. Create scripts based on the tasks below and get two points to your score.

 

  • Operating with REST Interfaces and Requests

Create a script which posts REST Interfaces structures of a current project to a text file. Under each method, list names of functional REST Request Test Steps for this method. The format of the file is arbitrary (whatever looks more reasonable and readable for you). Example: https://www.screencast.com/t/WVmvALNW2Ds

  • Groovy DataSource

Create a script for Groovy DataSource, which generates the JSON payload of the following format, where, in each iteration, one element has a string value (read from an Excel file https://www.screencast.com/t/mvIbICiHa) and the others are "null":

First iteration

{

"x1": "val1",

"x2": null,

"x3": null,

"x4": null,

"x5": null

Second iteration

{

"x1": null,

"x2": "val2",

"x3": null,

"x4": null,

"x5": null

}

etc. 

 

Share with us your scripts or create your own how-to's. Just don’t forget to create new topics for this.

I hope you enjoy API Summer 2018!

 

Olga Terentieva,
SmartBear Assistant Community Manager
1 REPLY
Highlighted
Moderator

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

We have got both the tasks accomplished!

 

Please find the solution by these links:

Operating with REST Interfaces and Requests

Script challenge for Groovy DataSource - API Summer 2018

 

Thanks everyone who keeps an eye on our updates and accomplishes additional tasks for API Summer 2018.

 

Olga Terentieva,
SmartBear Assistant Community Manager
Watch a Video Interview
Top Kudoed Authors
Are You In?

Meet the Community Leaders!

SmartBear Connect is an excellent opportunity for training, in-person support, and networking.

GET YOUR TICKET WITH $100 OFF