Forum Discussion

hmckay's avatar
hmckay
New Contributor
4 years ago

Selenium Upload File Not Found

I am new to CBT and am running existing Selenium tests that we run locally for the first time on the remote server.  Tests that are trying to upload a file are failing because when running on the server it is using the local path to search for the file it does not have.  Since the file itself can be anything I looked around on the virtual machine to see if there were any default files to use(jpgs, etc), but did not see anything available.

 

So my questions are:

1.  Is there a configuration setting that needs to be done so the remote server can locate the file on the local machine? or maybe use the tunnel?

2.  Is there a way to upload a file to the server via automation as part of the setup and then reference the path on the virtual machine itself?

3.  Are there any default generic jpg, pdf, etc files that already exist on the virtual machines that could be used instead?