Page 1 of 1

Data Handling example

Posted: Sun Oct 07, 2012 11:20 pm
by IanF
I have been having a play with this data thing. Atteched is a small project file "Example" It's one I downloaded from here and modified.

There are 2 tests VIP_DB & VIP_DB_II, the first starts the app and loads data for the second.

XLWrapper.cs is the Excel data handling file it is a conversion of the stuff I used in my QTP days. Credit for the conversion goes to one of Dev's here. It is not without its bugs but it works in the context of this example.

You can use the methods from XLWrapper.cs in coded modules or in recorded modules via add user code.

Note the path of this project on my machine is "C:\Ranorex_Project_FS"

When you run the Tests the data will be written to the project data file (First & Last Name) this will then be used by the second test.

You can use methods from XLWrapper.cs to write captured values at runtime for use in tests down the line.

This is not presented as solution it is presented as an idea for discussion.
Example.zip

Re: Data Handling example

Posted: Tue Oct 16, 2012 2:29 pm
by Support Team
Hello!

Thank you for posting your example.

Regards,
Markus (T)
Ranorex Support Team