I have a Selenium test automation project with Fitnesse and Java, built in a Windows environment. I am trying to set up a Gitlab CI pipeline to run my tests. I have the Gitlab runner installed on an on-prem Windows virtual machine that I log into with a service account.
There is a test case that clicks on a button on a page, a pdf file is downloaded, and then the test case verifies that the pdf downloaded and opens it to verifies the contents.
The test runs fine on my local machine and Chrome downloads it to my C:UsersvinceDownloads folder
. However, in the pipeline, it fails and reports that the location tried was C:Windowssystem32configsystemprofileDownloads
which is obviously not right.
I have been trying to figure out where the file is downloaded, to no avail. I have tried checking the Downloads folder of the host machine, multiple temp folders in Windows, the gitlab runner folder builds<token><ID>gitlab<project><projectname>
and even tried searching for the file name in File Explorer after it was presumably downloaded during the pipeline run. What am I missing? Is there some kind of Gitlab runner environment I need to check in?