behat

Events happening in the community are now at Drupal community events on www.drupal.org.
VenDG's picture

Attempting Blackbox Driver Test

I have installed Behat on my pc and I am using the feature from the blackbox driver page @ http://dspeak.com/drupalextension/blackbox.html for my first Drupal site test.

Scenario 7 is failing:

Scenario: Error messages
# features\drupalcontext.feature:35
Given I am on "/user"
# FeatureContext::visit()
When I press "Log in"
# FeatureContext::pressButton()
Then I should see the error message "Password field is required"

Read more
yurtboy's picture

Some helpful Behat custom steps we have

Just wanted to start sharing some of the hurdles we have come across testing sites and some solutions to dealing with things like Alerts, New Windows, Duplicate Classes etc. Feel free though to let me know if there are better ways!

Read more
marcus_clements's picture

Using Behat, Mink, Drupal Extension to regression test a D7 multisite

In my last role we used a comprehensive suite of functional tests written in Cucumber using Capybara and Selenium to help discover regression errors.

In my new role I am working with a D7 multisite with 40+ sites and I want to use Behat and Mink for the same job. My plan is to write a set of tests that check the key functionality of all the sites which will run on our dev and staging servers after deploying a release candidate.

I've got some basic tests running fine using the Goutte driver.

Read more
christophernies's picture

Access denied when attempting to create a node. Sort of.

Hi everyone! I'm a QA Engineer working on a local copy of Drupal 7.22. I'm trying to learn Behat (I have no PHP or BDD experience) - we've got it up and running with the Drupal Extension, and I am using the drupal driver (as opposed to drush) so that I can utilize steps for creating nodes. However, I'm not able to create nodes using the Drupal Extension step definitions.

Read more
frank ralf's picture

Blogpost: "Installing the Drupal Extension for Behat"

I've already posted this link elsewhere but as it is not only relevant for Windows users I post it again: http://comm-press.de/en/blog/installing-drupal-extension-behat

Read more
PseudoNimh's picture

Setting up Behat on Windows

A lot of current installation instructions for Behat seem to imply that a user is either using a flavour of Linux or OSX. However, not all developers have that options and some are using Windows.

Read more
tunic's picture

Which behat module to use?

There are several modules in Drupal.org about Behat:

  • behat: Last commit 25 weeks ago. It allows you to write feature tests for a Drupal site using SimpleTest API functions and assertions in step definitions.
  • behat_testing: Last commit 15 weeks ago. Integrates behat with drush and adds own step definitions for Drupal.
  • drupalextension: Last commit 1 week ago. Provides a DrupalExtension with Drupal step definitions.
  • doobie: Last commit 1 week ago. It seems to be used to test Drupal,org site with behat.
Read more
Subscribe with RSS Syndicate content