Name: codeception-example
Owner: Sauce Labs
Description: Example Codeception test configured to run on TestObject
Created: 2016-12-12 13:54:46.0
Updated: 2018-04-02 00:12:23.0
Pushed: 2018-03-18 19:35:58.0
Homepage: null
Size: 2871
Language: PHP
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
An example codeception test configured to run on TestObject.
You then need to set environment variables like the device, appium version, and api key:
rt TESTOBJECT_API_KEY=your api key
rt APPIUM_URL=appium.testobject.com
rt PLATFORM_NAME=ANDROID or IOS
rt PLATFORM_VERSION=platform version of the used device e.g. '10'
cd your/path/codeception-example
./codecept.phar build
or php codecept.phar build
./codecept.phar run
or php codecept.phar run
to run it with basic capabilities./codecept.phar run --env staging
, php codecept.phar run --env static
or php codecept.phar run --env specific_appium_version
to use a specific device or don't use --env
(the configuration file: acceptance.suite.yml
).Alternatively, tests can be run using docker:
cker-build.sh
cker-run.sh <api key> <platform name> <platform version> <appium url>
ple: ./docker-run.sh 01234567890123456789012345 IOS "'10'" appium.testobject.com
Codeception can be downloaded with wget: wget http://codeception.com/codecept.phar