Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/testingbot/php-phpunit-mobile-example
PHPUnit Mobile App Testing with TestingBot
https://github.com/testingbot/php-phpunit-mobile-example
appium mobile phpunit testing
Last synced: 14 days ago
JSON representation
PHPUnit Mobile App Testing with TestingBot
- Host: GitHub
- URL: https://github.com/testingbot/php-phpunit-mobile-example
- Owner: testingbot
- Created: 2019-09-19T09:52:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-19T11:19:26.000Z (over 5 years ago)
- Last Synced: 2024-12-26T02:07:39.386Z (about 1 month ago)
- Topics: appium, mobile, phpunit, testing
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/testingbot/php-phpunit-mobile-example.svg?branch=master)](https://travis-ci.org/testingbot/php-phpunit-mobile-example)
## TestingBot - PHPUnit Mobile Example
TestingBot provides a grid of browsers and mobile devices to run Automated tests.
This example demonstrates how to use PHP with PHPUnit to run tests on Real Mobile Devices.### Environment Setup
1. Global Dependencies
* Install [Composer](https://getcomposer.org/download/)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=
```### Uploading your App
To start testing your .apk or .ipa mobile app, please upload it to TestingBot Storage:
```
curl -u "key:secret" -X POST "https://api.testingbot.com/v1/storage" -F "file=@/path/to/app/file/Application.ipa"
```You will receive a unique hash which you can use in the desired 'app' capability of your tests.
### Running Tests
* To run a single test, run `composer ios_single`
* To run parallel tests, run `composer android_parallel`You will see the test result in the [TestingBot Dashboard](https://testingbot.com/members/)
### Resources
##### [TestingBot Documentation](https://testingbot.com/support/mobile/php.html)##### [SeleniumHQ Documentation](http://www.seleniumhq.org/docs/)
##### [PHPUnit Documentation](https://phpunit.de/documentation.html)