- Piotr Pelczar (me [at] athlan.pl)
- You can find me on: LinkedIn, Stack Overflow
Scenarios are placed under /features/
directory. Each feature is describd by .feature file
.
To run all Behat scenarios, just run from application directory:
$ bin/behat
To run Behat scenarios from given tag, just run:
$ bin/behat --tags tag_name
where tag_name is your @tag_name
tagged features.
-
User interface: http://localhost/symfony2-behat-example/web/app_dev.php/
-
API interactive documentation: http://localhost/symfony2-behat-example/web/app_dev.php/api/doc/
-
There are two users:
Username Password Role Greg a User Katie a User
-
You can find Behat configuration under:
- /behat.yml - Definitions of Features groupped by Suites. Each suite uses contexts.
- /features - List of features written in Gearman in
*.feature
files
-
You can find possible sentences defined in Contexts:
-
You can find fixtres (initial data) under:
-
Sample features definitions under:
You should check these aspects:
-
User interface:
- Current page URL's and redirection URL's
- Listing contents after CRUD operation
- Response codes while testing security
- Invalid values while submitting forms (CRUD)
-
API:
- Response codes
- Response contents
- Invalid values while CRUD
Application code is under:
cd /var/www/html/symfony2-behat-example