Data Handling example

Best practices, code snippets for common functionality, examples, and guidelines.
User avatar
Posts: 60
Joined: Thu May 24, 2012 12:37 am
Location: Brisbane, Australia

Data Handling example

Post by IanF » Sun Oct 07, 2012 11:20 pm

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.
You do not have the required permissions to view the files attached to this post.
Ian Fraser

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Data Handling example

Post by Support Team » Tue Oct 16, 2012 2:29 pm


Thank you for posting your example.

Markus (T)
Ranorex Support Team