Answer the question
In order to leave comments, you need to log in
How to run c# Selenium tests via GitLab Runner?
that's the problem, there is a simple Selenium test (Sharp) on the test machine, there is just a Powershell script on the same machine that will run the test
Start-Process -FilePath "C:\Users\Username\Desktop\publish\PowerTests.exe" -wait -verb runas
name = "MyTestRunner"
url = "https://gitlab.ru/"
token = "Token"
executor = "shell"
shell = "powershell"
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.custom]
run_exec = ""
demo_test:
image:
name: "mcr.microsoft.com/powershell:latest"
tags:
- myName
script:
- powershell -Command "Get-Date"
- powershell -File C:\Users\Username\Desktop\start.ps1
- powershell ./start.ps1
Running with gitlab-runner 12.1.0 (-----)
on myName
Using Shell executor...
00:00
Running on MachineName...
00:01
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in C:/Work/GitLab-Runner/builds/2UPXqpDu/0/Username/tests/.git/
Checking out ------as master...
git-lfs/2.11.0 (GitHub; windows amd64; go 1.14.2; git 48b28d97)
Skipping Git submodules setup
$ powershell ./start.ps1
$ powershell -Command "Get-Date"
22 ������ 2021 �. 18:56:21
$ powershell -File C:\Users\Username\Desktop\start.ps1
22 ������ 2021 �. 18:56:21
$ Start-Process -File C:\Users\Username\Desktop\start.ps1
$ "C:\Users\Username\Desktop\start.ps1"
C:\Users\Username\Desktop\start.ps1
Job succeeded
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question