public class Uploader extends Object
Uploads results to CJAN.org.
Results are uploaded as JSON, via a HTTP POST.
| Constructor and Description |
|---|
Uploader(String cjanUrl,
String proxyHost,
String proxyPort,
String accessToken)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessToken() |
String |
getProxyHost() |
String |
getProxyPort() |
String |
getUrl()
Gets the URL.
|
boolean |
isProxyEnabled()
Return
true iff the host and port for the proxy are specified |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(String proxyPort) |
String |
upload(String groupId,
String artifactId,
String version,
EnvironmentProperties envProps,
TestResults testResults)
Upload test run and tests to CJAN.org.
|
public String getUrl()
public String getProxyHost()
public void setProxyHost(String proxyHost)
proxyHost - the proxyHost to setpublic String getProxyPort()
public void setProxyPort(String proxyPort)
proxyPort - the proxyPort to setpublic String getAccessToken()
public boolean isProxyEnabled()
true iff the host and port for the proxy are specifiedtrue when using the proxy, false otherwisepublic String upload(String groupId, String artifactId, String version, EnvironmentProperties envProps, TestResults testResults) throws UploadException
groupId - groupIdartifactId - artifactIdversion - versionenvProps - environment propertiestestResults - test resultsUploadException - if it fails to uploadCopyright © 2015. All Rights Reserved.