Package br.eti.kinoshita.testlinkjavaapi.model

Examples of br.eti.kinoshita.testlinkjavaapi.model.TestSuite


   * @param map
   * @return
   */
  public static final TestSuite getTestSuite(Map<String, Object> map)
  {
    TestSuite testSuite = null;
    if ( map != null && map.size() > 0 )
    {
      Object o = map.get( TestLinkResponseParams.id.toString());
      if ( o != null )
      {
        Integer id = Integer.parseInt( o.toString() );
       
        if ( id > 0 )
        {
          testSuite = new TestSuite();
          testSuite.setId( id );
         
          testSuite.setDetails( getString(map, TestLinkResponseParams.details.toString()) );
          testSuite.setName( getString(map, TestLinkResponseParams.name.toString() ) );
          testSuite.setParentId( getInteger(map, TestLinkResponseParams.parentId.toString() ) );
          testSuite.setOrder( getInteger(map, TestLinkResponseParams.order.toString() ) );
        }
       
      }     
    }
    return testSuite;
View Full Code Here


    Integer order,
    Boolean checkDuplicatedName,
    String actionOnDuplicatedName )
  throws TestLinkAPIException
  {
    TestSuite testSuite = null;
   
    Integer id = 0;
   
    testSuite = new TestSuite(
      id,
      testProjectId,
      name,
      details,
      parentId,
      order,
      checkDuplicatedName,
      actionOnDuplicatedName
    );
   
    try
    {
      Map<String, Object> executionData = Util.getTestSuiteMap(testSuite);
      Object response = this.executeXmlRpcCall(
          TestLinkMethods.createTestSuite.toString(), executionData);
      Object[] responseArray = (Object[])response;
      Map<String, Object> responseMap = (Map<String, Object>)responseArray[0];
     
      id = Util.getInteger(responseMap, TestLinkResponseParams.id.toString());
      testSuite.setId( id );
    }
    catch ( XmlRpcException xmlrpcex )
    {
      throw new TestLinkAPIException(
          "Error creating test suite: " + xmlrpcex.getMessage(), xmlrpcex);
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.testlinkjavaapi.model.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.