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")
}
}