Codeception is a Behavioral Driven Development test framework for PHP. With Codeception, and BDD in general for that maatter, your tests define how your application should behave in different scenarios
Getting set up
Once you have Composer, you can then follow the instructions in step 1 of Codeception's Quickstart guide, choosing whether to install for reference or global use. Once that has been taken care of, clone this repository and use these files as a skeleton for your tests with CBT using Codeception.
Setting up Acceptance Test
In order to run tests through our service, you'll need to make a few changes to the file tests/acceptance.suite.yml
In this file you'll need to first specify within the WebDriver the
url you're testing. Then within the host field, you'll need to provide your email that's associated with your CBT account where
firstname.lastname@example.org is. After the colon you'll need to replace
yourauthkey with the authkey associated with your account
There's also the option to change your
capabilities to rename/re-version your test, extend the
max_duration, or change your target browser(s).
To find the os_api_name and browser_api_name that corresponds to your targeted platform, you can either go to CrossBrowserTesting's Selenium Page, open the wizard, and watch the capabilities in the sample script change as you select different browers, OR you can parse the os/browser you want out of the JSON response from https://crossbrowsertesting.com/api/v3/selenium/browsers
If you run into any trouble or have any questions, send an email to email@example.com