Package ru.yandex.qatools.allure.model

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


        verifyNoMoreInteractions(testSuite);
    }

    @Test
    public void testSuiteStartedEventDescription() throws Exception {
        Description description = new Description()
                .withValue("some.description")
                .withType(DescriptionType.MARKDOWN);

        new TestSuiteStartedEvent("suite.uid", "name").withDescription(description).process(testSuite);
        verify(testSuite).setStart(anyLong());
View Full Code Here


   
   
    private void addPendingMethods(ITestContext iTestContext) {
        for (ITestNGMethod method: iTestContext.getExcludedMethods()) {
            if (method.isTest() && !method.getEnabled()) {
                Description description = new Description().withValue(method.getDescription());
                TestCaseStartedEvent event = new TestCaseStartedEvent(getSuiteUid(iTestContext), method.getMethodName());
                if (description.getValue() != null) {
                    event.setDescription(description);
                }
                AnnotationManager am = new AnnotationManager(method.getConstructorOrMethod().getMethod().getAnnotations());
                am.setDefaults(method.getInstance().getClass().getAnnotations());
                am.update(event);
View Full Code Here

    public void onTestStart(ITestResult iTestResult) {
        String suitePrefix = getCurrentSuitePrefix(iTestResult);
        String testName = getName(iTestResult);
        startedTestNames.add(testName);
        testName = testName.replace(suitePrefix, "");
        Description description = new Description().withValue(iTestResult.getMethod().getDescription());
        TestCaseStartedEvent event = new TestCaseStartedEvent(getSuiteUid(iTestResult.getTestContext()), testName);
        if (description.getValue() != null) {
            event.setDescription(description);
        }
        AnnotationManager am = new AnnotationManager(getMethodAnnotations(iTestResult));
        am.setDefaults(getClassAnnotations(iTestResult));
        am.update(event);
View Full Code Here

TOP

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

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.