Class TestRailAPI
java.lang.Object
org.alfresco.utility.testrail.core.TestRailAPI
TestRail Interaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNewSection(String name, Object parent_id, int projectID, int suite_id) addResultsForCases(List<TestCaseDetail> currentTestCases) voidcreateNewSection(TestCaseDetail currentTestCase, List<Section> allSections) getAllTestCases(int projectID) protected ObjectgetRequest(String path) Perform TestRAIL query of all runs and return theRunobject related toand run Returns the current Test Runs of current projectgetRuns(int projectID) getSections(int projectID) intprotected ObjectpostRequest(String path, Object data) protected <T> Tprotected <T> List<T>toCollection(Object response, Class<T> classz) Parse the response received and convert it to <Class> passed as parameter voidupdateTestRunWithSelectedTestCases(List<TestCaseDetail> currentTestCases) Update current test run and select/add in test run ONLY the executed test casesuploadTestCase(TestCaseDetail currentTest) void
-
Constructor Details
-
TestRailAPI
public TestRailAPI()
-
-
Method Details
-
getCurrentRun
-
getWateRateLimit
public int getWateRateLimit() -
waitForRateLimit
public void waitForRateLimit() -
getSections
-
getAllTestCases
-
getRuns
-
getRequest
- Throws:
Exception
-
postRequest
- Throws:
Exception
-
toCollection
Parse the response received and convert it to <Class> passed as parameter - Parameters:
response-classz-- Returns:
-
getRunOfCurrentProject
Returns the current Test Runs of current project -
getRun
Perform TestRAIL query of all runs and return theRunobject related toand run - Parameters:
name-projectID-- Returns:
-
toClass
-
getSectionsOfCurrentProject
- Returns:
- all
Sectionfrom TestRail from current project
-
getAllTestCasesFromCurrentProject
-
updateTestRunWithSelectedTestCases
public void updateTestRunWithSelectedTestCases(List<TestCaseDetail> currentTestCases) throws Exception Update current test run and select/add in test run ONLY the executed test cases- Parameters:
currentTestCases-- Throws:
Exception
-
addResultsForCases
- Throws:
Exception
-
addNewSection
-
uploadTestCase
-
createNewSection
-