Strider-CD / strider

Open Source Continuous Integration & Deployment Server
http://strider-cd.github.io/
4.59k stars 432 forks source link

Run Selenium Tests without resorting to SauceLabs or similar #524

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi,

Looks like I can start the Selenium Server via custom scripting, but the tests don't seem to be able to fire up an instance of FireFox. Perhaps I need to install it into the instance somehow. I'm not even sure if this is possible.

Is it possible?

Regards,

Nick

kfatehi commented 10 years ago

Yes. Look into Xvfb

kfatehi commented 10 years ago

@nzdunic this may help https://registry.hub.docker.com/u/keyvanfatehi/chrome-xvfb/

ghost commented 10 years ago

Hi - thanks for the quick reply :)

Do I install xvfb into Strider somehow? Does just get installed in the host? Can I avoid Docker (for now at least)?

kfatehi commented 10 years ago

You install xvfb onto the server that runs your jobs, by default that's the same box strider sits at, and use its virtual display for your firefox. Docker is irrelevant here besides the fact that you can use my image's source files and the article it references as resources for learning more on using Xvfb for your use case.

kfatehi commented 10 years ago

@nzdunic did you get it working?

ghost commented 10 years ago

Getting there.

I’ve been trying to sign up for the hosted solution beta as this will probably be easier to manage.

The signup process doesn’t seem to work though

From: Keyvan Fatehi [mailto:notifications@github.com] Sent: Saturday, 23 August 2014 8:44 AM To: Strider-CD/strider Cc: nzdunic Subject: Re: [strider] Run Selenium Tests without resorting to SauceLabs or similar (#524)

@nzdunic https://github.com/nzdunic did you get it working?

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/524#issuecomment-53137658 . https://github.com/notifications/beacon/922154__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDM3MzgzOCwiZGF0YSI6eyJpZCI6Mzk2NDE2ODR9fQ==--d374c568ff0f2e1a6bb6f034b89b872106e3bc18.gif

kfatehi commented 10 years ago

@nzdunic i've actually setup selenium testing for Strider on our semi-official strider hosted instance -- it's working well, using a special docker image I've created for this purpose.

If you'd like, I can invite you into the instance. For safety/security purposes only the Docker runner will be available to you, but will work right out of the box. In order to use the special image you'd just need to configure the runner to use build name "knban/chrome-docker-slave"

let me know if you're interested in that and I'll gladly put some work into setting up an account -- you can shoot me an email at keyvanfatehi@gmail.com

kfatehi commented 10 years ago

here's strider being tested there -- it fires up 5 chrome browsers and webdrives them as part of the test suite :) https://strider.knban.com/strider-cd/strider/

kfatehi commented 10 years ago

by the way @nzdunic I'm now basically entrusted with reviving hosted strider -- basically you'd be the first user and will push progress in that direction -- so definitely happy to bring you on there and get your feedback :)

gavinengel commented 8 years ago

@kfatehi Do you have thoughts on automating Selenium IDE HTML tests (easier to than ruby/java/python) on a Linux server alongside Strider?

The Selenium browser type isn't a big deal to me, meaning I don't care if it's simply WebKit.

I want to include .HTML Selenium IDE (I might use Firefox to create these) inside a /tests/ directory. I want Strider to automate these tests in a localhost Selenium daemon on demand. Sauce Labs isn't necessary for these basic smoke tests.

kfatehi commented 8 years ago

@gavinengel Unfortunately I don't. It's been awhile since I've worked in this space, sorry! I'm sure running it in Xvfb will still work, but there are probably better ways to accomplish this sort of thing now (hopefully?).