public abstract class AbstractTAPFileNameResultSeeker extends ResultSeeker
Modifier and Type | Field and Description |
---|---|
protected static String |
TEXT_PLAIN_CONTENT_TYPE |
includeNotes, includePattern, keyCustomField
Constructor and Description |
---|
AbstractTAPFileNameResultSeeker(String includePattern,
String keyCustomField,
boolean attachTAPStream,
boolean attachYAMLishAttachments,
boolean includeNotes,
Boolean compareFullPath) |
Modifier and Type | Method and Description |
---|---|
protected void |
extractAttachments(List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> attachments,
Map<String,Object> diagnostic)
Extracts attachments from a TAP diagnostic and adds into a list of attachments.
|
Boolean |
getCompareFullPath() |
protected String |
getTapNotes(org.tap4j.model.TestSet testSet)
Retrieves notes for a TAP test set.
|
protected void |
handleResult(TestCaseWrapper automatedTestCase,
hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
TestLinkSite testlink,
br.eti.kinoshita.testlinkjavaapi.constants.ExecutionStatus status,
Map<String,org.tap4j.model.TestSet> testSets,
String key) |
boolean |
isAttachTAPStream() |
boolean |
isAttachYAMLishAttachments() |
Boolean |
isCompareFullPath() |
protected String |
retrievePlatform(org.tap4j.model.TestSet tapTestSet)
Retrieves the TestLink platform.
|
void |
seek(TestCaseWrapper[] automatedTestCases,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
TestLinkSite testlink)
Seeks for Test Results in a directory.
|
void |
setAttachTAPStream(boolean attachTAPStream) |
void |
setAttachYAMLishAttachments(boolean attachYAMLishAttachments) |
void |
setCompareFullPath(Boolean compareFullPath) |
protected void |
updateTestCase(Map<String,org.tap4j.model.TestSet> testSets,
String key,
TestCaseWrapper automatedTestCase,
String value,
hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
TestLinkSite testlink) |
all, allExcept, compareTo, getBase64FileContent, getDescriptor, getIncludePattern, getKeyCustomField, getKeyCustomField, isIncludeNotes, scan
protected static final String TEXT_PLAIN_CONTENT_TYPE
public AbstractTAPFileNameResultSeeker(String includePattern, String keyCustomField, boolean attachTAPStream, boolean attachYAMLishAttachments, boolean includeNotes, Boolean compareFullPath)
includePattern
- keyCustomField
- attachTAPStream
- attachYAMLishAttachments
- public void setAttachTAPStream(boolean attachTAPStream)
public boolean isAttachTAPStream()
public void setAttachYAMLishAttachments(boolean attachYAMLishAttachments)
public boolean isAttachYAMLishAttachments()
public Boolean isCompareFullPath()
public Boolean getCompareFullPath()
public void setCompareFullPath(Boolean compareFullPath)
public void seek(TestCaseWrapper[] automatedTestCases, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, TestLinkSite testlink) throws ResultSeekerException
ResultSeeker
Seeks for Test Results in a directory. It tries to match the includePattern with files in this directory.
It looks for results using the include pattern, but this value is matched within the workspace. It means that your result files have to be relative to your workspace.
For each result found, it is automatically updated in TestLink, and the Report is updated.
seek
in class ResultSeeker
automatedTestCases
- Automated test caseslistener
- Build listener for loggingtestlink
- TestLink site for updating test statusResultSeekerException
protected void updateTestCase(Map<String,org.tap4j.model.TestSet> testSets, String key, TestCaseWrapper automatedTestCase, String value, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, TestLinkSite testlink)
protected void handleResult(TestCaseWrapper automatedTestCase, hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, TestLinkSite testlink, br.eti.kinoshita.testlinkjavaapi.constants.ExecutionStatus status, Map<String,org.tap4j.model.TestSet> testSets, String key)
protected String getTapNotes(org.tap4j.model.TestSet testSet)
testSet
- TAP test set.protected String retrievePlatform(org.tap4j.model.TestSet tapTestSet)
tapTestSet
- TAP test set.protected void extractAttachments(List<br.eti.kinoshita.testlinkjavaapi.model.Attachment> attachments, Map<String,Object> diagnostic) throws IOException
attachments
- List of attachmentsdiagnostic
- TAP diagnosticIOException
Copyright © 2010–2019 Jenkins. All rights reserved.