Examples of recordStep()


Examples of net.thucydides.core.model.TestOutcome.recordStep()

    @Test
    public void should_generate_an_HTML_report_for_an_acceptance_test_run_with_issue_numbers_in_the_test_name() throws Exception {

        TestOutcome testOutcome = new TestOutcome("A simple test case (#ISSUE-123, #ISSUE-145)");
        testOutcome.recordStep(TestStepFactory.successfulTestStepCalled("step 1"));

        File htmlReport = reporter.generateReportFor(testOutcome, allTestOutcomes);

        assertThat(htmlReport.getName(), is(Digest.ofTextValue("a_simple_test_case") + ".html"));
    }
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

    }


    private TestOutcome pendingTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
        testOutcome.recordStep(TestStepFactory.forAPendingTestStepCalled("do_something"));
        return testOutcome;
    }

    private TestOutcome skippedTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

        return testOutcome;
    }

    private TestOutcome skippedTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
        testOutcome.recordStep(TestStepFactory.forASkippedTestStepCalled("do_something"));
        return testOutcome;
    }

    private TestOutcome successfulTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

        return testOutcome;
    }

    private TestOutcome successfulTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
        testOutcome.recordStep(TestStepFactory.forASuccessfulTestStepCalled("do_something"));
        return testOutcome;
    }

    private TestOutcome failingTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

        return testOutcome;
    }

    private TestOutcome failingTestOutcome() {
        TestOutcome testOutcome = TestOutcome.forTest("some_test", SomeTestClass.class);
        testOutcome.recordStep(TestStepFactory.forABrokenTestStepCalled("do_something", new AssertionError("something broke")));
        return testOutcome;
    }

}
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()


    public TestOutcome thatSucceedsFor(Story story, int stepCount) {
        TestOutcome testOutcome = TestOutcome.forTestInStory("a test", story);
        for(int i = 1; i <= stepCount; i++ ){
            testOutcome.recordStep(TestStepFactory.forASuccessfulTestStepCalled("Step " + i));
        }
        testOutcome.setStartTime(EARLY_DATE);
        return testOutcome;
    }
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

    }

    public TestOutcome thatIsPendingFor(Story story, int stepCount) {
        TestOutcome testOutcome = TestOutcome.forTestInStory("a test", story);
        for(int i = 1; i <= stepCount; i++ ){
            testOutcome.recordStep(TestStepFactory.forAPendingTestStepCalled("Step " + i));
        }
        testOutcome.setStartTime(LATE_DATE);
        return testOutcome;
    }
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

    }

    public TestOutcome thatIsIgnoredFor(Story story, int stepCount) {
        TestOutcome testOutcome = TestOutcome.forTestInStory("a test", story);
        for(int i = 1; i <= stepCount; i++ ){
            testOutcome.recordStep(TestStepFactory.forAnIgnoredTestStepCalled("Step " + i));
        }
        return testOutcome;
    }

    public TestOutcome thatIsFailingFor(Story story, int stepCount) {
View Full Code Here

Examples of net.thucydides.core.model.TestOutcome.recordStep()

    }

    public TestOutcome thatIsFailingFor(Story story, int stepCount) {
        TestOutcome testOutcome = TestOutcome.forTestInStory("a test", story);
        for(int i = 1; i <= stepCount; i++ ){
            testOutcome.recordStep(TestStepFactory.forABrokenTestStepCalled("Step " + i, new AssertionError()));
        }
        testOutcome.setStartTime(LATE_DATE);
        return testOutcome;
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.