Class UiPathTest

    • 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 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 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 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:
        java.lang.InterruptedException - if the step is interrupted
        java.io.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 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 interface hudson.tasks.junit.JUnitTask
      • getHealthScaleFactor

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

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

        public boolean isKeepLongStdio()
        Specified by:
        isKeepLongStdio 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 java.lang.String getChecksName()
        Specified by:
        getChecksName in interface hudson.tasks.junit.JUnitTask
      • isSkipOldReports

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