Top "Behat" questions

Behat is a php framework for autotesting your business expectations.

Mocking The Time used by all instances of DateTime for testing purposes

I'd like to be able to set the time for every instance of DateTime instantiated for the duration of a …

php testing datetime phpunit behat
How do I run a specific Behat scenario

I'm trying to run a specific Behat scenario from the command line, here's what I'm doing: $ bin/behat features/features/…

php behat
Scenario vs. Scenario Outline

Background: I'm currently writing behat tests (Mink/Selenium) for a Symfony2 webpage. I have a good deal of examples to …

php behat
PHPUnit & Behat; complementing or alternatives?

I have been looking around SO and Google, but I couldn't really get a definitive answer. PHPUnit is a framework …

php phpunit bdd behat mink
How to make Behat wait for an AJAX call?

Scenario: Modify and save an incomplete change to a Campaign Given I click on the Campaign section folder And I …

php ajax bdd behat
build.xml to set date and time as file name

I want to set file name with date and time attached to it so I want to create file named …

ant behat phing
How can i click a span in Behat?

I am using Behat to test an third-party webshop. I have a item in the shoppingcart that i want to …

html testing click behat mink
Behat/Mink with Selenium 2 throws "Could not open connection"

I've started writing Acceptance Tests with Behat, Mink Extension, Selenium 2 and Symfony. I've followed the instructions, which can be seen …

symfony selenium behat mink
Behat 3 - `FeatureContext` context class not found and can not be used

I have tried Behat 2.5 in the past and had no issues setting it up, but now I just downloaded Behat 3 …

php composer-php autoload behat
How to debug features in Behat 3 with echo

I am trying to debug a feature in Behat 3 to see what is going on. Echo statements don't seem to …

php debugging bdd behat