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 ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested 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
ConstructorsConstructorDescriptionUiPathTest(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 TypeMethodDescriptionbooleanattachRobotLogsCredentials, appearing as choice and will be responsible to extract credentials and use for orchestrator connectionOrchestrator FolderdoubleOrchestrator URLOrchestrator TenantparametersFilePathhudson.tasks.junit.StdioRetentionProvides the project urlProvides the repository branchProvides the repository commitProvides the repository typeProvides the repository urlDeclares the scope of the synchronization monitor thisBuildStepexpects from outside.List<hudson.tasks.junit.TestDataPublisher>Test result output pathTest target to be executed on the OrchestratorGets the timeout.traceLevelbooleanbooleanbooleanbooleanbooleanbooleanvoidRun this step.voidsetAttachRobotLogs(boolean attachRobotLogs) attachRobotLogsvoidsetDisableBuiltInNugetFeeds(Boolean disableBuiltInNugetFeeds) voidsetProjectUrl(String projectUrl) voidsetReleaseNotes(String releaseNotes) voidsetRepositoryBranch(String repositoryBranch) voidsetRepositoryCommit(String repositoryCommit) voidsetRepositoryType(String repositoryType) voidsetRepositoryUrl(String repositoryUrl) Methods inherited from class hudson.tasks.Recorder
getDescriptorMethods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, perform, prebuildMethods 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:
performin 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 thisBuildStepexpects from outside.BuildStepMonitor.NONENo 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 useCheckPoints to perform necessary synchronizations.- Specified by:
getRequiredMonitorServicein 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:
getTestResultsin interfacehudson.tasks.junit.JUnitTask
-
getHealthScaleFactor
public double getHealthScaleFactor()- Specified by:
getHealthScaleFactorin interfacehudson.tasks.junit.JUnitTask
-
getTestDataPublishers
- Specified by:
getTestDataPublishersin interfacehudson.tasks.junit.JUnitTask
-
getStdioRetention
- Specified by:
getStdioRetentionin interfacehudson.tasks.junit.JUnitTask
-
getParsedStdioRetention
public hudson.tasks.junit.StdioRetention getParsedStdioRetention()- Specified by:
getParsedStdioRetentionin interfacehudson.tasks.junit.JUnitTask
-
isKeepLongStdio
public boolean isKeepLongStdio()- Specified by:
isKeepLongStdioin interfacehudson.tasks.junit.JUnitTask
-
isKeepProperties
public boolean isKeepProperties()- Specified by:
isKeepPropertiesin interfacehudson.tasks.junit.JUnitTask
-
isKeepTestNames
public boolean isKeepTestNames()- Specified by:
isKeepTestNamesin interfacehudson.tasks.junit.JUnitTask
-
isAllowEmptyResults
public boolean isAllowEmptyResults()- Specified by:
isAllowEmptyResultsin interfacehudson.tasks.junit.JUnitTask
-
isSkipPublishingChecks
public boolean isSkipPublishingChecks()- Specified by:
isSkipPublishingChecksin interfacehudson.tasks.junit.JUnitTask
-
getChecksName
- Specified by:
getChecksNamein interfacehudson.tasks.junit.JUnitTask
-
isSkipOldReports
public boolean isSkipOldReports()- Specified by:
isSkipOldReportsin interfacehudson.tasks.junit.JUnitTask
-