Package com.qasymphony.ci.plugin.parse
Class CommonParsingUtils
java.lang.Object
com.qasymphony.ci.plugin.parse.CommonParsingUtils
- Author:
- anpham
-
Method Summary
Modifier and TypeMethodDescriptionstatic Glob
getBaseDirAndPattern
(String pathToResults) static Map<String,
AutomationTestResult> Process attachmentscanJunitTestResultFolder
(String basedDir) Scan junit test result folderscanTestResultFile
(String basedDir, String pattern) Scan all result files with patternstatic List<AutomationTestResult>
toAutomationTestResults
(ParseRequest request, List<hudson.tasks.junit.TestResult> testResults, Date startTime)
-
Method Details
-
toAutomationTestResults
public static List<AutomationTestResult> toAutomationTestResults(ParseRequest request, List<hudson.tasks.junit.TestResult> testResults, Date startTime) throws Exception - Throws:
Exception
-
processAttachment
public static Map<String,AutomationTestResult> processAttachment(Map<String, AutomationTestResult> map) throws ExceptionProcess attachment- Parameters:
map
- automationTestResultMap- Throws:
Exception
-
scanJunitTestResultFolder
Scan junit test result folder- Parameters:
basedDir
- basedDir- Returns:
- a list of folder
-
scanTestResultFile
Scan all result files with pattern- Parameters:
basedDir
- basedDir- Returns:
- a list of folder
-
getBaseDirAndPattern
- Throws:
Exception
-