public class AbstractTestLinkBuilder
extends hudson.tasks.Builder
Modifier and Type | Field and Description |
---|---|
protected List<hudson.tasks.BuildStep> |
afterIteratingAllTestCasesBuildSteps
List of build steps that are executed after iterating all test cases.
|
protected List<hudson.tasks.BuildStep> |
beforeIteratingAllTestCasesBuildSteps
List of build steps that are executed before iterating all test cases.
|
protected String |
buildName
The name of the Build.
|
protected String |
customFields
Comma separated list of custom fields to download from TestLink.
|
protected ExecutionOrderComparator |
executionOrderComparator
Used to sort test cases marked as automated.
|
protected Boolean |
failedTestsMarkBuildAsFailure
If the plug-in should mark the Build in Jenkins as failure if it
contains failed tests.
|
protected Boolean |
failIfNoResults
Fail the build if no test results are present.
|
protected boolean |
failure
Flag to check if any failure happened.
|
protected List<hudson.tasks.BuildStep> |
iterativeBuildSteps
List of build steps that are executed for each test case.
|
protected List<hudson.tasks.BuildStep> |
singleBuildSteps
List of build steps that are executed only once per job execution.
|
protected String |
testLinkName
The name of the TestLink installation.
|
protected String |
testPlanName
The name of the Test Plan.
|
protected String |
testProjectName
The name of the Test Project.
|
protected Boolean |
transactional
If this property is true, not more build steps are executed for this
Build.
|
Constructor and Description |
---|
AbstractTestLinkBuilder(String testLinkName,
String testProjectName,
String testPlanName,
String buildName,
String customFields,
List<hudson.tasks.BuildStep> singleBuildSteps,
List<hudson.tasks.BuildStep> beforeIteratingAllTestCasesBuildSteps,
List<hudson.tasks.BuildStep> iterativeBuildSteps,
List<hudson.tasks.BuildStep> afterIteratingAllTestCasesBuildSteps,
Boolean transactional,
Boolean failedTestsMarkBuildAsFailure,
Boolean failIfNoResults,
List<ResultSeeker> resultSeekers)
This constructor is bound to a stapler request.
|
Modifier and Type | Method and Description |
---|---|
protected String[] |
createArrayOfCustomFieldsNames(hudson.util.VariableResolver<String> variableResolver,
hudson.EnvVars envVars)
Creates array of custom fields names using the Job configuration data.
|
String |
expandVariable(hudson.util.VariableResolver<String> variableResolver,
hudson.EnvVars envVars,
String variable)
Expands a text variable like BUILD-$VAR replacing the $VAR part with
a environment variable that matches its name, minus $.
|
List<hudson.tasks.BuildStep> |
getAfterIteratingAllTestCasesBuildSteps() |
List<hudson.tasks.BuildStep> |
getBeforeIteratingAllTestCasesBuildSteps() |
String |
getBuildName() |
String |
getCustomFields() |
Boolean |
getFailedTestsMarkBuildAsUnstable() |
Boolean |
getFailIfNoResults() |
List<hudson.tasks.BuildStep> |
getIterativeBuildSteps() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
List<ResultSeeker> |
getResultSeekers() |
List<hudson.tasks.BuildStep> |
getSingleBuildSteps() |
String |
getTestLinkName() |
String |
getTestPlanName() |
String |
getTestProjectName() |
Boolean |
getTransactional()
Returns whether it is a transactional build or not.
|
void |
setResultSeekers(List<ResultSeeker> resultSeekers) |
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectActions, perform, perform, prebuild
protected final String testLinkName
protected final String testProjectName
protected final String testPlanName
protected String buildName
protected final String customFields
protected final List<hudson.tasks.BuildStep> singleBuildSteps
protected final List<hudson.tasks.BuildStep> beforeIteratingAllTestCasesBuildSteps
protected final List<hudson.tasks.BuildStep> iterativeBuildSteps
protected final List<hudson.tasks.BuildStep> afterIteratingAllTestCasesBuildSteps
protected final Boolean transactional
protected final Boolean failedTestsMarkBuildAsFailure
protected final Boolean failIfNoResults
protected final ExecutionOrderComparator executionOrderComparator
protected boolean failure
public AbstractTestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, String buildName, String customFields, List<hudson.tasks.BuildStep> singleBuildSteps, List<hudson.tasks.BuildStep> beforeIteratingAllTestCasesBuildSteps, List<hudson.tasks.BuildStep> iterativeBuildSteps, List<hudson.tasks.BuildStep> afterIteratingAllTestCasesBuildSteps, Boolean transactional, Boolean failedTestsMarkBuildAsFailure, Boolean failIfNoResults, List<ResultSeeker> resultSeekers)
testLinkName
- TestLink Installation name.testProjectName
- TestLink Test Project name.testPlanName
- TestLink Test Plan name.buildName
- TestLink Build name.customFields
- TestLink comma-separated list of Custom Fields.keyCustomField
- Key custom field.singleBuildSteps
- List of build steps to execute once for all automated test cases.beforeIteratingAllTestCasesBuildSteps
- Command executed before iterating all test cases.iterativeBuildSteps
- List of build steps to execute for each Automated Test Case.afterIteratingAllTestCasesBuildSteps
- Command executed after iterating all test cases.transactional
- Whether the build's execution is transactional or not.failedTestsMarkBuildAsFailure
- Whether failed tests mark the build as failure or not.failIfNoResults
- If true marks the build as FAILURE.resultSeekers
- List of result seekers.public String getTestLinkName()
public String getTestProjectName()
public String expandVariable(hudson.util.VariableResolver<String> variableResolver, hudson.EnvVars envVars, String variable)
variableResolver
- Jenkins Build Variable Resolver.envVars
- Jenkins Build Environment Variables.variable
- Variable value (includes mask).public String getTestPlanName()
public String getBuildName()
public String getCustomFields()
public List<hudson.tasks.BuildStep> getSingleBuildSteps()
public List<hudson.tasks.BuildStep> getBeforeIteratingAllTestCasesBuildSteps()
public List<hudson.tasks.BuildStep> getIterativeBuildSteps()
public List<hudson.tasks.BuildStep> getAfterIteratingAllTestCasesBuildSteps()
public Boolean getTransactional()
public Boolean getFailedTestsMarkBuildAsUnstable()
public Boolean getFailIfNoResults()
public List<ResultSeeker> getResultSeekers()
public void setResultSeekers(List<ResultSeeker> resultSeekers)
resultSeekers
- the resultSeekers to setpublic hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction
in interface hudson.tasks.BuildStep
getProjectAction
in class hudson.tasks.BuildStepCompatibilityLayer
protected String[] createArrayOfCustomFieldsNames(hudson.util.VariableResolver<String> variableResolver, hudson.EnvVars envVars)
variableResolver
- Jenkins variable resolverenvVars
- Jenkins environment variablesCopyright © 2010-2013 Jenkins. All Rights Reserved.