qa.justtestlah.hooks.AbstractCucumberHook Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of justtestlah-core Show documentation
Show all versions of justtestlah-core Show documentation
JustTestLah! is a JAVA test framework targeting projects that support multiple platforms, in particular Web, Android and iOS. It follows a BDD approach and allows testing against all platforms using the same feature files. JustTestLah's main aim is to make the configuration and the actual test code as easy as possible.
package qa.justtestlah.hooks;
import io.cucumber.java.Scenario;
import java.util.Set;
import qa.justtestlah.configuration.ExecutionEnvironment;
import qa.justtestlah.configuration.Platform;
/** Default implementation of {@link CucumberHook}. */
public abstract class AbstractCucumberHook implements CucumberHook {
@Override
public void before(Scenario scenario) {
// do nothing
}
@Override
public void after(Scenario scenario) {
// do nothing
}
@Override
public Set getPlatforms() {
return Set.of(Platform.ANDROID, Platform.IOS, Platform.WEB);
}
@Override
public Set getExecutionEnvironments() {
return Set.of(
ExecutionEnvironment.BROWSERSTACK,
ExecutionEnvironment.AWSDEVICEFARM,
ExecutionEnvironment.LOCAL);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy