This is a migrated thread and some comments may be shown as answers.

Data driven tests using JSON

3 Answers 120 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 16 Nov 2012, 11:14 PM
Hi, just a suggestion.  I really like the fact that you can drive the tests from a CSV but given the fact that the client is often consuming JSON wouldn't it make more sense if you could actually drive the tests using JSON data.  That way I can make a restful API call from our web site and drive the test using the JSON result set.  If I could do that I would be a happy man indeed.

3 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 19 Nov 2012, 05:07 PM
Hi John,

Where do you envision would be the data source for this JSON data? A file? A Web-service or something else? I have created a new Feature Request here. If you have anything else you would like added let me know and I'll update the description.

Greetings,
Cody
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
John
Top achievements
Rank 1
answered on 20 Nov 2012, 01:11 AM
The data source could be a Restful web service.  Currently what we have is an Asp .Net MVC solution, however much of the front end is driven by jQuery calling asyncronously to a controller on the server to get data for display purposes, i.e. graphs and charts.  If you could drive the front end tests via a call to a controller that returns a JSON result set then that might be easier to work with.
0
Cody
Telerik team
answered on 21 Nov 2012, 04:02 PM
Hi John,

It sounds like the key here is to enable the data source of a data driven test to be a web service instead of a file or a SQL database. I have updated the FR with this idea.

Regards,
Cody
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Cody
Telerik team
John
Top achievements
Rank 1
Share this question
or