public class TestLinkBuilder extends AbstractTestLinkBuilder
Modifier and Type | Field and Description |
---|---|
static TestLinkBuilderDescriptor |
DESCRIPTOR
The Descriptor of this Builder.
|
afterIteratingAllTestCasesBuildSteps, beforeIteratingAllTestCasesBuildSteps, buildName, customFields, executionOrderComparator, failedTestsMarkBuildAsFailure, failIfNoResults, failOnNotRun, failure, iterativeBuildSteps, platformName, singleBuildSteps, testLinkName, testPlanCustomFields, testPlanName, testProjectName, transactional
Constructor and Description |
---|
TestLinkBuilder(String testLinkName,
String testProjectName,
String testPlanName,
String buildName,
String customFields,
Boolean executionStatusNotRun,
Boolean executionStatusPassed,
Boolean executionStatusFailed,
Boolean executionStatusBlocked,
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,
Boolean failOnNotRun,
List<ResultSeeker> resultSeekers)
Deprecated.
|
TestLinkBuilder(String testLinkName,
String testProjectName,
String testPlanName,
String buildName,
String customFields,
Boolean executionStatusNotRun,
Boolean executionStatusPassed,
Boolean executionStatusFailed,
Boolean executionStatusBlocked,
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)
Deprecated.
|
TestLinkBuilder(String testLinkName,
String testProjectName,
String testPlanName,
String platformName,
String buildName,
String customFields,
Boolean executionStatusNotRun,
Boolean executionStatusPassed,
Boolean executionStatusFailed,
Boolean executionStatusBlocked,
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,
Boolean failOnNotRun,
List<ResultSeeker> resultSeekers)
Deprecated.
to add test plan custom fields
|
TestLinkBuilder(String testLinkName,
String testProjectName,
String testPlanName,
String platformName,
String buildName,
String customFields,
String testPlanCustomFields,
Boolean executionStatusNotRun,
Boolean executionStatusPassed,
Boolean executionStatusFailed,
Boolean executionStatusBlocked,
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,
Boolean failOnNotRun,
List<ResultSeeker> resultSeekers) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeIterativeBuildSteps(TestCaseWrapper[] automatedTestCases,
br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan,
TestLinkSite testLinkSite,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Executes iterative build steps.
|
protected void |
executeSingleBuildSteps(int numberOfTests,
br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan,
TestLinkSite testLinkSite,
hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Executes the list of single build steps.
|
hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor() |
TestLinkSite |
getTestLinkSite(String testLinkUrl,
String testLinkDevKey,
String testProjectName,
String testPlanName,
String platformName,
String buildName,
String buildNotes)
Gets object to interact with TestLink site.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Called when the job is executed.
|
getAfterIteratingAllTestCasesBuildSteps, getBeforeIteratingAllTestCasesBuildSteps, getBuildName, getCustomFields, getExecutionStatusBlocked, getExecutionStatusFailed, getExecutionStatusNotRun, getExecutionStatusPassed, getFailedTestsMarkBuildAsUnstable, getFailIfNoResults, getFailOnNotRun, getIterativeBuildSteps, getPlatformName, getProjectAction, getResultSeekers, getSingleBuildSteps, getTestLinkName, getTestPlanCustomFields, getTestPlanName, getTestProjectName, getTransactional, setResultSeekers
@Extension public static final TestLinkBuilderDescriptor DESCRIPTOR
public TestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, String buildName, String customFields, Boolean executionStatusNotRun, Boolean executionStatusPassed, Boolean executionStatusFailed, Boolean executionStatusBlocked, 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)
public TestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, String buildName, String customFields, Boolean executionStatusNotRun, Boolean executionStatusPassed, Boolean executionStatusFailed, Boolean executionStatusBlocked, 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, Boolean failOnNotRun, List<ResultSeeker> resultSeekers)
public TestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, String platformName, String buildName, String customFields, Boolean executionStatusNotRun, Boolean executionStatusPassed, Boolean executionStatusFailed, Boolean executionStatusBlocked, 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, Boolean failOnNotRun, List<ResultSeeker> resultSeekers)
@DataBoundConstructor public TestLinkBuilder(String testLinkName, String testProjectName, String testPlanName, String platformName, String buildName, String customFields, String testPlanCustomFields, Boolean executionStatusNotRun, Boolean executionStatusPassed, Boolean executionStatusFailed, Boolean executionStatusBlocked, 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, Boolean failOnNotRun, List<ResultSeeker> resultSeekers)
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
InterruptedException
IOException
public TestLinkSite getTestLinkSite(String testLinkUrl, String testLinkDevKey, String testProjectName, String testPlanName, String platformName, String buildName, String buildNotes) throws MalformedURLException
MalformedURLException
protected void executeSingleBuildSteps(int numberOfTests, br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan, TestLinkSite testLinkSite, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
numberOfTests
- number of teststestLinkSite
- TestLink sitebuild
- Jenkins build.launcher
- job launcherlistener
- build listenerIOException
InterruptedException
protected void executeIterativeBuildSteps(TestCaseWrapper[] automatedTestCases, br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan, TestLinkSite testLinkSite, hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
Executes iterative build steps. For each automated test case found in the array of automated test cases, this method executes the iterative builds steps using Jenkins objects.
automatedTestCases
- array of automated test casestestLinkSite
- The TestLink Site objectlauncher
- listener
- InterruptedException
IOException
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2010–2019 Jenkins. All rights reserved.