Behat UI for writing tests and centralizing results

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

Hello just joined the group, and I wanted to share some links of a module I've been working on for a few months for a company who is creating a testing workflow for their many Drupal sites.

The tool is "easy" for non technical people to build tests but also allow others to upload tests and run them via the Saucelabs extension or local Selenium2 server. Cenatralizing reports in one pace

You can see a few demos here of it in action
http://www.youtube.com/watch?v=rX3_2yift2k
and on Saucelabs
http://www.youtube.com/watch?v=d0uNC88wRvU

The install uses Composer Manage module to automate most of the setup.

The latest module now brings in Github integration so you can build and manage tests in a repo.

Here are some of the modules
The main module
https://github.com/alnutile/behat_editor
this includes a module for tagging limitations, library installation.

Then there is the Saucelabs module
https://github.com/alnutile/behat_editor/tree/master/modules
This allows you to send your tests immediately to Saucelabs and watch them run.

This is the github extension
https://github.com/alnutile/github_behat_editor
Allowing you to run tests from a Github repo.

Finally there is the example module using DrupalExtension (great module btw) to extend the Feature steps
https://github.com/alnutile/behat_editor_example_module

There are some rough spots in the code as goals and ways of getting to the goals change but it has been in use for a few months now and most problems come down to just how to test sites that have bad HTML or just tricky situations.

Looking forward to reading more from the group it really is a cool topic.

Comments

This looks aweome! I really

dsnopek's picture

This looks aweome! I really think the thing that differentiates Behat from other functional testing tools is the possibility of non-developers writing tests. I haven't tested any of this - just watched the videos - but it could make this even easier. :-)

Thanks for all your hard work!

Are you planning on making projects on Drupal.org eventually? Or sticking with GitHub?

Thanks! There is a sandbox

yurtboy's picture

Thanks!
There is a sandbox drupal project here
https://drupal.org/node/2150243
I just need to make some changes and maybe pull out some of the code into libraries so the module is easier to review. Right now it is large since it is doing quite a lot.
The github repo is https://github.com/alnutile/behat_editor

awesome!

sethcohn's picture

nice work. Will be using this in the future for sure.

OpenScholar uses Behat also

niccolox's picture

thanks for those resources, will check

btw, not sure if this has already been posted, but OpenScholar relies on Behat heavily

https://github.com/openscholar/openscholar/tree/3.8/openscholar/behat

Great resource of example

Behat

Group notifications

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