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