This is a migrated thread and some comments may be shown as answers.

Control the iteration if the Data Table has more than 1 rows

2 Answers 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Veera
Top achievements
Rank 1
Veera asked on 14 Dec 2010, 10:09 AM

Once the data source is binded to a test, we are able to control the data pointer using the below code.

var row = this.ExecutionContext.ActiveDataRows[1];
var dataString = row["Col1"];

But we are unable to control the data iteration to a particular row, say if we have 5 rows in an excel sheet and using the above code we can make the tool to start from particular row but not control to only particular row.

Impact: Due to this, we are unable to execute a specific row (Only One) out of 10 records available in the test data sheet.

2 Answers, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 16 Dec 2010, 08:57 PM

Hello Veeraraghavan,

We previously answered this thread within your ticket named Reg: Support Required in Clarifying & Suggestion Solutions. Please let us know by replying to this thread if, after reviewing the provided answer, you still have questions on this specific thread regarding Controlling the iteration if the data table has more than 1 row.

If you are not still having issue, we will close this ticket for you.

Regards,
Keaegan
the Telerik team

Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
0
Veera
Top achievements
Rank 1
answered on 16 Dec 2010, 10:14 PM
Controlling the Iteration: Yes mentioned feature is useful only to certain extent. If we want to use row 1, row 2 , row 3 and row 1 again. It is not possible even though i set row thro code below

var row = this.ExecutionContext.ActiveDataRows[1];
var dataString = row["Col1"];

uSing dialog sequential increases the iteration It does not support random access.

Thanks,
Veera

Tags
General Discussions
Asked by
Veera
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
Veera
Top achievements
Rank 1
Share this question
or