Package br.eti.kinoshita.testlinkjavaapi.model

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


    /**
     * @param map
     * @return Execution.
     */
    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.BUILD_ID.toString()));
                    execution.setTesterId(getInteger(map, TestLinkResponseParams.TESTER_ID.toString()));
                    String statusText = getString(map, TestLinkResponseParams.STATUS.toString());
                    ExecutionStatus status = ExecutionStatus.getExecutionStatus(statusText.charAt(0));
                    execution.setStatus(status);
                    execution.setTestPlanId(getInteger(map, TestLinkResponseParams.TEST_PLAN_ID.toString()));
                    execution.setTestCaseVersionId(getInteger(map,
                            TestLinkResponseParams.TEST_CASE_VERSION_ID.toString()));
                    execution.setTestCaseVersionNumber(getInteger(map,
                            TestLinkResponseParams.TEST_CASE_VERSION_NUMBER.toString()));
                    Integer executionTypeText = getInteger(map, TestLinkResponseParams.EXECUTION_TYPE.toString());
                    ExecutionType executionType = ExecutionType.getExecutionType(executionTypeText);
                    execution.setExecutionType(executionType);
                    execution.setNotes(getString(map, TestLinkResponseParams.NOTES.toString()));
                    String timestamp = getString(map, TestLinkResponseParams.EXECUTION_TS.toString());
                    if (StringUtils.isNotBlank(timestamp)) {
                        DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
                        try {
                            Date executionTimeStamp = df.parse(timestamp);
                            execution.setExecutionTimeStamp(executionTimeStamp);
                        } catch (ParseException e) {
                            LOG.log(Level.WARNING, "Failed to parse execution_ts: " + e.getMessage(), e);
                        }
                    }
                }
View Full Code Here


   * @param map
   * @return Execution.
   */
  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

   * @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

   * @param map
   * @return Execution.
   */
  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

   * @param map
   * @return Execution.
   */
  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

   * @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

   * @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.