public class TestRailAPI extends Object
| Constructor and Description |
|---|
TestRailAPI() |
| Modifier and Type | Method and Description |
|---|---|
Section |
addNewSection(String name,
Object parent_id,
int projectID,
int suite_id) |
Object |
addResultsForCases(List<TestCaseDetail> currentTestCases) |
void |
createNewSection(TestCaseDetail currentTestCase,
List<Section> allSections) |
List<TestCase> |
getAllTestCases(int projectID) |
List<TestCase> |
getAllTestCasesFromCurrentProject() |
Run |
getCurrentRun() |
protected Object |
getRequest(String path) |
Run |
getRun(String name,
int projectID)
Perform TestRAIL query of all runs and return the
Run object related to |
Run |
getRunOfCurrentProject()
Returns the current Test Runs of current project
|
List<Run> |
getRuns(int projectID) |
List<Section> |
getSections(int projectID) |
List<Section> |
getSectionsOfCurrentProject() |
int |
getWateRateLimit() |
protected Object |
postRequest(String path,
Object data) |
protected <T> T |
toClass(Object response,
Class<T> classz) |
protected <T> List<T> |
toCollection(Object response,
Class<T> classz)
Parse the response received and convert it to
|
void |
updateTestRunWithSelectedTestCases(List<TestCaseDetail> currentTestCases)
Update current test run and select/add in test run ONLY the executed test cases
|
TestCase |
uploadTestCase(TestCaseDetail currentTest) |
void |
waitForRateLimit() |
public Run getCurrentRun()
public int getWateRateLimit()
public void waitForRateLimit()
protected Object postRequest(String path, Object data) throws Exception
Exceptionprotected <T> List<T> toCollection(Object response, Class<T> classz)
response - classz - public Run getRunOfCurrentProject()
public Run getRun(String name, int projectID)
Run object related to name - projectID - public List<Section> getSectionsOfCurrentProject()
Section from TestRail from current projectpublic void updateTestRunWithSelectedTestCases(List<TestCaseDetail> currentTestCases) throws Exception
currentTestCases - Exceptionpublic Object addResultsForCases(List<TestCaseDetail> currentTestCases) throws Exception
Exceptionpublic Section addNewSection(String name, Object parent_id, int projectID, int suite_id)
public TestCase uploadTestCase(TestCaseDetail currentTest)
public void createNewSection(TestCaseDetail currentTestCase, List<Section> allSections)
Copyright © 2005–2019 Alfresco Software. All rights reserved.