public class HostServiceClient extends QTestApiWebServiceClient<HostServiceClient> implements HostService
credentialsProvider, exceptionUnmarshallers, executorService, signerclient, configuration, endpoint, requestHandlers, timeOffset| Constructor and Description |
|---|
HostServiceClient()
Constructs a new client to invoke service method on HostServiceClient using
the default qTest credentials provider and default client configuration options.
|
HostServiceClient(ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on HostServiceClient using
the default qTest credentials provider and client configuration options.
|
HostServiceClient(QTestCredentials credentials)
Constructs a new client to invoke service method on HostServiceClient using
the specified qTest credentials.
|
HostServiceClient(QTestCredentials credentials,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on HostServiceClient using
the specified qTest credentials and client configuration options.
|
HostServiceClient(QTestCredentialsProvider credentialsProvider)
Constructs a new client to invoke service method on HostServiceClient using
the specified qTest credentials provider and client configuration options.
|
HostServiceClient(QTestCredentialsProvider credentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new client to invoke service method on HostServiceClient using
the specified qTest credentials provider and client configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateAutomationAgent(ActivateAutomationAgentRequest activateAgentRequest)
Active or inactive the automation agent to qTest service.
|
void |
deleteAutomationAgent(DeleteAutomationAgentRequest deleteAutomationAgentRequest)
Delete automation agent
|
java.util.List<Job> |
listJobs(ListJobRequest jobRequest)
List all automation jobs from qTest server in a period
|
PongMessage |
pingHost(PingAutomationHostRequest pingRequest)
Ping host.
|
AutomationAgent |
registerAutomationAgent(CreateAutomationAgentRequest automationAgentRequest)
Register the automation agent to qTest service.
|
AutomationHost |
registerAutomationHost(CreateAutomationHostRequest automationHostRequest)
Register the automation host to qTest service.
|
AutomationAgent |
updateAutomationAgent(UpdateAutomationAgentRequest automationAgentRequest)
update the automation agent to qTest service.
|
AutomationHost |
updateAutomationHost(UpdateAutomationHostRequest automationHostRequest) |
void |
updateJobStatus(UpdateJobStatusRequest updateJobStatusRequest)
Update job instance status
|
init, invoke, shutdown, withEndpointaddRequestHandler, createExecutionContext, createHttpAuthClient, getTimeOffset, removeRequestHandler, setConfiguration, setEndpoint, setTimeOffset, withConfiguration, withRequestHandler, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetEndpoint, shutdownpublic HostServiceClient()
public HostServiceClient(ClientConfiguration clientConfiguration)
clientConfiguration - The client configuration options controlling how this
client connects to TestDesignServicepublic HostServiceClient(QTestCredentials credentials)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.public HostServiceClient(QTestCredentials credentials, ClientConfiguration clientConfiguration)
credentials - The qTest credentials which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to TestDesignServicepublic HostServiceClient(QTestCredentialsProvider credentialsProvider)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.public HostServiceClient(QTestCredentialsProvider credentialsProvider, ClientConfiguration clientConfiguration)
credentialsProvider - The qTest credentials provider which will provide
credentials to authenticate request with qTest services.clientConfiguration - The client configuration options controlling how this
client connects to TestDesignServicepublic AutomationHost registerAutomationHost(CreateAutomationHostRequest automationHostRequest) throws AuthServiceException
HostServiceregisterAutomationHost in interface HostServiceautomationHostRequest - the given register automation host request.AuthServiceExceptionpublic AutomationHost updateAutomationHost(UpdateAutomationHostRequest automationHostRequest) throws AuthServiceException
updateAutomationHost in interface HostServiceAuthServiceExceptionpublic AutomationAgent registerAutomationAgent(CreateAutomationAgentRequest automationAgentRequest) throws AuthClientException
HostServiceregisterAutomationAgent in interface HostServiceautomationAgentRequest - the given register agent request to send to qTest.AuthClientException - if an error occurs during registering automation agent.public AutomationAgent updateAutomationAgent(UpdateAutomationAgentRequest automationAgentRequest) throws AuthClientException
HostServiceupdateAutomationAgent in interface HostServiceautomationAgentRequest - the given update agent request to send to qTest.AuthClientException - if an error occurs during update automation agent.public void deleteAutomationAgent(DeleteAutomationAgentRequest deleteAutomationAgentRequest) throws AuthClientException
HostServicedeleteAutomationAgent in interface HostServicedeleteAutomationAgentRequest - the given delete automation agent request.AuthClientException - if an error occurs during deleting automation agent.public void activateAutomationAgent(ActivateAutomationAgentRequest activateAgentRequest) throws AuthClientException
HostServiceactivateAutomationAgent in interface HostServiceactivateAgentRequest - the given activate agent request to send to qTest.AuthClientException - if an error occurs during activating automation agent.public java.util.List<Job> listJobs(ListJobRequest jobRequest) throws AuthClientException
HostServicelistJobs in interface HostServicejobRequest - the list jobs request.AuthClientException - if an error occurs during listing jobs.public PongMessage pingHost(PingAutomationHostRequest pingRequest) throws AuthClientException
HostServicepingHost in interface HostServicepingRequest - the given ping request.AuthClientException - if an error occurs during ping host.public void updateJobStatus(UpdateJobStatusRequest updateJobStatusRequest) throws AuthServiceException
HostServiceupdateJobStatus in interface HostServiceupdateJobStatusRequest - the given job status to set.AuthServiceException - if an error occurs during updating job status.