Sauce Labs and Solano CI: Browser and Mobile Testing Made Simple and Secure

Ensuring that your app works across all the devices, operating systems, and browsers that your users can access it is a daunting task. Market share figures from Net Applications will tell you that Internet Explorer still reigns supreme, while StatCounter will tell you that Chrome won the browser war globally a long time ago. The sure shot way to ensure that your end-user experience is sound is by testing across the major platforms used by your users to access your app. Fortunately, our friends at Sauce Labs offers an industry-leading platform in solving this problem, and automating the Sauce Labs workflow in Solano CI is easy and secure.

saucelabs_automated_test_configuratiorSauce Labs – What do they do?
Sauce Labs lets users run Selenium, Appium and JavaScript unit tests across 650+ browser and OS platforms at scale without setting up or maintaining dedicated testing infrastructure. Many of our customers run an initial round of Selenium tests with a couple of browsers on Solano CI, but Sauce Labs makes available all the different versions of browsers and OS platforms that you’ll ever need. In addition to mobile emulators and simulators, they’ve recently added real mobile devices to their offering.

Test Securely via Sauce Connect

Sauce Connect is a secure tunneling app which allows you to execute tests securely when testing behind firewalls via a secure connection between Sauce Labs’ client cloud and Solano CI. Sauce Connect allows you to test staged apps behind a firewall while maintaining control of proxy and policies. To use Sauce Connect in Solano CI, there are only two things you need to do:

  1. Set the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables for your builds. The solano config:add command should be used to set sensitive environment variables.
  2. Ensure you have the latest version of Sauce Connect installed and start it as a background process for your workers. This can be done by merging the following setup hooks in your solano.yml configuration file. Our karma-sauce-example repository is a working demonstration of using Sauce Connect in this manner.

One Step Closer to Continuous Delivery

Now that you have successfully setup your continuous integration workflow to test your changes across all the things, the next step toward a continuous delivery workflow would be to automate your deployment. Solano CI offers a multitude of options for deployment, from running your deploy script to deep integrations with cloud infrastructure partners like Amazon Web Services, Heroku, and Engine Yard. Check out our docs on Deployment and Post-Build for more info. As always, ping us at if you have any questions or comments!

Post a Comment