Hello,
I need to read XML as a data file. In Ranorex, is it possible to read the xml file with some built-in class just like CSVConnector?
Alternately, I can treat the entire xml content as a column in a data file and read it but unfortunately I cannot use CSVConnector because commas are used in the XML content. Can we choose any other character instead of comma to parse the values?
Thanks
Kirant
Reading XML as data file
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Reading XML as data file
Hi,
http://support.microsoft.com/kb/307548 and write you own XMLReader.
Regards,
Peter
Ranorex Team
I would suggest you to use the following documentationkirant wrote:Can we choose any other character instead of comma to parse the values?
http://support.microsoft.com/kb/307548 and write you own XMLReader.
Regards,
Peter
Ranorex Team
Re: Reading XML as data file
Hi Peter,
Alternatively, is it possible to put the data in the database and read from there? Does Ranorex have an in-built class just like CSVConnector to support database driven testing?
Thanks
Kirant
Alternatively, is it possible to put the data in the database and read from there? Does Ranorex have an in-built class just like CSVConnector to support database driven testing?
Thanks
Kirant
Re: Reading XML as data file
Kirant, you do realize that anything you can write in C# or VB.NET (and a few other languages) you can do in Ranorex...is it possible to put the data in the database and read from there?
Use google to search how to read and write data from your DB of choice. Put that code into your automation code. And there you go...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...