All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.BackendTask Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.screenplay;

import net.serenitybdd.core.steps.Instrumented;

import static java.util.Arrays.asList;

/**
 * A backend task will report on all nested tasks, but will not generate any screenshots.
 */
public class BackendTask {
    public static  AnonymousTask where(String title, T... steps) {
        return Instrumented.instanceOf(AnonymousBackendTask.class)
                           .withProperties(title, asList(steps)).withNoReporting();
    }

    public static  AnonymousTask where(T... steps) {
        return Instrumented.instanceOf(AnonymousBackendTask.class)
                           .withProperties("Backend task",  asList(steps)).withNoReporting();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy