public class CodebeamerApiClient extends Object
| Constructor and Description |
|---|
CodebeamerApiClient(String uri,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeParam(String param)
Encode URL parameters
|
TrackerItemDto |
findOrCreateTestSet(ExecutionContext context,
Integer trackerId,
String name,
String description)
Finds the tracker item by name in the specified tracker.
|
List<TrackerItemDto> |
getTestCaseList(ExecutionContext context)
Get all tracker item from the specified tracker
|
TrackerDto |
getTracker(Integer trackerId)
Fetch the tracker for the specified tracker id
|
TrackerItemDto |
getTrackerItem(Integer itemId)
Fetch a tracker item from the codeBeamer by the specified id
|
boolean |
isTestCaseTypeSupported(Integer testCaseTrackerId,
String testCaseType)
Checks specified test case tracker is support the given test case type or
not
|
TrackerItemDto |
postTrackerItem(ExecutionContext context,
TestRunDto testRunDto)
Post the specified tracker item to the codeBeamer
|
TrackerItemDto |
put(ExecutionContext context,
Object dto)
Put (update) an existing item to the codeBeamer
|
TrackerItemDto |
updateTestCaseStatus(ExecutionContext context,
Integer id,
String status)
Updates the specified test case status
|
public TrackerItemDto findOrCreateTestSet(ExecutionContext context, Integer trackerId, String name, String description) throws IOException
trackerId - the item's tracker idname - the tracker's namedescription - the new item's descriptionIOExceptionpublic String encodeParam(String param)
param - the parameter to encodepublic TrackerItemDto postTrackerItem(ExecutionContext context, TestRunDto testRunDto) throws IOException
context - testRunDto - IOExceptionpublic List<TrackerItemDto> getTestCaseList(ExecutionContext context) throws IOException
trackerId - the tracker's idIOExceptionpublic boolean isTestCaseTypeSupported(Integer testCaseTrackerId, String testCaseType) throws IOException
testCaseTrackerId - testCaseType - IOExceptionpublic TrackerItemDto updateTestCaseStatus(ExecutionContext context, Integer id, String status) throws IOException
context - the execution contextid - the test case id to updatestatus - the new statusIOExceptionpublic TrackerItemDto getTrackerItem(Integer itemId) throws IOException
itemId - IOExceptionpublic TrackerDto getTracker(Integer trackerId) throws IOException
trackerId - IOExceptionpublic TrackerItemDto put(ExecutionContext context, Object dto) throws IOException
context - dto - IOExceptionCopyright © 2016–2019. All rights reserved.