public final class Publish extends Object
| Constructor and Description |
|---|
Publish() |
| Modifier and Type | Method and Description |
|---|---|
static List<Testcase> |
getTestcases(hudson.FilePath testDataDir,
TptLogger logger)
Collects recursively all test cases by searching for "testcase_information.xml" files in
"rootdir".
|
static int |
publishJUnitResults(JenkinsConfiguration jenkinsConfig,
hudson.FilePath testDataDir,
hudson.FilePath jUnitOutputDir,
TptLogger logger,
com.piketec.jenkins.plugins.tpt.TptLog.LogLevel logLevel)
Publish the Junits results, it creates an XML file and write the results on it.
|
public static int publishJUnitResults(JenkinsConfiguration jenkinsConfig, hudson.FilePath testDataDir, hudson.FilePath jUnitOutputDir, TptLogger logger, com.piketec.jenkins.plugins.tpt.TptLog.LogLevel logLevel) throws IOException, InterruptedException
jenkinsConfig - The configuration to which the TPT test resuklt should be tranformed to JUnittestDataDir - The directory where TPT test data should be searchedjUnitOutputDir - The directory where the transformed results should be written to.logger - to display the informationlogLevel - the threshold for the severity of the log messagesIOException - if an error occured while parsing TPT test data or writing the JUnit xml filesInterruptedException - If the job was interruptedpublic static List<Testcase> getTestcases(hudson.FilePath testDataDir, TptLogger logger) throws IOException, InterruptedException
testDataDir - The directory where TPT test data should be searchedlogger - to display the informationIOException - If an error occured while parsing TPT test dataInterruptedException - If the job was interruptedCopyright © 2016–2018 PikeTec GmbH. All rights reserved.