Package fi.meliora.testlab.ext.jenkins
Class Sender
java.lang.Object
fi.meliora.testlab.ext.jenkins.Sender
Sends jenkins test results to Testlab.
- Author:
- Meliora Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
detectXmlEncoding
(byte[] xml) From XML file encoded as bytes, try to detect the XML encoding from the preamble.protected static TestCaseResult
getTestCaseResult
(Run<?, ?> build, String id, int result, String msg, String stacktrace, String user, float duration) static boolean
protected static void
parseResult
(Run<?, ?> build, Object resultObject, List<TestCaseResult> results, String user, boolean publishTap, boolean tapTestsAsSteps, boolean tapFileNameInIdentifier, boolean tapTestNumberInIdentifier, String tapMappingPrefix) static void
sendResults
(FilePath workspace, String companyId, boolean usingonpremise, String onpremiseurl, String apiKey, String projectKey, String ruleset, String milestone, String testRunTitle, String description, String testTargetTitle, String testEnvironmentTitle, String tags, Map<String, String> parameters, TestResult.AddIssueStrategy addIssueStrategy, Boolean reopenExisting, String assignToUser, boolean publishTap, boolean tapTestsAsSteps, boolean tapFileNameInIdentifier, boolean tapTestNumberInIdentifier, String tapMappingPrefix, boolean publishRobot, String robotOutput, Boolean robotCatenateParentKeywords, String automationSource, String resultName, List<String> culprits, List<Changeset> changesets, Run<?, ?> build) Does the actual sending of results to Testlab.
-
Constructor Details
-
Sender
public Sender()
-
-
Method Details
-
sendResults
public static void sendResults(FilePath workspace, String companyId, boolean usingonpremise, String onpremiseurl, String apiKey, String projectKey, String ruleset, String milestone, String testRunTitle, String description, String testTargetTitle, String testEnvironmentTitle, String tags, Map<String, String> parameters, TestResult.AddIssueStrategy addIssueStrategy, Boolean reopenExisting, String assignToUser, boolean publishTap, boolean tapTestsAsSteps, boolean tapFileNameInIdentifier, boolean tapTestNumberInIdentifier, String tapMappingPrefix, boolean publishRobot, String robotOutput, Boolean robotCatenateParentKeywords, String automationSource, String resultName, List<String> culprits, List<Changeset> changesets, Run<?, ?> build) Does the actual sending of results to Testlab. Called from appropriate Jenkins extension point.- Parameters:
tapTestsAsSteps
- ,tapFileNameInIdentifier
- ,workspace
-companyId
-usingonpremise
-onpremiseurl
-apiKey
-projectKey
-ruleset
-milestone
-testRunTitle
-description
-testTargetTitle
-testEnvironmentTitle
-tags
-parameters
-addIssueStrategy
-reopenExisting
-assignToUser
-publishTap
-tapTestNumberInIdentifier
-publishRobot
-robotOutput
-robotCatenateParentKeywords
-automationSource
-resultName
-culprits
-changesets
-build
-
-
parseResult
-
getTestCaseResult
-
hasTAPSupport
public static boolean hasTAPSupport() -
detectXmlEncoding
From XML file encoded as bytes, try to detect the XML encoding from the preamble.- Parameters:
xml
-- Returns:
-