An open API service indexing awesome lists of open source software.

https://github.com/testingbot/php-codeception-example

PHP CodeCeption Example to run Selenium tests with TestingBot
https://github.com/testingbot/php-codeception-example

codeception php selenium webdriver

Last synced: about 1 month ago
JSON representation

PHP CodeCeption Example to run Selenium tests with TestingBot

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/testingbot/php-codeception-example.svg?branch=master)](https://travis-ci.org/testingbot/php-codeception-example)

## TestingBot - CodeCeption Example

TestingBot provides an online grid of browsers and mobile devices to run Automated tests on via Selenium WebDriver.
This example demonstrates how to use PHP with CodeCeption to run a test in parallel across several browsers.

### Environment Setup

1. Global Dependencies
* Install [Composer](https://getcomposer.org/download/)
```
curl http://getcomposer.org/installer | php
```

2. Project Dependencies
* Clone the repository
* Install all dependencies `composer install`

3. TestingBot Credentials
* Add your TestingBot Key and Secret as environmental variables. You can find these in the [TestingBot Dashboard](https://testingbot.com/members/).
```
$ export TB_KEY=
$ export TB_SECRET=
```

### Running Tests

* To run a single test, run `composer single`
* To run parallel tests, run `composer parallel`

You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)

### Resources
##### [TestingBot Documentation](https://testingbot.com/support/)

##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)

##### [CodeCeption Documentation](https://codeception.com/docs/01-Introduction)