TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver. This example demonstrates how to use Behat to run tests across several browsers.
This example uses Behat 2. We also have a Behat 3 Example
- Clone this repo:
git clone https://github.com/testingbot/behat-selenium-sample.git
- Install composer:
curl http://getcomposer.org/installer | php
- Install Behat and the required dependencies with composer:
php composer.phar install
Add TestingBot Key and Secret to config/single.conf.yml
You can find these in the TestingBot Dashboard.
- To run a single test, run
php composer.phar single
- To run parallel tests, run
php composer.phar parallel