Extract which value is being fetched from datasource
Posted: 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,
Shruti
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