Tag Archives: saucelabs

Running the Testing framework with Saucelabs and TravisCI

Saucelabs Test Video

TravisCI Log

Documentation:

TravisCI Java

TravisCI Encryption

This again was pretty straight forward. After signing up with TravisCI using my GitHub account I just had to add the .travis.yml file to the repository. Make sure to configure the travis file correctly and if need to be you can also add encrypted information. I happened to commit my access key, but TravisCI does offer encryption options. I’ll just have to go back and regenerate a new one 🙂

 

Advertisements

Configuring SauceLabs with Selenium and Serenity

GitHub Example Repository

Saucelabs Selenium Test

Serenity makes life pretty easy because it integrates well with Saucelabs. It’s as simple as adding the credentials and browser information into the serenity.properties file.

A useful tool is the list of platforms. Saucelabs only provides a certain variety of OS/Browser combinations so you have to make sure to run the correct combination. Also on the Saucelabs website we can find WIN7, however in Selenium WIN7 is not a valid enum, so we have to use vista instead. Here’s the list of valid platforms directly from Selenium source.

For example:

## Firefox 
## https://saucelabs.com/beta/tests/a604701041db440697fdd7148fcc6ff3/watch
saucelabs.test.name=OpenSourceTest_1
webdriver.driver=firefox
saucelabs.url=http://<username>:<key>@ondemand.saucelabs.com:80/wd/hub
saucelabs.target.platform=WIN8
saucelabs.driver.version=42
saucelabs.access.key=<key>
saucelabs.user.id=<username>

##Internet Explorer 10
## https://saucelabs.com/beta/tests/36bbc3ebb45a48fb9a97da8046aa7dfd/watch
saucelabs.test.name=OpenSourceTest_1
webdriver.driver=iexplorer
saucelabs.url=http://<username>:<key>@ondemand.saucelabs.com:80/wd/hub
saucelabs.target.platform=WIN8
saucelabs.driver.version=10
saucelabs.access.key=<key>
saucelabs.user.id=<username>

##Internet Explorer 9
## https://saucelabs.com/beta/tests/c1ba02f7182f43f6895f0563ad843745/watch
saucelabs.test.name=OpenSourceTest_1
webdriver.driver=iexplorer
saucelabs.url=http://<username>:<key>@ondemand.saucelabs.com:80/wd/hub
saucelabs.target.platform=vista
saucelabs.driver.version=9
saucelabs.access.key=<key>
saucelabs.user.id=<username>