Setup:
The Job that I'm executing is a selenium script, which opens a chrome instance on "B"
This is what I'm doing when it works:
This is when it DOES NOT work:
Now if I log into "B" while the job is still running, as soon as I log in, I can see the chromedriver cmd appear and a chrome instance is brought up and the job is run and completes with no issues.
Does anybody know what could be causing this? Thanks!
We had tests that passed only when I was logged on the machine. Turned out that the test needed interactive desktop. In order to keep the session, you can make a bat file that you can use when you logout of the machine in order to keep the session interactive.
tscon %sessionname% /dest:console
Reference:
https://www.automatetheplanet.com/visual-studio-test-agents-cleaning-scripts/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.