You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to run a certain task using the screenplay pattern base on the data from a csv file?
For example login then create as many users as there are in the csv file and then logout.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
This is the model class that extends from ScenarioSteps that executes the task, as this was my first try I have only one column in the csv file to iterate to "ptEvaluationTimeMinutes"
public class DailyNotesDataDriven extends ScenarioSteps {
private String ptEvaluationTimeMinutes;
public void setPtEvaluationTimeMinutes(String ptEvaluationTimeMinutes) {
this.ptEvaluationTimeMinutes = ptEvaluationTimeMinutes;
}
public DailyNotesDataDriven(Pages pages) {
super(pages);
}
public void createDailyNote(Actor actor) {
when(actor).attemptsTo(CreateDailyNote.fillForm(this.ptEvaluationTimeMinutes));
}
Using withTestDataFrom I was able to get the csv file be loaded in the serenity report.
I know this may be considered as support but I just need an advice on how to do this in a better way and get the data from the csv file loaded in the serenity report, thanks in advance for your help and time.
Is there a way to run a certain task using the screenplay pattern base on the data from a csv file?
For example login then create as many users as there are in the csv file and then logout.
Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: