Skip to content

Instantly share code, notes, and snippets.

@carltondickson
Last active April 28, 2016 09:10
Show Gist options
  • Save carltondickson/fd5a4f41a6e11384e0d6 to your computer and use it in GitHub Desktop.
Save carltondickson/fd5a4f41a6e11384e0d6 to your computer and use it in GitHub Desktop.
Codeception 2.0
# Install Java 7 JDK and create an alias if needed
alias selenium_start='java -jar ./selenium-server-standalone-2.48.2.jar'
# Useful notes "codeception/codeception": "~2.0"
The AcceptanceTester parameter passed into the tests is a class that is generated dynamically, if web driver is used as a module then the web driver functions will be available in the auto complete
# Running tests in general
http://codeception.com/docs/02-GettingStarted#Running-Tests
# Running tests for specific environments
http://codeception.com/docs/07-AdvancedUsage#Environments
# Useful notes
## Cheat sheet for using php webdriver (facebook/webdriver)
https://gist.github.com/aczietlow/7c4834f79a7afd920d8f
# Useful commands
./vendor/bin/codecept run --env live --html all.html (Run all tests)
./vendor/bin/codecept run acceptance --env live --html all.html (Run 'acceptance' suite of tests)
./vendor/bin/codecept generate:pageobject transactionManager (Create page object)
./vendor/bin/codecept generate:stepobject acceptance (Create step object)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment