Package ru.yandex.qatools.allure.model

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


        m.setProperty(
                CharacterEscapeHandler.class.getName(),
                BadXmlCharacterEscapeHandler.getInstance()
        );

        result = new TestSuiteResult().withName("name-and-кириллицей-also");
    }
View Full Code Here


        result.setTitle("prefix " + character + " suffix");
        m.marshal(new ObjectFactory().createTestSuite(result), testSuiteResultFile);
        Validator validator = AllureModelUtils.getAllureSchemaValidator();
        validator.validate(new StreamSource(testSuiteResultFile));

        TestSuiteResult testSuite = JAXB.unmarshal(testSuiteResultFile, TestSuiteResult.class);
        assertThat(testSuite.getName(), is("name-and-кириллицей-also"));
        assertTrue(testSuite.getTitle().startsWith("prefix "));
        assertTrue(testSuite.getTitle().endsWith(" suffix"));
    }
View Full Code Here

TOP

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

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.