This question is locked. New answers and comments are not allowed.
Hello,
I've a little problem.
We have a application and i've made 2 coded steps.
1. Login to the application.
2. Start a work (this part is what i want to datadrive).
The problem seems to be that i can't just get the repeat on step 2. It wanna run the Codedstep "Username Login" aswell.
This is the code that i'm using. Works fine on the first run, but on the second run it fails.
So my question is if there is possible to loop just one specific step with the datadriven test.
I've a little problem.
We have a application and i've made 2 coded steps.
1. Login to the application.
2. Start a work (this part is what i want to datadrive).
The problem seems to be that i can't just get the repeat on step 2. It wanna run the Codedstep "Username Login" aswell.
This is the code that i'm using. Works fine on the first run, but on the second run it fails.
So my question is if there is possible to loop just one specific step with the datadriven test.
[CodedStep("Username Login")]
public void TRT_Login()
{
var functions = new TRTFunc();
functions.LoginUser("Admin", "");
}
[CodedStep("Start work from priority plan")]
public void StartWorkFromPriorityPlan()
{
var functions = new TRTFunc();
functions.StartWork(Convert.ToString(Data["anst"]), Convert.ToString(Data["antal"]));
}