Package org.alfresco.utility.testrail
Class TestRailApi
java.lang.Object
org.alfresco.utility.testrail.TestRailApi
Basic implementation of interacting with Test Rail
- Author:
- Paul Brodner
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddNewSection(String name, int parent_id, int projectID, int suite_id) voidaddTestCase(org.testng.ITestResult result, Section section, TestRail annotation) voidaddTestSteps(org.testng.ITestResult result, String steps, Section section, TestRail annotation) getFullTestCaseName(org.testng.ITestResult result) protected ObjectgetRequest(String path) Returns the current Test Runs of current projectgetRuns(int projectID) getSections(int projectID) booleanbooleanisAutomatedTestCaseInSection(String testName, Section section, TestRail annotation) protected ObjectpostRequest(String path, Object data) voidsetCurrentTestCase(TestCase testCase) protected <T> Tprotected <T> List<T>toCollection(Object response, Class<T> classz) Parse the response received and convert it topassed as parameter updateTestCaseResult(org.testng.ITestResult result, Run run)
-
Field Details
-
currentProjectID
public int currentProjectID -
suiteId
public int suiteId -
serverUrl
-
-
Constructor Details
-
TestRailApi
public TestRailApi()Setup configuration from property file
-
-
Method Details
-
getCurrentTestCase
-
setCurrentTestCase
-
toClass
-
toCollection
Parse the response received and convert it topassed as parameter - Parameters:
response-classz-- Returns:
-
hasConfigurationErrors
public boolean hasConfigurationErrors() -
getRequest
- Throws:
Exception
-
postRequest
- Throws:
Exception
-
getSectionsOfCurrentProject
-
addNewSection
-
getRun
-
addTestCase
-
addTestSteps
-
isAutomatedTestCaseInSection
-
updateTestCaseResult
-
getRunOfCurrentProject
Returns the current Test Runs of current project -
getFullTestCaseName
-
getSections
-
getRuns
-