Package com.uipath.uipathpackage
Class UiPathTest
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Recorder
-
- com.uipath.uipathpackage.UiPathTest
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,hudson.tasks.junit.JUnitTask
,SimpleBuildStep
public class UiPathTest extends Recorder implements SimpleBuildStep, hudson.tasks.junit.JUnitTask
Runs a test set or test package on the Orchestrator and outputs the result.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UiPathTest.DescriptorImpl
Descriptor
forBuilder
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description UiPathTest(java.lang.String orchestratorAddress, java.lang.String orchestratorTenant, java.lang.String folderName, SelectEntry testTarget, SelectEntry credentials, java.lang.String testResultsOutputPath, java.lang.Integer timeout, TraceLevel traceLevel, java.lang.String parametersFilePath)
Data bound constructor responsible for setting the values param values to state
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getAttachRobotLogs()
attachRobotLogsjava.lang.String
getChecksName()
SelectEntry
getCredentials()
Credentials, appearing as choice and will be responsible to extract credentials and use for orchestrator connectionjava.lang.String
getFolderName()
Orchestrator Folderdouble
getHealthScaleFactor()
java.lang.String
getOrchestratorAddress()
Orchestrator URLjava.lang.String
getOrchestratorTenant()
Orchestrator Tenantjava.lang.String
getParametersFilePath()
parametersFilePathjava.lang.String
getProjectUrl()
Provides the project urljava.lang.String
getRepositoryBranch()
Provides the repository branchjava.lang.String
getRepositoryCommit()
Provides the repository commitjava.lang.String
getRepositoryType()
Provides the repository typejava.lang.String
getRepositoryUrl()
Provides the repository urlBuildStepMonitor
getRequiredMonitorService()
Declares the scope of the synchronization monitor thisBuildStep
expects from outside.java.util.List<hudson.tasks.junit.TestDataPublisher>
getTestDataPublishers()
java.lang.String
getTestResults()
java.lang.String
getTestResultsOutputPath()
Test result output pathSelectEntry
getTestTarget()
Test target to be executed on the Orchestratorjava.lang.Integer
getTimeout()
Gets the timeout.TraceLevel
getTraceLevel()
traceLevelboolean
isAllowEmptyResults()
boolean
isKeepLongStdio()
boolean
isSkipOldReports()
boolean
isSkipPublishingChecks()
void
perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener)
Run this step.void
setAttachRobotLogs(boolean attachRobotLogs)
attachRobotLogsvoid
setProjectUrl(java.lang.String projectUrl)
void
setRepositoryBranch(java.lang.String repositoryBranch)
void
setRepositoryCommit(java.lang.String repositoryCommit)
void
setRepositoryType(java.lang.String repositoryType)
void
setRepositoryUrl(java.lang.String repositoryUrl)
-
Methods inherited from class hudson.tasks.Recorder
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
UiPathTest
@DataBoundConstructor public UiPathTest(java.lang.String orchestratorAddress, java.lang.String orchestratorTenant, java.lang.String folderName, SelectEntry testTarget, SelectEntry credentials, java.lang.String testResultsOutputPath, java.lang.Integer timeout, TraceLevel traceLevel, java.lang.String parametersFilePath)
Data bound constructor responsible for setting the values param values to state- Parameters:
orchestratorAddress
- UiPath Orchestrator base URLorchestratorTenant
- UiPath Orchestrator tenantfolderName
- Folder NametestTarget
- Test targetcredentials
- UiPath Orchestrator credentialstestResultsOutputPath
- Test result output path (JUnit format)timeout
- TimeouttraceLevel
- The trace logging level. One of the following values: None, Critical, Error, Warning, Information, Verbose. (default None)parametersFilePath
- Path of the parameter file
-
-
Method Detail
-
getTimeout
public java.lang.Integer getTimeout()
Gets the timeout.- Returns:
- int timeout
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath workspace, @NonNull EnvVars env, @Nonnull Launcher launcher, @Nonnull TaskListener listener) throws java.lang.InterruptedException, java.io.IOException
Run this step.- Specified by:
perform
in interfaceSimpleBuildStep
- Parameters:
run
- a build this is running as a part ofworkspace
- a workspace to use for any file operationslauncher
- a way to start processeslistener
- a place to send output- Throws:
java.lang.InterruptedException
- if the step is interruptedjava.io.IOException
- if something goes wrong
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
Declares the scope of the synchronization monitor thisBuildStep
expects from outside.BuildStepMonitor.NONE
No external synchronization is performed on this build step. This is the most efficient, and thus the recommended value for newer plugins. Wherever necessary, you can directly useCheckPoint
s to perform necessary synchronizations.- Specified by:
getRequiredMonitorService
in interfaceBuildStep
- Returns:
- BuildStepMonitor BuildStepMonitor.NONE
-
getTestTarget
public SelectEntry getTestTarget()
Test target to be executed on the Orchestrator- Returns:
- SelectEntry testTarget
-
getCredentials
public SelectEntry getCredentials()
Credentials, appearing as choice and will be responsible to extract credentials and use for orchestrator connection- Returns:
- SelectEntry credentials
-
getOrchestratorAddress
public java.lang.String getOrchestratorAddress()
Orchestrator URL- Returns:
- String orchestratorAddress
-
getFolderName
public java.lang.String getFolderName()
Orchestrator Folder- Returns:
- String folderName
-
getOrchestratorTenant
public java.lang.String getOrchestratorTenant()
Orchestrator Tenant- Returns:
- String orchestratorTenant
-
getTestResultsOutputPath
public java.lang.String getTestResultsOutputPath()
Test result output path- Returns:
- String testResultsOutputPath
-
getTraceLevel
public TraceLevel getTraceLevel()
traceLevel- Returns:
- TraceLevel traceLevel
-
getParametersFilePath
public java.lang.String getParametersFilePath()
parametersFilePath- Returns:
- String parametersFilePath
-
getAttachRobotLogs
public boolean getAttachRobotLogs()
attachRobotLogs- Returns:
- boolean attachRobotLogs
-
getRepositoryUrl
public java.lang.String getRepositoryUrl()
Provides the repository url- Returns:
- String repositoryUrl
-
getRepositoryCommit
public java.lang.String getRepositoryCommit()
Provides the repository commit- Returns:
- String repositoryCommit
-
getRepositoryBranch
public java.lang.String getRepositoryBranch()
Provides the repository branch- Returns:
- String repositoryBranch
-
getRepositoryType
public java.lang.String getRepositoryType()
Provides the repository type- Returns:
- String repositoryType
-
getProjectUrl
public java.lang.String getProjectUrl()
Provides the project url- Returns:
- String projectUrl
-
setAttachRobotLogs
@DataBoundSetter public void setAttachRobotLogs(boolean attachRobotLogs)
attachRobotLogs- Parameters:
attachRobotLogs
- Boolean field whether to attach the robot logs
-
setRepositoryUrl
@DataBoundSetter public void setRepositoryUrl(java.lang.String repositoryUrl)
-
setRepositoryCommit
@DataBoundSetter public void setRepositoryCommit(java.lang.String repositoryCommit)
-
setRepositoryBranch
@DataBoundSetter public void setRepositoryBranch(java.lang.String repositoryBranch)
-
setRepositoryType
@DataBoundSetter public void setRepositoryType(java.lang.String repositoryType)
-
setProjectUrl
@DataBoundSetter public void setProjectUrl(java.lang.String projectUrl)
-
getTestResults
public java.lang.String getTestResults()
- Specified by:
getTestResults
in interfacehudson.tasks.junit.JUnitTask
-
getHealthScaleFactor
public double getHealthScaleFactor()
- Specified by:
getHealthScaleFactor
in interfacehudson.tasks.junit.JUnitTask
-
getTestDataPublishers
public java.util.List<hudson.tasks.junit.TestDataPublisher> getTestDataPublishers()
- Specified by:
getTestDataPublishers
in interfacehudson.tasks.junit.JUnitTask
-
isKeepLongStdio
public boolean isKeepLongStdio()
- Specified by:
isKeepLongStdio
in interfacehudson.tasks.junit.JUnitTask
-
isAllowEmptyResults
public boolean isAllowEmptyResults()
- Specified by:
isAllowEmptyResults
in interfacehudson.tasks.junit.JUnitTask
-
isSkipPublishingChecks
public boolean isSkipPublishingChecks()
- Specified by:
isSkipPublishingChecks
in interfacehudson.tasks.junit.JUnitTask
-
getChecksName
public java.lang.String getChecksName()
- Specified by:
getChecksName
in interfacehudson.tasks.junit.JUnitTask
-
isSkipOldReports
public boolean isSkipOldReports()
- Specified by:
isSkipOldReports
in interfacehudson.tasks.junit.JUnitTask
-
-