Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
443 views
by Contributing Tester (42 points)
edited by
Shall I prefer Json for test data passing purpose  instead of excel or properties file?

my client specifically asked for json for test data.

I am looking for response

{ "testcase":"TC_01", "searchtext1":"selenium", "searchtext2":"JScript", "filename":"ExportedBook_", "title":"Book Creator from Wikipedia", "subtitle":"Using Automation" },

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)
selected by
 
Best answer
Well, with JSON can be preferred if you have a proper JSON parsing mechanism in place. For passing test data I would suggest you to use Excel file or Property file. JSON parsing can be a little tedious if you have to create large JSON.

If you are getting test data using a REST API, JSON makes sense very well.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...