I've been looking into this, as far as how I can run selenium browser instances in the 开发者_运维技巧background. I found some things about using a virtual GUI instance, or something like that, but it was all for Windows.
I'm using Ubuntu linux so I'm wondering what the easiest way would be to suppress the actual browser instances showing up for the user who started the selenium instances since I am threading like 25 of these, at the moment, and its kind of strange / annoying having all of them open.
Thanks for any advice.
If you are using Firefox you can do *custom path/to/browser --display=:0. If you want to use other browsers and writing your tests in java you can use htmlunit and specify the capabilities. If you are using ruby you can use capybara in a similar way to htmlunit.
There is a possibility to run it in a virtual window system (Xvfb).
You might find something interesting here: http://wiki.openqa.org/display/SRC/Selenium-RC+and+Continuous+Integration
There are samples at the bottom of the page.
We're going to try that out pretty soon!
Good luck!
精彩评论