saucelabs/codeception-example

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Codeception Example

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'
Run:
  1. set all the suitable environment variables for your test setup (see 4).
  2. navigate to project path cd your/path/codeception-example
  3. biuld it using ./codecept.phar build or php codecept.phar build
  4. use ./codecept.phar run or php codecept.phar run to run it with basic capabilities
  5. to run it with the staging capabilities use ./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).
Running with docker

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
Downloading codeception

Codeception can be downloaded with wget: wget http://codeception.com/codecept.phar


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.