Package com.testlink.api.domain

Examples of com.testlink.api.domain.TestSuite


            String description,
            Integer parentId,
            Integer order,
            Boolean checkDuplicatedName) throws TestLinkAPIException
    {
        TestSuite testSuite = null;

        Integer id = 0;

        testSuite = new TestSuite(id, projectID, suiteName, description, parentId, order, checkDuplicatedName);

        try {
            Map<String, Object> executionData = getTestSuiteMap(testSuite);
            Object response = this.executeXmlRpcCall(Methods.CREATE_TEST_SUITE.toString(), executionData);
            Object[] responseArray = TestLinkHelper.castToArray(response);
            Map<String, Object> responseMap = (Map<String, Object>) responseArray[0];

            id = TestLinkHelper.getInteger(responseMap, Params.ID.toString());
            testSuite.setId(id);

            testSuite.setName(suiteName);
        } catch (XmlRpcException xmlrpcex) {
            throw new TestLinkAPIException("Error creating test suite: " + xmlrpcex.getMessage(), xmlrpcex);
        }

        return testSuite;
View Full Code Here


   private String getTargetId(String artifactId) {
        String suiteId = null;
        try {
            TestLinkAPIClient client = new TestLinkAPIClient(testLinkServiceEndpoint, testLinkApiKey);
            TestProject project = client.getTestProjectByName("ctftest");
            TestSuite suite = client.createTestSuite(project.getId(), artifactId, "created from API");
            suiteId = suite.getId().toString();
        } catch (TestLinkAPIException e) {
            System.out.println(e.getMessage());
            log.info(e.getMessage());
        } catch (Exception e) {
            System.out.println(e.getMessage());
View Full Code Here

TOP

Related Classes of com.testlink.api.domain.TestSuite

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.