Selenium integration tests

Selenium is one of the most popular regression testing tools. You can use it to test the integrity of your websites against Chrome and Firefox browsers by activating the service in your builds. This article will tell you how to properly configure Buddy to support Selenium tests.

  1. Add a new project, choose your Git provider, and select the repository that you want to use:

    Selecting Git provider and project
  2. When the project is ready, go to the Pipelines tab and Add a new pipeline. Integration tests usually take a while to finish, so the best idea is to change the trigger mode to Recurrent and set the Start date and Interval in which they will be executed to, eg. once a day at 2AM. When you’re done, select the branch that you want to test:

    Configuring pipeline details
  3. Go down to the builds section and add the general Build action:

    Adding Build action
  4. Switch to the Services tab and select SeleniumChrome or SeleniumFirefox:

    Enabling Selenium service
  5. Copy the Host and Port of the selected service:

    Selenium details
  6. Use the details to configure your tests. Here’s an example for the WebdriverIO config file:

      # Node.js + WebdriverIO example
         desiredCapabilities: {
         browserName : 'chrome'
         host: 'selenium-ch',
         port: 4444
  7. Switch to the Packages & Setup tab and install any missing frameworks required to run your tests + enter the commands that will launch Selenium in the commands field. Click Add this action when ready:

    Commands and Packages setup

Once the pipeline is configured, Buddy will automatically test your website every night. You can add more actions to the pipeline if you wish: for example, you can add an email or Slack notification that will inform you if the tests have finished successfully or failed.

Get started now

14 days of unlimited trial. No credit card required.