I was wondering if XML can be used instead of datatables for QTP tests.
Bascically for each action, I like to create 2 or 3 sets of input/output data and provide the user the desired choice to pick from
I was wondering if XML or other means such as use of database could be used for the purpose of storing and accessing configurable data sets. Has anyone worked on this and what are the pros and cons. Thanks.
You can use the same and only difference you would have is to use some other function instead of DataTable.
The only disadvantage i see with XML's is that if the data is huge the ease of use goes away from the end user of the script. I will always prefer a excel over a XML. Though I would be fine if that excel can generate a XML and my scripts uses the XML instead. In short the convenience for the automation script user is utmost important to me
Native methods of datatables also stands as an advantage over xml files.
As Tarun points along with convenience, one also should look at minimising the input data errors from the end user side(in this case Automation script user)
Thanks. To me data tables are more or less lines of flat input/output data. Wouldn't a database or some other means be more useful for storing more complex data which has some hierarchy or structure to it?
Imagine I want to run a test on rows of a table that has 5 parameters as well as I like to use for every test in addition to those 5 parameters, a complex data set that has a hierarchy to it and I don't want or can't simply break down that data set and patch it to the end of every line of data-table. Is there a solution for this like data-base approaches. Thanks