hudson.plugins.testlink.result.junit
Class JUnitSuitesTestResultSeeker<T extends TestSuite>

java.lang.Object
  extended by hudson.plugins.testlink.result.TestResultSeeker<T>
      extended by hudson.plugins.testlink.result.junit.AbstractJUnitTestResultSeeker<TestSuite>
          extended by hudson.plugins.testlink.result.junit.JUnitSuitesTestResultSeeker<T>
All Implemented Interfaces:
java.io.Serializable

public class JUnitSuitesTestResultSeeker<T extends TestSuite>
extends AbstractJUnitTestResultSeeker<TestSuite>

Seeks for test results of JUnit test suites.

Since:
2.5
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br
See Also:
Serialized Form

Field Summary
protected  JUnitParser parser
           
protected  java.util.Map<java.lang.Integer,TestCaseWrapper<TestSuite>> results
           
 
Fields inherited from class hudson.plugins.testlink.result.TestResultSeeker
automatedTestCases, includePattern, keyCustomFieldName, listener
 
Constructor Summary
JUnitSuitesTestResultSeeker(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<TestSuite> testResult)
          Adds a test result to the map of test results.
protected  void findTestResults(TestSuite junitSuite, br.eti.kinoshita.testlinkjavaapi.model.TestCase testLinkTestCase, java.io.File junitFile)
          Looks for test results in a JUnit suite.
protected  br.eti.kinoshita.testlinkjavaapi.model.ExecutionStatus getJUnitExecutionStatus(TestSuite testSuite)
          Gets the execution status of the JUnit suite.
protected  java.lang.String getJUnitNotes(TestSuite testSuite)
          Gets the notes about the JUnit suite.
protected  void processJUnitReports(java.io.File directory, java.lang.String[] junitReports)
          Processes all JUnit reports.
protected  void processJUnitSuite(TestSuite junitSuite, java.io.File junitFile)
          Processes JUnit suite.
 java.util.Map<java.lang.Integer,TestCaseWrapper<TestSuite>> seek(java.io.File directory)
          Seeks for Test Results in a directory.
 
Methods inherited from class hudson.plugins.testlink.result.junit.AbstractJUnitTestResultSeeker
getJUnitAttachment
 
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

parser

protected final JUnitParser parser

results

protected final java.util.Map<java.lang.Integer,TestCaseWrapper<TestSuite>> results
Constructor Detail

JUnitSuitesTestResultSeeker

public JUnitSuitesTestResultSeeker(java.lang.String includePattern,
                                   br.eti.kinoshita.testlinkjavaapi.model.TestCase[] automatedTestCases,
                                   java.lang.String keyCustomFieldName,
                                   hudson.model.BuildListener listener)
Method Detail

seek

public java.util.Map<java.lang.Integer,TestCaseWrapper<TestSuite>> seek(java.io.File directory)
                                                                 throws TestResultSeekerException
Description copied from class: TestResultSeeker
Seeks for Test Results in a directory. It tries to match the includePattern with files in this directory.

Specified by:
seek in class TestResultSeeker<TestSuite>
Parameters:
directory - Directory to look for test results
Throws:
TestResultSeekerException

processJUnitReports

protected void processJUnitReports(java.io.File directory,
                                   java.lang.String[] junitReports)
Processes all JUnit reports.


processJUnitSuite

protected void processJUnitSuite(TestSuite junitSuite,
                                 java.io.File junitFile)
Processes JUnit suite.


findTestResults

protected void findTestResults(TestSuite junitSuite,
                               br.eti.kinoshita.testlinkjavaapi.model.TestCase testLinkTestCase,
                               java.io.File junitFile)
Looks for test results in a JUnit suite.


addOrUpdate

protected void addOrUpdate(TestCaseWrapper<TestSuite> testResult)
Adds a test result to the map of test results. If the entry already exists, then it is updated (notes, attachments and statuses).


getJUnitExecutionStatus

protected br.eti.kinoshita.testlinkjavaapi.model.ExecutionStatus getJUnitExecutionStatus(TestSuite testSuite)
Gets the execution status of the JUnit suite.


getJUnitNotes

protected java.lang.String getJUnitNotes(TestSuite testSuite)
Gets the notes about the JUnit suite.



Copyright © 2010-2011 the Jenkins TestLink plug-in team-2011 Jenkins. All Rights Reserved.