Mar 2015 User Group and Lab Hours

Events happening in the community are now at Drupal community events on www.drupal.org.
wylbur's picture
Start: 
2015-03-25 17:00 - 21:00 America/Menominee
Organizers: 
Event type: 
User group meeting

Another month and another meeting! We will have a Midcamp Retrospective, and Les Lim will be presenting on Behat Testing.

Community Lab Hours | 5pm - 7pm

Right before the monthly TCDUG meetup, join your local Drupal community peers for an open Lab Hours session Wednesday from 5-7pm. If you have a question, we will have an answer!

Twin Cities Drupal User Group meetup | 7pm - 9pm

Sponsored by Advantage Labs

Behat Testng Framework

After attending an amazing session at Midcamp, Les Lim has become a Behat convert. He will present a demonstration of the Behat testing framework with Drupal Extension.

Midcamp Retrospective

A number of local Drupalites attended Midcamp on March 19-21st. We'll take part of the meeting for them to report back on what they saw/learned/experienced.

Please signup, we will order pizza. Feel free to bring beer or drinks to share.

TCDUG and Community Lab Hours meetups take place at:

Intermedia Arts
2822 Lyndale Ave S
Minneapolis, MN 55408
map & directions

This is near the corner of Lake and Lyndale. There is parking in the lot to the right of the building (north side).

Comments

Topic?

les lim's picture

I can put together a demonstration of the Behat testing framework with Drupal Extension -- I haven't done a great deal with it yet, but I'm super excited to figure out how to make it part of our development workflow.

We should also definitely have a "Best of Midcamp" retrospective.

I Can't Wait

stpaultim's picture

This topic is so good, that even after spending 14 hours in a Honda Fit with Les last weekend, I'm still excited to hear his talk!

Unless he had totally mislead me, this could exactly the tool I've been looking for to test the registration process on a site that I've helped support. This site has a complicated registration process and is getting updates continuously. If BeHat is what I think it is, it could help us write (without code) automated tests that we can run each time we update the registration process!

Please Les, don't let me down!

:-)

Tim Erickson
Triplo

Resources and docs

les lim's picture

Behat intro and developer docs: http://docs.behat.org/en/v3.0/

Behat Drupal Extension docs: https://behat-drupal-extension.readthedocs.org/en/3.0/

Follow the "Stand-alone installation" instructions from the "Behat Drupal Extension" docs.

Our example feature:

Feature: Individual registrations
  In order to be able to attend camp
  As a anonymous user
  I need to be able to complete the registration process

  # "Background" steps are shared set-up steps that are prepended to each
  # individual scenario within this Feature.
  Background:
    Given I am an anonymous user

  # I can tag individual scenarios with "@" followed by the name of the tag.
  # Tags are useful for categorizing scenarios so that they can be run in
  # groups. Extensions like Drupal Extension can also react on specific tags:
  #
  # @api - use a different "driver" to process the steps in this scenario.
  #        See https://behat-drupal-extension.readthedocs.org/en/3.0/drivers.html
  # @javascript - use a javscript-enabled session to run this test.
  #               In DrupalExtension, this will attempt to launch a Selenium
  #               session.
  # Tags are added on a line before each Scenario. They can also be added above
  # the Feature declaration to apply to all Scenarios in the feature.

  Scenario: Be prompted to create a user account
    Given I am on the homepage
    And I click "Register Now"
    And I select "Community Sponsorship + Twin Cities Drupal Camp Registration (Unlimited slots available)" from "product_id"
    When I press "Add to cart"
    Then I should see "You must first create a user account"

  Scenario: Create a new user account
    Given I visit "/user/register"
    When I fill in the following:
      | name        | example1             |
      | mail        | example1@example.com |
      | pass[pass1] | example              |
      | pass[pass2] | example              |
      | First Name  | Tim                  |
      | Last Name   | Erickson             |
    And I press "Create new account"
    Then I should see "account created"

I just installed behat

davidneedham's picture

I just installed behat locally and ran my first test (it failed). After a quick typo correction it passed. It was even pretty easy to get the play-by-play selenium testing working. Woot!

Thank you Les!

--
David Needham
Team Lead of Training at Datadog

Twin Cities

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: