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
Runs a test set or test package on the Orchestrator and outputs the result.
-
Nested Class Summary
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
ConstructorDescriptionUiPathTest
(String orchestratorAddress, String orchestratorTenant, String folderName, SelectEntry testTarget, SelectEntry credentials, String testResultsOutputPath, Integer timeout, TraceLevel traceLevel, String parametersFilePath) Data bound constructor responsible for setting the values param values to state -
Method Summary
Modifier and TypeMethodDescriptionboolean
attachRobotLogsCredentials, appearing as choice and will be responsible to extract credentials and use for orchestrator connectionOrchestrator Folderdouble
Orchestrator URLOrchestrator TenantparametersFilePathhudson.tasks.junit.StdioRetention
Provides the project urlProvides the repository branchProvides the repository commitProvides the repository typeProvides the repository urlDeclares the scope of the synchronization monitor thisBuildStep
expects from outside.List<hudson.tasks.junit.TestDataPublisher>
Test result output pathTest target to be executed on the OrchestratorGets the timeout.traceLevelboolean
boolean
boolean
boolean
boolean
boolean
void
Run this step.void
setAttachRobotLogs
(boolean attachRobotLogs) attachRobotLogsvoid
setDisableBuiltInNugetFeeds
(Boolean disableBuiltInNugetFeeds) void
setProjectUrl
(String projectUrl) void
setReleaseNotes
(String releaseNotes) void
setRepositoryBranch
(String repositoryBranch) void
setRepositoryCommit
(String repositoryCommit) void
setRepositoryType
(String repositoryType) void
setRepositoryUrl
(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 Details
-
UiPathTest
@DataBoundConstructor public UiPathTest(String orchestratorAddress, String orchestratorTenant, String folderName, SelectEntry testTarget, SelectEntry credentials, String testResultsOutputPath, Integer timeout, TraceLevel traceLevel, 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 Details
-
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 InterruptedException, IOExceptionRun 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:
InterruptedException
- if the step is interruptedIOException
- if something goes wrong
-
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
Test target to be executed on the Orchestrator- Returns:
- SelectEntry testTarget
-
getCredentials
Credentials, appearing as choice and will be responsible to extract credentials and use for orchestrator connection- Returns:
- SelectEntry credentials
-
getOrchestratorAddress
Orchestrator URL- Returns:
- String orchestratorAddress
-
getFolderName
Orchestrator Folder- Returns:
- String folderName
-
getOrchestratorTenant
Orchestrator Tenant- Returns:
- String orchestratorTenant
-
getTestResultsOutputPath
Test result output path- Returns:
- String testResultsOutputPath
-
getTraceLevel
traceLevel- Returns:
- TraceLevel traceLevel
-
getParametersFilePath
parametersFilePath- Returns:
- String parametersFilePath
-
getAttachRobotLogs
public boolean getAttachRobotLogs()attachRobotLogs- Returns:
- boolean attachRobotLogs
-
getRepositoryUrl
Provides the repository url- Returns:
- String repositoryUrl
-
getRepositoryCommit
Provides the repository commit- Returns:
- String repositoryCommit
-
getRepositoryBranch
Provides the repository branch- Returns:
- String repositoryBranch
-
getRepositoryType
Provides the repository type- Returns:
- String repositoryType
-
getProjectUrl
Provides the project url- Returns:
- String projectUrl
-
getReleaseNotes
-
getDisableBuiltInNugetFeeds
-
setAttachRobotLogs
@DataBoundSetter public void setAttachRobotLogs(boolean attachRobotLogs) attachRobotLogs- Parameters:
attachRobotLogs
- Boolean field whether to attach the robot logs
-
setDisableBuiltInNugetFeeds
-
setRepositoryUrl
-
setRepositoryCommit
-
setRepositoryBranch
-
setRepositoryType
-
setProjectUrl
-
setReleaseNotes
-
getTestResults
- Specified by:
getTestResults
in interfacehudson.tasks.junit.JUnitTask
-
getHealthScaleFactor
public double getHealthScaleFactor()- Specified by:
getHealthScaleFactor
in interfacehudson.tasks.junit.JUnitTask
-
getTestDataPublishers
- Specified by:
getTestDataPublishers
in interfacehudson.tasks.junit.JUnitTask
-
getStdioRetention
- Specified by:
getStdioRetention
in interfacehudson.tasks.junit.JUnitTask
-
getParsedStdioRetention
public hudson.tasks.junit.StdioRetention getParsedStdioRetention()- Specified by:
getParsedStdioRetention
in interfacehudson.tasks.junit.JUnitTask
-
isKeepLongStdio
public boolean isKeepLongStdio()- Specified by:
isKeepLongStdio
in interfacehudson.tasks.junit.JUnitTask
-
isKeepProperties
public boolean isKeepProperties()- Specified by:
isKeepProperties
in interfacehudson.tasks.junit.JUnitTask
-
isKeepTestNames
public boolean isKeepTestNames()- Specified by:
isKeepTestNames
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
- Specified by:
getChecksName
in interfacehudson.tasks.junit.JUnitTask
-
isSkipOldReports
public boolean isSkipOldReports()- Specified by:
isSkipOldReports
in interfacehudson.tasks.junit.JUnitTask
-