|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.plugins.testlink.result.TestResultSeeker<T>
hudson.plugins.testlink.result.junit.AbstractJUnitTestResultSeeker<TestCase>
hudson.plugins.testlink.result.junit.JUnitTestCasesTestResultSeeker<T>
public class JUnitTestCasesTestResultSeeker<T extends TestCase>
Seeks for test results of JUnit test cases.
Field Summary | |
---|---|
protected java.util.Set<java.lang.String> |
failedTestCases
Stores a list of JUnit test cases that one or more methods failed. |
protected JUnitParser |
parser
|
protected java.util.Map<java.lang.Integer,TestCaseWrapper<TestCase>> |
results
Map of Wrappers for TestLink Test Cases. |
Fields inherited from class hudson.plugins.testlink.result.TestResultSeeker |
---|
automatedTestCases, includePattern, keyCustomFieldName, listener |
Constructor Summary | |
---|---|
JUnitTestCasesTestResultSeeker(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<TestCase> testResult)
Adds or updates test result. |
protected void |
findTestResults(TestCase junitTestCase,
java.lang.String testClassOrTestName,
br.eti.kinoshita.testlinkjavaapi.model.TestCase testLinkTestCase,
java.io.File junitFile)
Looks for test results in a JUnit test case. |
protected br.eti.kinoshita.testlinkjavaapi.model.ExecutionStatus |
getJUnitExecutionStatus(TestCase testCase,
java.lang.String testClassOrTestName)
Retrieves the Execution Status of the JUnit test. |
protected java.lang.String |
getJUnitNotes(TestCase testCase)
Retrieves the Notes about the JUnit test. |
protected java.lang.String |
getTestClassOrTestName(TestCase junitTestCase)
Retrieves the key value for a JUnit test. |
protected void |
processJUnitReports(java.io.File directory,
java.lang.String[] junitReports)
Processes all JUnit test result files. |
protected void |
processJUnitSuite(TestSuite junitSuite,
java.io.File junitFile)
Finds a test result for a given JUnit suite. |
protected void |
processJUnitTestCase(TestCase junitTestCase,
java.io.File junitFile)
Processes JUnit test case. |
java.util.Map<java.lang.Integer,TestCaseWrapper<TestCase>> |
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 |
---|
protected final JUnitParser parser
protected final java.util.Map<java.lang.Integer,TestCaseWrapper<TestCase>> results
protected final java.util.Set<java.lang.String> failedTestCases
Constructor Detail |
---|
public JUnitTestCasesTestResultSeeker(java.lang.String includePattern, br.eti.kinoshita.testlinkjavaapi.model.TestCase[] automatedTestCases, java.lang.String keyCustomFieldName, hudson.model.BuildListener listener)
Method Detail |
---|
public java.util.Map<java.lang.Integer,TestCaseWrapper<TestCase>> seek(java.io.File directory) throws TestResultSeekerException
TestResultSeeker
seek
in class TestResultSeeker<TestCase>
directory
- Directory to look for test results
TestResultSeekerException
protected void processJUnitReports(java.io.File directory, java.lang.String[] junitReports)
protected void processJUnitSuite(TestSuite junitSuite, java.io.File junitFile)
protected void processJUnitTestCase(TestCase junitTestCase, java.io.File junitFile)
protected void findTestResults(TestCase junitTestCase, java.lang.String testClassOrTestName, br.eti.kinoshita.testlinkjavaapi.model.TestCase testLinkTestCase, java.io.File junitFile)
protected void addOrUpdate(TestCaseWrapper<TestCase> testResult)
protected java.lang.String getTestClassOrTestName(TestCase junitTestCase)
null
, then it returns the
test name.
junitTestCase
- JUnit test.
protected br.eti.kinoshita.testlinkjavaapi.model.ExecutionStatus getJUnitExecutionStatus(TestCase testCase, java.lang.String testClassOrTestName)
testCase
- JUnit test.testClassOrTestName
-
protected java.lang.String getJUnitNotes(TestCase testCase)
testCase
- JUnit test.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |