Package ru.yandex.qatools.allure.model

Examples of ru.yandex.qatools.allure.model.Step


    @Before
    public void setUp() throws Exception {
        resultsDirectory = folder.newFolder();
        AllureResultsUtils.setResultsDirectory(resultsDirectory);

        Step child1 = new Step().withName("child1");
        Step child2 = new Step().withName("child2");

        child1.getAttachments().add(save("firstAttach"));
        child2.getAttachments().add(save("secondAttach"));

        root.getAttachments().add(save("rootAttach"));
        root.getSteps().add(child1);
        root.getSteps().add(child2);
    }
View Full Code Here


        stepStorage = new StepStorage();
    }

    @Test
    public void getLastTest() throws Exception {
        Step step = stepStorage.getLast();
        assertNotNull(step);
        assertTrue(step == stepStorage.getLast());
    }
View Full Code Here

        assertTrue(step == stepStorage.getLast());
    }

    @Test
    public void putTest() throws Exception {
        Step step = new Step();
        stepStorage.put(step);
        assertTrue(step == stepStorage.getLast());
    }
View Full Code Here

        assertTrue(step == stepStorage.getLast());
    }

    @Test
    public void pollLastTest() throws Exception {
        Step step = stepStorage.getLast();
        assertTrue(step == stepStorage.pollLast());
        assertThat(stepStorage.get(), hasSize(1));
    }
View Full Code Here

        assertThat(stepStorage.get(), hasSize(1));
    }

    @Test
    public void childThreadStepsTest() throws Exception {
        final Step last = stepStorage.getLast();
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                assertTrue(last == stepStorage.getLast());
            }
View Full Code Here

            @Override
            public void run() {
                childLast[0] = stepStorage.getLast();
            }
        });
        Step last = stepStorage.getLast();
        assertFalse(last == childLast[0]);
        thread.start();
        thread.join();
    }
View Full Code Here

TOP

Related Classes of ru.yandex.qatools.allure.model.Step

Copyright © 2018 www.massapicom. 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.