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