Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/testingbot/php-phpunit-example
PHPUnit Example to run Selenium tests with TestingBot
https://github.com/testingbot/php-phpunit-example
php phpunit selenium webdriver
Last synced: 14 days ago
JSON representation
PHPUnit Example to run Selenium tests with TestingBot
- Host: GitHub
- URL: https://github.com/testingbot/php-phpunit-example
- Owner: testingbot
- Created: 2018-10-19T11:31:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-19T12:19:39.000Z (almost 5 years ago)
- Last Synced: 2024-12-26T02:07:39.303Z (about 1 month ago)
- Topics: php, phpunit, selenium, webdriver
- Language: PHP
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/testingbot/php-phpunit-example.svg?branch=master)](https://travis-ci.org/testingbot/php-phpunit-example)
## TestingBot - PHPUnit 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 PHPUnit 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/)
##### [PHPUnit Documentation](https://phpunit.de/documentation.html)