Skip to content

testingbot/php-phpunit-mobile-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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

  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.
    $ export TB_KEY=<your TestingBot Key>
    $ export TB_SECRET=<your TestingBot 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

Resources

About

PHPUnit Mobile App Testing with TestingBot

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages