Page 1 of 1

Extract which value is being fetched from datasource

Posted: Fri Sep 21, 2012 12:09 pm
by Shruti
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,
Shruti

Re: Extract which value is being fetched from datasource

Posted: Fri Oct 05, 2012 3:52 pm
by Support Team
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.
YourBoundModuleVariable.ToString()
For further information please read the section Data-Driven Testing in our user guide.

Regards,
Bernhard
Ranorex Support Team