![JAR search and dependency download from the Maven repository](/logo.png)
net.serenitybdd.screenplay.SilentTask Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serenity-screenplay Show documentation
Show all versions of serenity-screenplay Show documentation
Support for the User Journey pattern in Serenity
package net.serenitybdd.screenplay;
import net.serenitybdd.core.steps.Instrumented;
import java.util.function.Consumer;
import static java.util.Arrays.asList;
/**
* Perform a task or sequence of tasks without having it appear in the reports.
*/
public class SilentTask {
static SilentPerformableFunction where(Consumer performableOperation) {
return Instrumented.instanceOf(SilentPerformableFunction.class).withProperties(performableOperation);
}
public static AnonymousTask where(T... steps) {
return Instrumented.instanceOf(AnonymousTask.class)
.withProperties("Anonymous task", asList(steps)).withNoReporting();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy