forked fromBehatch/contexts
- Notifications
You must be signed in to change notification settings - Fork0
Behat extension with most custom helper steps
License
NotificationsYou must be signed in to change notification settings
rtlnl/contexts
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Behatch contexts provide most common Behat tests.
This extension requires:
- Behat 3+
- Mink
- Mink extension
- Install Composer
- Require the package with Composer:
$ composer require --dev behatch/contexts
- Activate extension by specifying its class in your
behat.yml
:
# behat.ymldefault:# ...extensions:Behatch\Extension:~
- Download the Behatch skeleton with composer:
$ php composer.phar create-project behatch/skeleton
Browser, json, table and rest step need a mink configuration, seeMinkextension for more information.
Inbehat.yml
, enable desired contexts:
default:suites:default:contexts: -behatch:context:browser -behatch:context:debug -behatch:context:system -behatch:context:json -behatch:context:table -behatch:context:rest -behatch:context:xml
This project is self-tested, you can explore thefeaturesdirectory to find some examples.
browser
- more browser related steps (like mink)timeout
- default timeout
debug
- helper steps for debuggingscreenshotDir
- the directory where store screenshots
system
- shell related stepsroot
- the root directory of the filesystem
json
- JSON related stepsevaluationMode
- javascript "foo.bar" or php "foo->bar"
table
- play with HTML the tablesrest
- send GET, POST, ... requests and test the HTTP headersxml
- XML related steps
For example, if you want to change default directory to screenshots - you can do it this way:
default:suites:default:contexts: -behatch:context:debug:screenshotDir:"var"
About
Behat extension with most custom helper steps
Resources
License
Stars
Watchers
Forks
Packages0
No packages published
Languages
- Gherkin57.6%
- PHP42.4%