Package br.eti.kinoshita.testlinkjavaapi.util

Examples of br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException


                Platform platform = Util.getPlatform(projectMap);
                platforms[i] = platform;
            }

        } catch (XmlRpcException xmlrpcex) {
            throw new TestLinkAPIException("Error retrieving platforms: " + xmlrpcex.getMessage(), xmlrpcex);
        }

        return platforms;
    }
View Full Code Here


                responseMap = (Map<String, Object>) responseArray[0];
            } else if (response instanceof Map<?, ?>) {
                responseMap = (Map<String, Object>) response;
            }
        } catch (XmlRpcException xmlrpcex) {
            throw new TestLinkAPIException("Error retrieving platforms: " + xmlrpcex.getMessage(), xmlrpcex);
        }

        return responseMap;

    }
View Full Code Here

      id = Util.getInteger(responseMap,
        TestLinkResponseParams.ID.toString());
      testProject.setId(id);
  } catch (XmlRpcException xmlrpcex) {
      throw new TestLinkAPIException("Error creating test project: "
        + xmlrpcex.getMessage(), xmlrpcex);
  }

  return testProject;
    }
View Full Code Here

        executionData);
      Object[] responseArray = Util.castToArray(response);
      Map<String, Object> responseMap = (Map<String, Object>) responseArray[0];
      testProject = Util.getTestProject(responseMap);
  } catch (XmlRpcException xmlrpcex) {
      throw new TestLinkAPIException("Error retrieving test project: "
        + xmlrpcex.getMessage(), xmlrpcex);
  }

  return testProject;
    }
View Full Code Here

    TestProject testProject = Util.getTestProject(projectMap);
    projects[i] = testProject;
      }

  } catch (XmlRpcException xmlrpcex) {
      throw new TestLinkAPIException("Error retrieving test projects: "
        + xmlrpcex.getMessage(), xmlrpcex);
  }

  return projects;
    }
View Full Code Here

    TestPlan testPlan = Util.getTestPlan(planMap);
    testPlans[i] = testPlan;
      }

  } catch (XmlRpcException xmlrpcex) {
      throw new TestLinkAPIException("Error retrieving test plans: "
        + xmlrpcex.getMessage(), xmlrpcex);
  }

  return testPlans;
    }
View Full Code Here

      Map<String, Object> responseMap = (Map<String, Object>) response;
      id = Util.getInteger(responseMap,
        TestLinkResponseParams.ID.toString());
      attachment.setId(id);
  } catch (XmlRpcException xmlrpcex) {
      throw new TestLinkAPIException(
        "Error uploading attachment for test project: "
          + xmlrpcex.getMessage(), xmlrpcex);
  }

  return attachment;
View Full Code Here

            Map<String, Object> executionData = new HashMap<String, Object>();
            executionData.put(TestLinkParams.DEV_KEY.toString(), devKey);
            Object response = this.executeXmlRpcCall(TestLinkMethods.CHECK_DEV_KEY.toString(), executionData);
            statusOk = Boolean.valueOf(response.toString());
        } catch (XmlRpcException xmlrpcex) {
            throw new TestLinkAPIException("Error verifying developer key: " + xmlrpcex.getMessage(), xmlrpcex);
        }

        return statusOk;
    }
View Full Code Here

            Map<String, Object> executionData = new HashMap<String, Object>();
            executionData.put(TestLinkParams.USER.toString(), user);
            Object response = this.executeXmlRpcCall(TestLinkMethods.DOES_USER_EXIST.toString(), executionData);
            userExist = Boolean.valueOf(response.toString());
        } catch (XmlRpcException xmlrpcex) {
            throw new TestLinkAPIException("Error verifying if user exists: " + xmlrpcex.getMessage(), xmlrpcex);
        }

        return userExist;
    }
View Full Code Here

        try {
            Object response = this.executeXmlRpcCall(TestLinkMethods.SAY_HELLO.toString(), null);
            message = (String) response;
        } catch (XmlRpcException xmlrpcex) {
            throw new TestLinkAPIException("Error saying hello: " + xmlrpcex.getMessage(), xmlrpcex);
        }

        return message;
    }
View Full Code Here

TOP

Related Classes of br.eti.kinoshita.testlinkjavaapi.util.TestLinkAPIException

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.