Package br.eti.kinoshita.testlinkjavaapi.model

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


    Boolean overwrite
  )
  throws TestLinkAPIException
  {
   
    ReportTCResultResponse reportTCResultResponse = null;
   
    try
    {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put(TestLinkParams.testCaseId.toString(), testCaseId);
View Full Code Here


                   // become
                   // much more
                   // clear
      Boolean overwrite) throws TestLinkAPIException {

  ReportTCResultResponse reportTCResultResponse = null;

  try {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put(TestLinkParams.TEST_CASE_ID.toString(), testCaseId);
      executionData.put(TestLinkParams.TEST_CASE_EXTERNAL_ID.toString(),
View Full Code Here

            Integer platformId, String platformName, Map<String, String> customFields,
            Boolean overwrite) throws TestLinkAPIException {
        // TODO: Map<String, String> customFields =>
        // change for a list of custom fields. After implementing method getTestCaseCustomFieldDesignValue this
        // entities properties will become much more clear
        ReportTCResultResponse reportTCResultResponse = null;

        try {
            Map<String, Object> executionData = new HashMap<String, Object>();
            executionData.put(TestLinkParams.TEST_CASE_ID.toString(), testCaseId);
            executionData.put(TestLinkParams.TEST_CASE_EXTERNAL_ID.toString(), testCaseExternalId);
View Full Code Here

    /**
     * @param map
     * @return ReportTCResultResponse object.
     */
    public static final ReportTCResultResponse getReportTCResultResponse(Map<String, Object> map) {
        ReportTCResultResponse reportTCResultResponse = 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) {
                    reportTCResultResponse = new ReportTCResultResponse();
                    reportTCResultResponse.setExecutionId(id);

                    reportTCResultResponse.setOperation(getString(map, TestLinkResponseParams.OPERATIONS.toString()));
                    reportTCResultResponse.setOverwrite(getBoolean(map, TestLinkResponseParams.OVERWRITE.toString()));
                    reportTCResultResponse.setStatus(getBoolean(map, TestLinkResponseParams.STATUS.toString()));
                    reportTCResultResponse.setMessage(getString(map, TestLinkResponseParams.MESSAGE.toString()));
                    reportTCResultResponse.setBugIDStatus(getBoolean(map,
                            TestLinkResponseParams.BUG_ID_STATUS.toString()));
                    reportTCResultResponse.setCustomFieldStatus(getBoolean(map,
                            TestLinkResponseParams.CUSTOM_FIELD_STATUS.toString()));
                }

            }
        }
View Full Code Here

    Boolean overwrite
  )
  throws TestLinkAPIException
  {
   
    ReportTCResultResponse reportTCResultResponse = null;
   
    try
    {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put(TestLinkParams.testCaseId.toString(), testCaseId);
View Full Code Here

    Boolean overwrite
  )
  throws TestLinkAPIException
  {
   
    ReportTCResultResponse reportTCResultResponse = null;
   
    try
    {
      Map<String, Object> executionData = new HashMap<String, Object>();
      executionData.put(TestLinkParams.testCaseId.toString(), testCaseId);
View Full Code Here

   * @return ReportTCResultResponse object.
   */
  public static final ReportTCResultResponse getReportTCResultResponse(
      Map<String, Object> map )
  {
    ReportTCResultResponse reportTCResultResponse = 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 )
        {
          reportTCResultResponse = new ReportTCResultResponse();
          reportTCResultResponse.setExecutionId( id );
         
          reportTCResultResponse.setOperation( getString(map, TestLinkResponseParams.operation.toString()) );
          reportTCResultResponse.setOverwrite( getBoolean(map, TestLinkResponseParams.overwrite.toString()) );
          reportTCResultResponse.setStatus( getBoolean(map, TestLinkResponseParams.status.toString()) );
          reportTCResultResponse.setMessage( getString(map, TestLinkResponseParams.message.toString()) );
          reportTCResultResponse.setBugIDStatus( getBoolean(map, TestLinkResponseParams.bugIDStatus.toString()) );
          reportTCResultResponse.setCustomFieldStatus( getBoolean(map, TestLinkResponseParams.customFieldStatus.toString()) );
        }
       
      }     
    }
    return reportTCResultResponse;
View Full Code Here

    /**
     * @param map
     * @return ReportTCResultResponse object.
     */
    public static final ReportTCResultResponse getReportTCResultResponse(Map<String, Object> map) {
        ReportTCResultResponse reportTCResultResponse = 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) {
                    reportTCResultResponse = new ReportTCResultResponse();
                    reportTCResultResponse.setExecutionId(id);

                    reportTCResultResponse.setOperation(getString(map, TestLinkResponseParams.OPERATIONS.toString()));
                    reportTCResultResponse.setOverwrite(getBoolean(map, TestLinkResponseParams.OVERWRITE.toString()));
                    reportTCResultResponse.setStatus(getBoolean(map, TestLinkResponseParams.STATUS.toString()));
                    reportTCResultResponse.setMessage(getString(map, TestLinkResponseParams.MESSAGE.toString()));
                    reportTCResultResponse.setBugIDStatus(getBoolean(map,
                            TestLinkResponseParams.BUG_ID_STATUS.toString()));
                    reportTCResultResponse.setCustomFieldStatus(getBoolean(map,
                            TestLinkResponseParams.CUSTOM_FIELD_STATUS.toString()));
                }

            }
        }
View Full Code Here

    public void testReportTCResult(Integer testCaseId, Integer testPlanId,
      Integer buildId, String buildName, String notes,
      Integer platformId, String platformName) {
  this.loadXMLRPCMockData("tl.reportTCResult.xml");

  ReportTCResultResponse response = null;
  try {
      response = this.api.reportTCResult(testCaseId, null, testPlanId,
        ExecutionStatus.FAILED, buildId, buildName, notes, true,
        null, platformId, platformName, null, // TODO: Test custom
                // fields!
        true);
  } catch (TestLinkAPIException e) {
      Assert.fail(e.getMessage(), e);
  }

  Assert.assertNotNull(response);

  Assert.assertTrue(response.getExecutionId() > 0);
    }
View Full Code Here

    public void testSetTestCaseExecutionResult(Integer testCaseId,
      Integer testPlanId, Integer buildId, String buildName,
      String notes, Integer platformId, String platformName) {
  this.loadXMLRPCMockData("tl.reportTCResult.xml");

  ReportTCResultResponse response = null;
  try {
      response = this.api.setTestCaseExecutionResult(testCaseId, null,
        testPlanId, ExecutionStatus.PASSED, buildId, buildName,
        notes, true, null, platformId, platformName, null, // TODO:
                       // Test
                       // custom
                       // fields!
        true);
  } catch (TestLinkAPIException e) {
      Assert.fail(e.getMessage(), e);
  }

  Assert.assertNotNull(response);

  Assert.assertTrue(response.getExecutionId() > 0);
    }
View Full Code Here

TOP

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

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.