use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class TestErrorCause method testEqualsDifferentStep.
@Test(groups = { "ut" })
public void testEqualsDifferentStep() {
ErrorCause cause1 = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", new TestStep("step1", null, new ArrayList<>(), true));
ErrorCause cause2 = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", new TestStep("step2", null, new ArrayList<>(), true));
Assert.assertNotEquals(cause1, cause2);
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class TestErrorCause method testEqualsNullDescription1.
@Test(groups = { "ut" })
public void testEqualsNullDescription1() {
ErrorCause cause1 = new ErrorCause(ErrorType.APPLICATION_CHANGED, null, new TestStep("step1", null, new ArrayList<>(), true));
ErrorCause cause2 = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes2", new TestStep("step1", null, new ArrayList<>(), true));
Assert.assertNotEquals(cause1, cause2);
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class TestErrorCause method testEqualsNullStep2.
@Test(groups = { "ut" })
public void testEqualsNullStep2() {
ErrorCause cause1 = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", new TestStep("step2", null, new ArrayList<>(), true));
ErrorCause cause2 = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", null);
Assert.assertNotEquals(cause1, cause2);
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class TestErrorCause method testEqualsNullDescription2.
@Test(groups = { "ut" })
public void testEqualsNullDescription2() {
ErrorCause cause1 = new ErrorCause(ErrorType.APPLICATION_CHANGED, "some changes", new TestStep("step1", null, new ArrayList<>(), true));
ErrorCause cause2 = new ErrorCause(ErrorType.APPLICATION_CHANGED, null, new TestStep("step1", null, new ArrayList<>(), true));
Assert.assertNotEquals(cause1, cause2);
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class TestSeleniumRobotTestPlan method testExecuteUftScriptFailure.
@Test(groups = { "ut" }, expectedExceptions = ScenarioException.class, expectedExceptionsMessageRegExp = "UFT execution failed on script null")
public void testExecuteUftScriptFailure() throws Exception {
Map<String, String> params = new HashMap<>();
params.put("foo", "bar");
TestStep step = new TestStep("step", null, new ArrayList<String>(), false);
step.setFailed(true);
when(uft.executeScript(5, params)).thenReturn(Arrays.asList(step));
new SeleniumRobotTestPlan().executeUftScript(uft, 5, params);
}
Aggregations