/**
   * Returns last executions
   *
   * @return ProjectResultReports
   */
  @Override
  public ProjectResultReports getExecutions(HttpBasicAuth auth) throws ApiException {
    String path = ServerDefaults.SERVICE_BASE_PATH + "/executions";
    setAuthentication(auth);
    List<Pair> queryParams = new ArrayList<>();
    Map<String, File> formParams = new HashMap<>();

    GenericType returnType = new GenericType<ProjectResultReports>() {};
    return (ProjectResultReports)
        apiClient.invokeAPI(
            path,
            TestSteps.HttpMethod.GET.name(),
            queryParams,
            null,
            formParams,
            APPLICATION_JSON,
            APPLICATION_JSON,
            getAuthNames(),
            returnType);
  }
  private HarLogRoot getTransactionLog(
      String path,
      String method,
      Object postBody,
      String contentType,
      List<Pair> queryParams,
      Map<String, File> formParams)
      throws ApiException {

    return (HarLogRoot)
        apiClient.invokeAPI(
            path,
            method,
            queryParams,
            postBody,
            formParams,
            APPLICATION_JSON,
            contentType,
            getAuthNames(),
            getReturnTypeHarLogRoot());
  }
  private ProjectResultReport invokeAPI(
      String path,
      String method,
      Object postBody,
      String contentType,
      List<Pair> queryParams,
      Map<String, File> formParams)
      throws ApiException {

    return (ProjectResultReport)
        apiClient.invokeAPI(
            path,
            method,
            queryParams,
            postBody,
            formParams,
            APPLICATION_JSON,
            contentType,
            getAuthNames(),
            getReturnTypeProjectResultReport());
  }
 @Override
 public void setBasePath(String basePath) {
   apiClient.setBasePath(basePath);
 }
 private void setAuthentication(HttpBasicAuth auth) {
   if (auth != null) {
     apiClient.setUsername(auth.getUsername());
     apiClient.setPassword(auth.getPassword());
   }
 }
 public void setDebugging(boolean debugging) {
   apiClient.setDebugging(debugging);
 }
 public void setConnectTimeout(int connectionTimeout) {
   apiClient.setConnectTimeout(connectionTimeout);
 }