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
- Host: GitHub
- URL: https://github.com/testingbot/php-codeception-example
- Owner: testingbot
- Created: 2018-10-19T14:36:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T14:16:05.000Z (about 5 years ago)
- Last Synced: 2025-01-19T19:17:11.773Z (3 months ago)
- Topics: codeception, php, selenium, webdriver
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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)