Class ZephyrRestClientImpl
- java.lang.Object
-
- step.repositories.jira.zephyr.AbstractRestClient
-
- step.repositories.jira.zephyr.zapi.v1.ZephyrRestClientImpl
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,ZephyrRestClient
public class ZephyrRestClientImpl extends AbstractRestClient implements ZephyrRestClient
-
-
Field Summary
-
Fields inherited from class step.repositories.jira.zephyr.AbstractRestClient
client
-
-
Constructor Summary
Constructors Constructor Description ZephyrRestClientImpl(java.lang.String zapiBaseUrl, java.lang.String zapiAccessKey, java.lang.String zapiSecretKey, java.lang.String zapiAccountId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
call(java.lang.String method, java.lang.String uri, java.lang.Object requestEntity, java.lang.Class<T> responseType)
<T> T
call(java.lang.String method, java.lang.String uri, java.lang.Object requestEntity, javax.ws.rs.core.GenericType<T> responseType)
void
createAttachment(java.lang.Integer issueId, java.lang.Integer projectId, java.lang.Integer versionId, java.lang.String entityName, java.lang.String entityId, java.lang.String cycleId, java.lang.String comment, java.io.InputStream stream, java.lang.String filename)
Cycle
getCycle(java.lang.String cycleId, java.lang.Integer projectId, java.lang.Integer versionId)
ExecutionWrapper
getExecution(java.lang.String executionID, int issueId, int projectId)
java.util.List<ExecutionWrapper>
getExecutionsByCycleId(java.lang.String cycleId, int projectId, int versionId)
java.util.List<ExecutionWrapper>
getExecutionsByZQL(java.lang.String zqlQuery)
CycleList
getListOfCycles(java.lang.Integer projectId, java.lang.Integer versionId)
StepResults
getStepResultsByExecution(java.lang.String executionID, int issueId)
TestStepList
getTestSteps(java.lang.Integer issueId, java.lang.Integer projectId)
java.lang.Object
updateExecution(java.lang.String executionID, Execution newExecution)
java.lang.Object
updateStepResult(StepResult stepResult)
-
Methods inherited from class step.repositories.jira.zephyr.AbstractRestClient
close, invoke, performCall, performCall
-
-
-
-
Constructor Detail
-
ZephyrRestClientImpl
public ZephyrRestClientImpl(java.lang.String zapiBaseUrl, java.lang.String zapiAccessKey, java.lang.String zapiSecretKey, java.lang.String zapiAccountId) throws step.grid.contextbuilder.ApplicationContextBuilderException, java.lang.ClassNotFoundException
- Throws:
step.grid.contextbuilder.ApplicationContextBuilderException
java.lang.ClassNotFoundException
-
-
Method Detail
-
call
public <T> T call(java.lang.String method, java.lang.String uri, java.lang.Object requestEntity, java.lang.Class<T> responseType)
-
call
public <T> T call(java.lang.String method, java.lang.String uri, java.lang.Object requestEntity, javax.ws.rs.core.GenericType<T> responseType)
-
getExecutionsByZQL
public java.util.List<ExecutionWrapper> getExecutionsByZQL(java.lang.String zqlQuery)
- Specified by:
getExecutionsByZQL
in interfaceZephyrRestClient
-
getExecutionsByCycleId
public java.util.List<ExecutionWrapper> getExecutionsByCycleId(java.lang.String cycleId, int projectId, int versionId)
- Specified by:
getExecutionsByCycleId
in interfaceZephyrRestClient
-
getExecution
public ExecutionWrapper getExecution(java.lang.String executionID, int issueId, int projectId)
- Specified by:
getExecution
in interfaceZephyrRestClient
-
updateExecution
public java.lang.Object updateExecution(java.lang.String executionID, Execution newExecution)
- Specified by:
updateExecution
in interfaceZephyrRestClient
-
getListOfCycles
public CycleList getListOfCycles(java.lang.Integer projectId, java.lang.Integer versionId)
- Specified by:
getListOfCycles
in interfaceZephyrRestClient
-
getCycle
public Cycle getCycle(java.lang.String cycleId, java.lang.Integer projectId, java.lang.Integer versionId)
- Specified by:
getCycle
in interfaceZephyrRestClient
-
getStepResultsByExecution
public StepResults getStepResultsByExecution(java.lang.String executionID, int issueId)
- Specified by:
getStepResultsByExecution
in interfaceZephyrRestClient
-
updateStepResult
public java.lang.Object updateStepResult(StepResult stepResult)
- Specified by:
updateStepResult
in interfaceZephyrRestClient
-
getTestSteps
public TestStepList getTestSteps(java.lang.Integer issueId, java.lang.Integer projectId)
- Specified by:
getTestSteps
in interfaceZephyrRestClient
-
createAttachment
public void createAttachment(java.lang.Integer issueId, java.lang.Integer projectId, java.lang.Integer versionId, java.lang.String entityName, java.lang.String entityId, java.lang.String cycleId, java.lang.String comment, java.io.InputStream stream, java.lang.String filename)
- Specified by:
createAttachment
in interfaceZephyrRestClient
-
-