Package ru.yandex.qatools.allure.model

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


    public static Label createThreadLabel(String thread) {
        return createLabel(LabelName.THREAD, thread);
    }

    public static Label createLabel(LabelName name, String value) {
        return new Label().withName(name.value()).withValue(value);
    }
View Full Code Here


        new AllureModelUtils();
    }

    @Test
    public void createFeatureLabelTest() throws Exception {
        Label label = AllureModelUtils.createFeatureLabel("some-feature");
        assertThat(label.getValue(), is("some-feature"));
        assertThat(label.getName(), is(LabelName.FEATURE.value()));
    }
View Full Code Here

        assertThat(label.getName(), is(LabelName.FEATURE.value()));
    }

    @Test
    public void createStoryLabelTest() throws Exception {
        Label label = AllureModelUtils.createStoryLabel("some-story");
        assertThat(label.getValue(), is("some-story"));
        assertThat(label.getName(), is(LabelName.STORY.value()));
    }
View Full Code Here

        assertThat(label.getName(), is(LabelName.STORY.value()));
    }

    @Test
    public void createSeverityLabelTest() throws Exception {
        Label label = AllureModelUtils.createSeverityLabel(SeverityLevel.BLOCKER);
        assertThat(label.getValue(), is(SeverityLevel.BLOCKER.value()));
        assertThat(label.getName(), is(LabelName.SEVERITY.value()));
    }
View Full Code Here

        verifyNoMoreInteractions(testSuite);
    }

    @Test
    public void testSuiteStartedEventBehavior() throws Exception {
        Label label = new Label().withName("label.name").withValue("label.value");
        new TestSuiteStartedEvent("suite.uid", "name").withLabels(label).process(testSuite);
        verify(testSuite).setStart(anyLong());
        verify(testSuite).setName("name");
        verify(testSuite).setTitle(null);
        verify(testSuite).setDescription(null);
View Full Code Here

TOP

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

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.