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

qa.justtestlah.hooks.AbstractCucumberHook Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.9-RC4
Show newest version
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