|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.plugins.testlink.result.ResultSeeker
public abstract class ResultSeeker
Seeks for Results.
Field Summary | |
---|---|
protected boolean |
includeNotes
Whether the plug-in must include notes when updating test cases. |
protected java.lang.String |
includePattern
Include pattern used when looking for results. |
protected java.lang.String |
keyCustomField
Key custom field. |
Constructor Summary | |
---|---|
ResultSeeker(java.lang.String includePattern,
java.lang.String keyCustomField,
boolean includeNotes)
Creates a result seeker passing a ant-like pattern to look for results. |
Method Summary | |
---|---|
static hudson.DescriptorExtensionList<ResultSeeker,hudson.model.Descriptor<ResultSeeker>> |
all()
|
static hudson.DescriptorExtensionList<ResultSeeker,hudson.model.Descriptor<ResultSeeker>> |
allExcept(hudson.model.Node current)
|
int |
compareTo(ResultSeeker o)
|
protected java.lang.String |
getBase64FileContent(java.io.File file)
Retrieves the file content encoded in Base64. |
ResultSeekerDescriptor |
getDescriptor()
|
java.lang.String |
getIncludePattern()
|
java.lang.String |
getKeyCustomField()
|
protected br.eti.kinoshita.testlinkjavaapi.model.CustomField |
getKeyCustomField(java.util.List<br.eti.kinoshita.testlinkjavaapi.model.CustomField> customFields,
java.lang.String keyCustomFieldName)
Gets the key custom field out of a list using the key custom field name. |
boolean |
isIncludeNotes()
|
protected java.lang.String[] |
scan(java.io.File directory,
java.lang.String includes,
hudson.model.BuildListener listener)
Scans a directory for files matching the includes pattern. |
abstract void |
seek(TestCaseWrapper[] automatedTestCases,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
TestLinkSite testlink)
Seeks for Test Results in a directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String includePattern
protected final java.lang.String keyCustomField
protected final boolean includeNotes
Constructor Detail |
---|
public ResultSeeker(java.lang.String includePattern, java.lang.String keyCustomField, boolean includeNotes)
includePattern
- Include pattern when looking for results.Method Detail |
---|
public java.lang.String getIncludePattern()
public java.lang.String getKeyCustomField()
public boolean isIncludeNotes()
public ResultSeekerDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<ResultSeeker>
public static hudson.DescriptorExtensionList<ResultSeeker,hudson.model.Descriptor<ResultSeeker>> all()
public static hudson.DescriptorExtensionList<ResultSeeker,hudson.model.Descriptor<ResultSeeker>> allExcept(hudson.model.Node current)
public abstract void seek(TestCaseWrapper[] automatedTestCases, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, TestLinkSite testlink) throws ResultSeekerException
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.
automatedTestcases
- Automated test casesworkspace
- Build workspace, used when looking for results using the include patternlistener
- Build listener for loggingtestlink
- TestLink site for updating test status
ResultSeekerException
protected java.lang.String getBase64FileContent(java.io.File file) throws java.io.IOException
file
- file to read the content.
java.io.IOException
protected java.lang.String[] scan(java.io.File directory, java.lang.String includes, hudson.model.BuildListener listener) throws java.io.IOException
directory
- the directory to scan.includes
- the includes pattern.listener
- Hudson Build listener.
java.io.IOException
protected br.eti.kinoshita.testlinkjavaapi.model.CustomField getKeyCustomField(java.util.List<br.eti.kinoshita.testlinkjavaapi.model.CustomField> customFields, java.lang.String keyCustomFieldName)
public int compareTo(ResultSeeker o)
compareTo
in interface java.lang.Comparable<ResultSeeker>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |