Jacobvu84 / serenity-pageobject-junit-webdriver

4 stars 1 forks source link

Array Task #68

Open Jacobvu84 opened 4 years ago

Jacobvu84 commented 4 years ago
    public static Task[] getAllTasks() {
        return new Task[] {
                Task1.dotoSt(),
                Task2.dotoSt(),
                Task3.dotoSt(),
                 ......
                Taskn.dotoSt(),
        };
    }
        for (Task subTask : getAllTasks()) {
            withCurrentActor(subTask);