Class 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.
  • 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 URL
      orchestratorTenant - UiPath Orchestrator tenant
      folderName - Folder Name
      testTarget - Test target
      credentials - UiPath Orchestrator credentials
      testResultsOutputPath - Test result output path (JUnit format)
      timeout - Timeout
      traceLevel - 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

      public 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 InterruptedException, IOException
      Run this step.
      Specified by:
      perform in interface SimpleBuildStep
      Parameters:
      run - a build this is running as a part of
      workspace - a workspace to use for any file operations
      launcher - a way to start processes
      listener - a place to send output
      Throws:
      InterruptedException - if the step is interrupted
      IOException - if something goes wrong
    • getRequiredMonitorService

      public BuildStepMonitor getRequiredMonitorService()
      Declares the scope of the synchronization monitor this BuildStep 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 use CheckPoints to perform necessary synchronizations.
      Specified by:
      getRequiredMonitorService in interface BuildStep
      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 String getOrchestratorAddress()
      Orchestrator URL
      Returns:
      String orchestratorAddress
    • getFolderName

      public String getFolderName()
      Orchestrator Folder
      Returns:
      String folderName
    • getOrchestratorTenant

      public String getOrchestratorTenant()
      Orchestrator Tenant
      Returns:
      String orchestratorTenant
    • getTestResultsOutputPath

      public String getTestResultsOutputPath()
      Test result output path
      Returns:
      String testResultsOutputPath
    • getTraceLevel

      public TraceLevel getTraceLevel()
      traceLevel
      Returns:
      TraceLevel traceLevel
    • getParametersFilePath

      public String getParametersFilePath()
      parametersFilePath
      Returns:
      String parametersFilePath
    • getAttachRobotLogs

      public boolean getAttachRobotLogs()
      attachRobotLogs
      Returns:
      boolean attachRobotLogs
    • getRepositoryUrl

      public String getRepositoryUrl()
      Provides the repository url
      Returns:
      String repositoryUrl
    • getRepositoryCommit

      public String getRepositoryCommit()
      Provides the repository commit
      Returns:
      String repositoryCommit
    • getRepositoryBranch

      public String getRepositoryBranch()
      Provides the repository branch
      Returns:
      String repositoryBranch
    • getRepositoryType

      public String getRepositoryType()
      Provides the repository type
      Returns:
      String repositoryType
    • getProjectUrl

      public String getProjectUrl()
      Provides the project url
      Returns:
      String projectUrl
    • getReleaseNotes

      public String getReleaseNotes()
    • getDisableBuiltInNugetFeeds

      public Boolean getDisableBuiltInNugetFeeds()
    • setAttachRobotLogs

      @DataBoundSetter public void setAttachRobotLogs(boolean attachRobotLogs)
      attachRobotLogs
      Parameters:
      attachRobotLogs - Boolean field whether to attach the robot logs
    • setDisableBuiltInNugetFeeds

      @DataBoundSetter public void setDisableBuiltInNugetFeeds(Boolean disableBuiltInNugetFeeds)
    • setRepositoryUrl

      @DataBoundSetter public void setRepositoryUrl(String repositoryUrl)
    • setRepositoryCommit

      @DataBoundSetter public void setRepositoryCommit(String repositoryCommit)
    • setRepositoryBranch

      @DataBoundSetter public void setRepositoryBranch(String repositoryBranch)
    • setRepositoryType

      @DataBoundSetter public void setRepositoryType(String repositoryType)
    • setProjectUrl

      @DataBoundSetter public void setProjectUrl(String projectUrl)
    • setReleaseNotes

      @DataBoundSetter public void setReleaseNotes(String releaseNotes)
    • getTestResults

      public String getTestResults()
      Specified by:
      getTestResults in interface hudson.tasks.junit.JUnitTask
    • getHealthScaleFactor

      public double getHealthScaleFactor()
      Specified by:
      getHealthScaleFactor in interface hudson.tasks.junit.JUnitTask
    • getTestDataPublishers

      public List<hudson.tasks.junit.TestDataPublisher> getTestDataPublishers()
      Specified by:
      getTestDataPublishers in interface hudson.tasks.junit.JUnitTask
    • getStdioRetention

      public String getStdioRetention()
      Specified by:
      getStdioRetention in interface hudson.tasks.junit.JUnitTask
    • getParsedStdioRetention

      public hudson.tasks.junit.StdioRetention getParsedStdioRetention()
      Specified by:
      getParsedStdioRetention in interface hudson.tasks.junit.JUnitTask
    • isKeepLongStdio

      public boolean isKeepLongStdio()
      Specified by:
      isKeepLongStdio in interface hudson.tasks.junit.JUnitTask
    • isKeepProperties

      public boolean isKeepProperties()
      Specified by:
      isKeepProperties in interface hudson.tasks.junit.JUnitTask
    • isKeepTestNames

      public boolean isKeepTestNames()
      Specified by:
      isKeepTestNames in interface hudson.tasks.junit.JUnitTask
    • isAllowEmptyResults

      public boolean isAllowEmptyResults()
      Specified by:
      isAllowEmptyResults in interface hudson.tasks.junit.JUnitTask
    • isSkipPublishingChecks

      public boolean isSkipPublishingChecks()
      Specified by:
      isSkipPublishingChecks in interface hudson.tasks.junit.JUnitTask
    • getChecksName

      public String getChecksName()
      Specified by:
      getChecksName in interface hudson.tasks.junit.JUnitTask
    • isSkipOldReports

      public boolean isSkipOldReports()
      Specified by:
      isSkipOldReports in interface hudson.tasks.junit.JUnitTask