Package br.eti.kinoshita.testlinkjavaapi.model

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


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


            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

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

public class T {

  public static void main3(String[] args) throws Exception {
    TestLinkAPI api = new TestLinkAPI(new URL("http://localhost/testlink-1.9.3/lib/api/xmlrpc.php"), "9d7db1e2df412059fc14ffcf42d601f9");
   
    ReportTCResultResponse response = api.reportTCResult(
        3,
        null,
        5,
        ExecutionStatus.BLOCKED,
        4,
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

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

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

            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

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.