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

3 posts, 0 answers
  1. Veera
    Veera avatar
    25 posts
    Member since:
    Jul 2010

    Posted 14 Dec 2010 Link to this post

    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. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 16 Dec 2010 Link to this post

    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
  3. Veera
    Veera avatar
    25 posts
    Member since:
    Jul 2010

    Posted 16 Dec 2010 Link to this post

    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

Back to Top