use of com.seleniumtests.core.testanalysis.ErrorCause in project seleniumRobot by bhecquet.
the class TestErrorCause method testEqualsNullDescription3.
@Test(groups = { "ut" })
public void testEqualsNullDescription3() {
ErrorCause cause1 = new ErrorCause(ErrorType.APPLICATION_CHANGED, null, new TestStep("step1", null, new ArrayList<>(), true));
ErrorCause cause2 = new ErrorCause(ErrorType.APPLICATION_CHANGED, null, new TestStep("step1", null, new ArrayList<>(), true));
Assert.assertEquals(cause1, cause2);
}
use of com.seleniumtests.core.testanalysis.ErrorCause in project seleniumRobot by bhecquet.
the class TestErrorCause method testToStringNoStep.
@Test(groups = { "ut" })
public void testToStringNoStep() {
String desc = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", null).toString();
Assert.assertEquals(desc, "The application has been modified: some changes");
}
use of com.seleniumtests.core.testanalysis.ErrorCause in project seleniumRobot by bhecquet.
the class TestErrorCause method testToStringNoRootCause.
@Test(groups = { "ut" })
public void testToStringNoRootCause() {
String desc = new ErrorCause(ErrorType.ERROR_MESSAGE, "some changes", new TestStep("step1", null, new ArrayList<>(), true)).toString();
Assert.assertEquals(desc, "Error message displayed: some changes on step 'step1'");
}
use of com.seleniumtests.core.testanalysis.ErrorCause in project seleniumRobot by bhecquet.
the class TestErrorCause method testToStringWithRootCauseNone.
@Test(groups = { "ut" })
public void testToStringWithRootCauseNone() {
TestStep step = new TestStep("step1", null, new ArrayList<>(), true, RootCause.NONE, "Error from system X", false);
step.setFailed(true);
String desc = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", step).toString();
Assert.assertEquals(desc, "The application has been modified: some changes on step 'step1'");
}
Aggregations