br.com.jarch.test.system.LaunchSystemTest Maven / Gradle / Ivy
package br.com.jarch.test.system;
import br.com.jarch.test.TestUtils;
import br.com.jarch.test.page.LaunchPage;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import java.io.File;
import java.io.IOException;
@TestMethodOrder(MethodOrderer.MethodName.class)
public abstract class LaunchSystemTest extends BaseSystemTest {
public abstract P getPage();
@Test
public void test0000Launch() {
try {
getPage().actionLaunch();
} catch (Exception ex) {
try {
TestUtils.screenshot(getPage().getDriver(), File.createTempFile(getClass().getSimpleName() + "_LAUNCH_", ".png"));
} catch (IOException e) {
e.printStackTrace();
}
throw ex;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy