|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.plugins.testlink.result.TestResultSeeker<org.tap4j.model.TestSet>
hudson.plugins.testlink.result.tap.TAPTestResultSeeker<T>
public class TAPTestResultSeeker<T extends org.tap4j.model.TestSet>
Seeks for test results of TAP test sets.
Field Summary | |
---|---|
protected TAPParser |
parser
|
protected java.util.Map<java.lang.Integer,TestCaseWrapper<org.tap4j.model.TestSet>> |
results
|
Fields inherited from class hudson.plugins.testlink.result.TestResultSeeker |
---|
automatedTestCases, includePattern, keyCustomFieldName, listener |
Constructor Summary | |
---|---|
TAPTestResultSeeker(java.lang.String includePattern,
br.eti.kinoshita.testlinkjavaapi.model.TestCase[] automatedTestCases,
java.lang.String keyCustomFieldName,
hudson.model.BuildListener listener)
|
Method Summary | |
---|---|
protected void |
addOrUpdate(TestCaseWrapper<org.tap4j.model.TestSet> testResult,
java.lang.String tapFileNameWithoutExtension)
Adds a test result to the map of test results. |
protected void |
doTAPReports(java.io.File directory,
java.lang.String[] tapReports)
Parses TAP report files to look for Test Results of TestLink Automated Test Cases. |
protected void |
doTAPTestSet(org.tap4j.model.TestSet tapTestSet,
java.io.File tapFile)
Inspects a TAP test set looking for test results for the automated test cases in TestLink. |
protected void |
extractAttachments(java.util.List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> attachments,
java.util.Map<java.lang.String,java.lang.Object> diagnostic)
Extracts attachments from a TAP diagnostic and adds into a list of attachments. |
protected java.lang.String |
extractPlatform(java.util.Map<java.lang.String,java.lang.Object> diagnostic)
|
protected void |
findTestResult(java.lang.String tapFileNameWithoutExtension,
org.tap4j.model.TestSet tapTestSet,
br.eti.kinoshita.testlinkjavaapi.model.TestCase testLinkTestCase,
java.io.File tapFile)
Looks for test results in a TAP Test Set test case. |
protected java.util.List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> |
getTapAttachments(java.lang.Integer versionId,
java.io.File tapReportFile,
org.tap4j.model.TestSet testSet)
Retrieves list of TAP Attachments. |
protected br.eti.kinoshita.testlinkjavaapi.model.ExecutionStatus |
getTapExecutionStatus(org.tap4j.model.TestSet testSet)
Retrieves the TestLink Execution Status from a TAP Test Set. |
protected java.lang.String |
getTapNotes(org.tap4j.model.TestSet testSet)
Retrieves notes for a TAP test set. |
protected java.util.List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> |
retrieveListOfTapAttachments(org.tap4j.model.TestSet testSet)
Retrieves list of attachments from a TAP Test Set by using its YAMLish data. |
protected java.lang.String |
retrievePlatform(org.tap4j.model.TestSet tapTestSet)
Retrieves the TestLink platform. |
java.util.Map<java.lang.Integer,TestCaseWrapper<org.tap4j.model.TestSet>> |
seek(java.io.File directory)
Seeks for Test Results in a directory. |
Methods inherited from class hudson.plugins.testlink.result.TestResultSeeker |
---|
getBase64FileContent, getKeyCustomField, scan, split |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final TAPParser parser
protected final java.util.Map<java.lang.Integer,TestCaseWrapper<org.tap4j.model.TestSet>> results
Constructor Detail |
---|
public TAPTestResultSeeker(java.lang.String includePattern, br.eti.kinoshita.testlinkjavaapi.model.TestCase[] automatedTestCases, java.lang.String keyCustomFieldName, hudson.model.BuildListener listener)
includePattern
- report
- keyCustomFieldName
- listener
- Method Detail |
---|
public java.util.Map<java.lang.Integer,TestCaseWrapper<org.tap4j.model.TestSet>> seek(java.io.File directory) throws TestResultSeekerException
TestResultSeeker
seek
in class TestResultSeeker<org.tap4j.model.TestSet>
directory
- Directory to look for test results
TestResultSeekerException
protected void doTAPReports(java.io.File directory, java.lang.String[] tapReports)
directory
- Directory where to search for.tapReports
- Array of TAP report files.protected void doTAPTestSet(org.tap4j.model.TestSet tapTestSet, java.io.File tapFile)
tapTestSet
- TAP test set.tapFile
- TAP file (added as an attachment for each test result
found).protected void findTestResult(java.lang.String tapFileNameWithoutExtension, org.tap4j.model.TestSet tapTestSet, br.eti.kinoshita.testlinkjavaapi.model.TestCase testLinkTestCase, java.io.File tapFile)
protected void addOrUpdate(TestCaseWrapper<org.tap4j.model.TestSet> testResult, java.lang.String tapFileNameWithoutExtension)
protected java.lang.String getTapNotes(org.tap4j.model.TestSet testSet)
testSet
- TAP test set.
protected java.lang.String retrievePlatform(org.tap4j.model.TestSet tapTestSet)
tapTestSet
- TAP test set.
protected java.lang.String extractPlatform(java.util.Map<java.lang.String,java.lang.Object> diagnostic)
diagnostic
-
null
otherwiseprotected br.eti.kinoshita.testlinkjavaapi.model.ExecutionStatus getTapExecutionStatus(org.tap4j.model.TestSet testSet)
testSet
- the TAP TestSet.
protected java.util.List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> getTapAttachments(java.lang.Integer versionId, java.io.File tapReportFile, org.tap4j.model.TestSet testSet) throws java.io.IOException
versionId
- TestLink TestCase version id.tapReportFile
- TAP Report file.testSet
- TAP Test Set.
java.io.IOException
protected java.util.List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> retrieveListOfTapAttachments(org.tap4j.model.TestSet testSet) throws java.io.IOException
testSet
- TAP Test Set.
java.io.IOException
protected void extractAttachments(java.util.List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> attachments, java.util.Map<java.lang.String,java.lang.Object> diagnostic) throws java.io.IOException
attachments
- List of attachmentsdiagnostic
- TAP diagnostic
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |