hudson.plugins.testlink.result
Class TestNGMethodNameDataProviderNameResultSeeker

java.lang.Object
  extended by hudson.plugins.testlink.result.ResultSeeker
      extended by hudson.plugins.testlink.result.AbstractTestNGResultSeeker
          extended by hudson.plugins.testlink.result.TestNGMethodNameDataProviderNameResultSeeker
All Implemented Interfaces:
hudson.model.Describable<ResultSeeker>, java.io.Serializable, java.lang.Comparable<ResultSeeker>

public class TestNGMethodNameDataProviderNameResultSeeker
extends AbstractTestNGResultSeeker

Seeks for test results matching each TestNG Method name and its Data Provider name with key custom fields.

Skips TestNG Method that were disabled.

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

Nested Class Summary
static class TestNGMethodNameDataProviderNameResultSeeker.DescriptorImpl
           
 
Field Summary
 
Fields inherited from class hudson.plugins.testlink.result.AbstractTestNGResultSeeker
FAIL, PASS, SKIP, TEXT_XML_CONTENT_TYPE
 
Fields inherited from class hudson.plugins.testlink.result.ResultSeeker
includeNotes, includePattern, keyCustomField
 
Constructor Summary
TestNGMethodNameDataProviderNameResultSeeker(java.lang.String includePattern, java.lang.String keyCustomField, boolean attachTestNGXML, boolean markSkippedTestAsBlocked, java.lang.String dataProviderNameKeyCustomField, boolean includeNotes)
           
 
Method Summary
 java.lang.String getDataProviderNameKeyCustomField()
           
 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 hudson.plugins.testlink.result.AbstractTestNGResultSeeker
handleResult, isAttachTestNGXML, isMarkSkippedTestAsBlocked, setAttachTestNGXML, setMarkSkippedTestAsBlocked
 
Methods inherited from class hudson.plugins.testlink.result.ResultSeeker
all, allExcept, compareTo, getBase64FileContent, getDescriptor, getIncludePattern, getKeyCustomField, getKeyCustomField, isIncludeNotes, scan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGMethodNameDataProviderNameResultSeeker

@DataBoundConstructor
public TestNGMethodNameDataProviderNameResultSeeker(java.lang.String includePattern,
                                                                         java.lang.String keyCustomField,
                                                                         boolean attachTestNGXML,
                                                                         boolean markSkippedTestAsBlocked,
                                                                         java.lang.String dataProviderNameKeyCustomField,
                                                                         boolean includeNotes)
Parameters:
includePattern -
keyCustomField -
attachTestNGXML -
markSkippedTestAsBlocked -
dataProviderNameKeyCustomField -
Method Detail

getDataProviderNameKeyCustomField

public java.lang.String getDataProviderNameKeyCustomField()
Returns:
the dataProviderNameKeyCustomField

seek

public void seek(TestCaseWrapper[] automatedTestCases,
                 hudson.model.AbstractBuild<?,?> build,
                 hudson.Launcher launcher,
                 hudson.model.BuildListener listener,
                 TestLinkSite testlink)
          throws ResultSeekerException
Description copied from class: 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.

Specified by:
seek in class ResultSeeker
listener - Build listener for logging
testlink - TestLink site for updating test status
Throws:
ResultSeekerException


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