2

My objective is running automation based selenium webdriver from Jenkins, but jenkins cannot open browser when build job. so I modified my code to run in headless mode. since implementing headless browser, having some big question

  • is possible to handle end to end business on headless browser? cause end to end need inspect element as the process
  • if headless browser cannot handle, do you have some suggestion?

thanks, I'm very low to integrate automation

7
  • Headless is not exactly like normal chrome, few things like download files, add extension, are not yet allowed. So it may or may not work depending on tests you are executing Commented Sep 11, 2017 at 9:33
  • so headless just handle small part of automation ? @TarunLalwani Commented Sep 11, 2017 at 10:40
  • Again based on your requirement, there are test suites which completely run on Headless, its just what all your test suites need, even few websites for some reason don't work fine in headless, so you have try and see if it works for you Commented Sep 11, 2017 at 11:07
  • Instead of trying to run with headless mode. you can find the cause for not opening browser when building the job. Commented Sep 11, 2017 at 12:19
  • i thought jenkins not able to open browser so our test could be fail. i tried it before. so i just need many suggestion to make the continues integration that handle end to end functionalities @Murthi Commented Sep 12, 2017 at 2:13

1 Answer 1

2

You don't have to change the code to run a Selenium test with Jenkins in headless mode.

You can use a Jenkins plugin of a headless X server to run your tests on an installed browser. You will even get screenshots.

Sign up to request clarification or add additional context in comments.

2 Comments

i dont need to remove firefox driver ?
No. With that setup firefox sends its graphical output to an X server which is headless on Jenkins. Locally you can run the same code with graphical output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.