Package br.eti.kinoshita.testlinkjavaapi.model

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


   * @param map
   * @return
   */
  public static final Execution getExecution(Map<String, Object> map)
  {
    Execution execution = 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 )
        {
          execution = new Execution();
          execution.setId( id );
         
          execution.setBuildId( getInteger(map, TestLinkResponseParams.buildId.toString()) );
          execution.setTesterId( getInteger(map, TestLinkResponseParams.testerId.toString()) );
          String statusText = getString(map, TestLinkResponseParams.status.toString());
          ExecutionStatus status = ExecutionStatus.getExecutionStatus(statusText.charAt(0));
          execution.setStatus( status );
          execution.setTestPlanId( getInteger(map, TestLinkResponseParams.testPlanId.toString()) );
          execution.setTestCaseVersionId( getInteger(map, TestLinkResponseParams.testCaseVersionId.toString()) );
          execution.setTestCaseVersionNumber( getInteger(map, TestLinkResponseParams.testcaseVersionNumber.toString()) );
          Integer executionTypeText = getInteger( map, TestLinkResponseParams.executionType.toString() );
          ExecutionType executionType = ExecutionType.getExecutionType(executionTypeText);
          execution.setExecutionType(executionType);
          execution.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );         
        }
       
      }     
    }
    return execution;
View Full Code Here


    Integer testCaseId,
    Integer testCaseExternalId)
  throws TestLinkAPIException
  {
   
    Execution execution = null;
   
    try
    {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put( TestLinkParams.testPlanId.toString(), testPlanId );
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.testlinkjavaapi.model.Execution

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.