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

qa.justtestlah.exception.ScreenVerificationException 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.exception;

import org.apache.commons.lang3.tuple.Pair;

/** Exception class for screen verification errors. */
public class ScreenVerificationException extends JustTestLahException {
  private static final long serialVersionUID = 1L;

  /**
   * @param identifier identifier which couldn't be located
   * @param rawLocator the raw locator (type and value) of the identifier element
   * @param screenName screen affected screen
   * @param timeout the timeout used for the verification
   */
  public ScreenVerificationException(
      String identifier, Pair rawLocator, String screenName, int timeout) {
    super(
        String.format(
            "Expected element %s (%s:%s) is not displayed on %s after %s milliseconds",
            identifier, rawLocator.getLeft(), rawLocator.getRight(), screenName, timeout));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy