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

Executing a specific action if the current data row is X number in data driven testing

1 Answer 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pravin
Top achievements
Rank 1
Pravin asked on 29 Dec 2016, 05:49 AM

Hi team, 

I'm hoping to find a way to execute a specific action if the current data row number is equals to X number in my local data for data driven testing. 

I've manage to find a property that gets the CurrentDataRow but i can't seem to manipulate it accordingly. Here's the idea of the code that i'm looking to achieve but it can't seem to work. Do help to advice. 

   public void Login_CodedStep()
        {                        
            if(ExecutionContext.CurrentDataRow == 1) {

              this.ExecuteTest("Login\\VerifyFailLogin.tstest");

    else if (ExecutionContext.CurrentDataRow == 2)

             this.ExecuteTest("Login\\VerifyPassLogin.tstest")

             }

         }

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 02 Jan 2017, 02:31 PM
Hi Pravin,

Please note that this thread duplicates another one submitted by you and therefore will be closed. You could find the respective answer here and continue the communication in case of need. Thanks in advance for your understanding! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Pravin
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or