public abstract class ResultSeeker extends Object implements Serializable, hudson.model.Describable<ResultSeeker>, Comparable<ResultSeeker>
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeNotes
Whether the plug-in must include notes when updating test cases.
|
protected String |
includePattern
Include pattern used when looking for results.
|
protected String |
keyCustomField
Key custom field.
|
Constructor and Description |
---|
ResultSeeker(String includePattern,
String keyCustomField,
boolean includeNotes)
Creates a result seeker passing a ant-like pattern to look for results.
|
Modifier and Type | Method and Description |
---|---|
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 String |
getBase64FileContent(File file)
Retrieves the file content encoded in Base64.
|
ResultSeekerDescriptor |
getDescriptor() |
String |
getIncludePattern() |
String |
getKeyCustomField() |
protected br.eti.kinoshita.testlinkjavaapi.model.CustomField |
getKeyCustomField(List<br.eti.kinoshita.testlinkjavaapi.model.CustomField> customFields,
String keyCustomFieldName)
Gets the key custom field out of a list using the key custom field name.
|
boolean |
isIncludeNotes() |
protected String[] |
scan(File directory,
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.
|
protected final String includePattern
protected final String keyCustomField
protected final boolean includeNotes
public String getIncludePattern()
public 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 caseslistener
- Build listener for loggingtestlink
- TestLink site for updating test statusResultSeekerException
protected String getBase64FileContent(File file) throws IOException
file
- file to read the content.IOException
protected String[] scan(File directory, String includes, hudson.model.BuildListener listener) throws IOException
directory
- the directory to scan.includes
- the includes pattern.listener
- Hudson Build listener.IOException
protected br.eti.kinoshita.testlinkjavaapi.model.CustomField getKeyCustomField(List<br.eti.kinoshita.testlinkjavaapi.model.CustomField> customFields, String keyCustomFieldName)
public int compareTo(ResultSeeker o)
compareTo
in interface Comparable<ResultSeeker>
Copyright © 2010–2019 Jenkins. All rights reserved.