captain jack
captain jack

Reputation: 69

Executing a selected test when a particular data row is selected

I'm trying to do a simple if else function during a particular number of data row executed for Data Driven Testing.

The idea is simply to execute test "x" if the current data row is "x". I found a property (CurrentDataRow) in Telerik documents to do exactly this but i can't seem to manipulate the property to achieve this.Here's the idea of the code :

public void Login_CodedStep()
   {                        
      if (ExecutionContext.CurrentDataRow. ***** == 1 {
        this.ExecuteTest("Login\\VerifyFailLogin.tstest");                       
         }                
     }

Many thanks in advance :)

Best Regards, Pravin

Upvotes: 0

Views: 46

Answers (0)

Related Questions