Gitlab for test execution

We have to run our test cases after deployment for sanity purpose. How can we run via gitlab? Is there any document or steps to follow

Hi @pushkar.singh1

  1. Create a GitLab repository to store your UiPath project and test files. You can initialize a new repository or use an existing one.
  2. In your GitLab repository, create a .gitlab-ci.yml file to define your CI/CD pipeline. This file specifies the stages, jobs, and commands required to run your UiPath test cases. Here is a sample configuration:

stages:

  • deploy
  • test

deploy_job:
stage: deploy
script:
- echo “Deploy your application here”

test_job:
stage: test
script:
- echo “Running UiPath test cases”
- # Add commands to execute your UiPath test cases

  1. In the test_job section of the .gitlab-ci.yml file, add the necessary commands to execute your UiPath test cases. This can involve using the UiRobot command-line tool to run your test automation workflows like this-

test_job:
stage: test
script:
- echo “Running UiPath test cases”
- UiRobot.exe -file “path/to/your/test_workflow.xaml”

Thanks!

Any page how to write test_job commands.

Hallo Nitya1,

I did exactly like you are explaining. You miss the command parameter, though, which is “execute”. However, when Gitlab runner executes the command, it got Access denied error.
I try to elevate the access using icacls command, but still no result. Do you have any idea how to bypass the restriction? Thank you very much.