Data driven tests using JSON

4 posts, 0 answers
  1. John
    John avatar
    11 posts
    Member since:
    Nov 2012

    Posted 16 Nov 2012 Link to this post

    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.
  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 19 Nov 2012 Link to this post

    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
  3. John
    John avatar
    11 posts
    Member since:
    Nov 2012

    Posted 19 Nov 2012 Link to this post

    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.
  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 21 Nov 2012 Link to this post

    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
Back to Top