Sim1
Sim1

Reputation: 532

Jenkins run Selenium tests on background

I have Jenkins installed on a Windows Server 2012 machine running my selenium tests written in Java, but when I run the test I cannot see any browser opening (the tests won't fail at start but at some point the interaction fails, also all the screenshots are black).

I've read some guides and I've tried to install a slave node on the same machine but the result didn't changed.

Any suggestion?

I've noticed that the browser is opened with a different user (system) and maybe this could be the problem.

Upvotes: 1

Views: 1652

Answers (1)

Jim Holmes
Jim Holmes

Reputation: 1690

You really didn't give a lot of info, but here's some thoughts:

  1. If you're using Chrome or IE, you'll need the appropriate server app available on your path. Download those here.
  2. Consider running your tests on a different system from the Jenkins server. There's enough going on that system already. Use RemoteWebDriver on a small VM or unused system somewhere. Good overview docs for it are here.

Upvotes: 1

Related Questions