Class Helper
java.lang.Object
com.jenkins.testresultsaggregator.helper.Helper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateNewResults(Job job, boolean ignoreRunningJobs) static Stringstatic Stringstatic Stringstatic Stringstatic StringcolorizePercentage(Double percentageDouble, Integer fontSize, String jobStatus) static StringcolorizeResultStatus(String result) static StringcountPercentage(int pass, int total) static DoublecountPercentage(JobResults results) static DoublecountPercentage(Results results) static DoublecountPercentageD(int pass, int total) static FilePathcreateFile(FilePath filePath, String filename) static FilePathcreateFolder(FilePath filePath, String folder, boolean delete) static Stringdiff(long prev, long curr, boolean list) static Stringstatic Stringstatic Stringstatic Stringstatic StringencodeValue(String value) static StringgetNumber(int value) static StringgetTimeStamp(Long timeStamp) static StringgetTimeStamp(String outOfDateResults, Long timeStamp) static StringreportTestDiffs(String status, Color color, long curr, long diff) static DoubleresolvePercentage(String percentage) static StringsingDoubleSingle(double value) static StringurlNumberofChanges(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:
IOExceptionInterruptedException
-
createFile
public static FilePath createFile(FilePath filePath, String filename) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
reportTestDiffs
-
diff
-
diff
-
diff
-
diff
-
colorize
-
colorize
-
colorize
-
colorize2
-
duration
-
resolvePercentage
-
calculateNewResults
-