Extract which value is being fetched from datasource

Ranorex Spy, Recorder, and Studio.
Posts: 25
Joined: Thu Sep 06, 2012 9:13 am

Extract which value is being fetched from datasource

Post by Shruti » Fri Sep 21, 2012 12:09 pm

Hello All,

I have created a data driven test.
I want to know how can I get what value is being fetched form datasource at runtime.(I need to get that value to perform some processing on it)
If my datasource(In this case, It's a CSV file) is like:

Inst_Nor ParaSel
1 1
2 2;7
3 2;5

and on running the testcase from Test Suite, if it's 2nd iteration, I want to extract in code the value "2;7" for "ParaSel"...
Or If not this, atleast some way to get what is the current iteration i.e. iteration 1 or iteration 2,....

I tried to get the value of variable linked with the column "ParaSel"..but it always gives the default value allotted to that variable.
Please suggest if there is some way to solve this problem

Thanks and Regards,

User avatar
Support Team
Site Admin
Site Admin
Posts: 11736
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Extract which value is being fetched from datasource

Post by Support Team » Fri Oct 05, 2012 3:52 pm

Hello Shruti,

Sorry for the late response. Your post wasn't tracked in our system.

Regarding you question, did you bind the data column to a module variable?
If you did so, you can get the value of the current iteration via the bound variable.
For further information please read the section Data-Driven Testing in our user guide.

Ranorex Support Team