Class Helper
java.lang.Object
com.jenkins.testresultsaggregator.helper.Helper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
calculateStatus
(boolean reportPrevious, String currentResult, String previousResult) static String
calculateStatusJob
(Job job) static String
static String
static String
static String
static String
colorizePercentage
(Double percentageDouble, Integer fontSize, String jobStatus) static String
colorizeResultStatus
(String result) static String
countPercentage
(int pass, int total) static Double
countPercentage
(JobResults results) static Double
countPercentage
(Results results) static Double
countPercentageD
(int pass, int total) static FilePath
createFile
(FilePath filePath, String filename) static FilePath
createFolder
(FilePath filePath, String folder, boolean delete) static String
diff
(long prev, long curr, boolean list) static String
static String
static String
static String
static String
encodeValue
(String value) static String
getNumber
(int value) static String
getTimeStamp
(Long timeStamp) static String
getTimeStamp
(String outOfDateResults, Long timeStamp) static String
reportTestDiffs
(String status, Color color, long curr, long diff) static Double
resolvePercentage
(String percentage) static String
singDoubleSingle
(double value) static String
urlNumberofChanges
(String url, String number)
-
Constructor Details
-
Helper
public Helper()
-
-
Method Details
-
encodeValue
public static String encodeValue(String value) throws UnsupportedEncodingException, MalformedURLException -
getTimeStamp
-
getTimeStamp
-
getNumber
-
urlNumberofChanges
-
colorizeResultStatus
-
countPercentage
-
countPercentage
-
countPercentage
-
countPercentageD
-
colorizePercentage
-
singDoubleSingle
-
createFolder
public static FilePath createFolder(FilePath filePath, String folder, boolean delete) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createFile
public static FilePath createFile(FilePath filePath, String filename) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
reportTestDiffs
-
diff
-
diff
-
diff
-
diff
-
colorize
-
colorize
-
colorize
-
colorize2
-
duration
-
calculateStatusJob
-
calculateStatus
-
resolvePercentage
-