use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class StubTestClass method testWithInfo2.
@Test(groups = "stub", description = "a test with infos")
public void testWithInfo2() throws IOException {
TestStep step1 = new TestStep("step 1", Reporter.getCurrentTestResult(), new ArrayList<>(), maskPassword);
step1.addAction(new TestAction("click button", false, new ArrayList<>()));
step1.addAction(new TestAction("sendKeys to text field", true, new ArrayList<>()));
TestStepManager.logTestStep(step1);
addTestInfo("user ID", new HyperlinkInfo("12345", "http://foo/bar/12345"));
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class StubTestClass method testWithInfo1.
@Test(groups = "stub", description = "a test with infos")
public void testWithInfo1() throws IOException {
TestStep step1 = new TestStep("step 1", Reporter.getCurrentTestResult(), new ArrayList<>(), maskPassword);
step1.addAction(new TestAction("click button", false, new ArrayList<>()));
step1.addAction(new TestAction("sendKeys to text field", true, new ArrayList<>()));
TestStepManager.logTestStep(step1);
addTestInfo("bugé <\"ID\">", new StringInfo("12"));
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class StubTestClassForEncoding method testWithException.
@Test(groups = "stub")
public void testWithException() {
TestStep step1 = new TestStep("step 1", Reporter.getCurrentTestResult(), new ArrayList<>(), true);
step1.addAction(new TestAction("click button", false, new ArrayList<>()));
TestStepManager.logTestStep(step1);
throw new DriverExceptions("& some exception \"with \" <strong><a href='http://someurl/link' style='background-color: red;'>HTML to encode</a></strong>");
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class StubTestClassForEncoding method testAndSubActions.
@Test(groups = "stub", description = "a test with steps")
public void testAndSubActions() throws IOException {
TestStep step1 = new TestStep("step 1 <>\"'&/", Reporter.getCurrentTestResult(), new ArrayList<>(), true);
step1.addAction(new TestAction("click button <>\"'&", false, new ArrayList<>()));
step1.addMessage(new TestMessage("a message <>\"'&", MessageType.LOG));
TestStepManager.logTestStep(step1);
}
use of com.seleniumtests.reporter.logger.TestStep in project seleniumRobot by bhecquet.
the class StubTestClassforTestDescription method testNoDescription.
@Test(groups = "stub")
public void testNoDescription() throws IOException {
TestStep step1 = new TestStep("step 1", Reporter.getCurrentTestResult(), new ArrayList<>(), true);
step1.addAction(new TestAction("click button", false, new ArrayList<>()));
step1.addAction(new TestAction("sendKeys to text field", false, new ArrayList<>()));
TestStepManager.logTestStep(step1);
}
Aggregations