Daniel Harfleet

Delivering user-centric applications on the Adobe Flash Platform using Flex and AIR

BDD of Flex with Cucumber

with 13 comments

If you are interested in Behaviour Driven Development with Flex, then check out this link which shows how you can use Cucumber with FunFX


Written by dharfleet

October 7, 2010 at 06:27

Posted in Testing

Tagged with , , ,

13 Responses

Subscribe to comments with RSS.

  1. Hi Dan. Have you had, or heard of anyone having success with Flex automated testing in a large scale enterprise app? I get the feeling like no one has had much success with it so far.

    R Cashmore

    October 8, 2010 at 15:17

    • Hi, yes I have personally heard of several organisations who are using RIATest successfully, its easy to install and quite intuitive. I’ve been keeping my eye on Saucelabs too; I don’t personally know of anyone using Saucelabs, but it looks quite interesting.


      October 11, 2010 at 15:17

  2. Hi Dan, Thanks for the link. Note that the screencast I created was just an experiment and I haven’t used Cucumber+Flex on any real or large scale Flex project. I mostly used Flexunit 4 myself and started playing with FlexMonkey.

    Daniel Wanja

    October 11, 2010 at 15:02

  3. I released a project called Melomel recently that integrates Flex and Cucumber really easily. It has Cucumber steps built in for most Halo and Spark components as well some nice features that help get around timing issues.

    I’m integrating Cucumber in a large enterprise app right now and so far so good but we’re still at an early stage. The problem I see with FlexMonkey is that you need to write your test scripts after you build your app and it requires that you have knowledge of the underlying code. Melomel tries to work simply on what you can see so that anyone can start using it quickly.

    Here’s the web site with full documentation.


    The repo is on GitHub if you want to raise any issues or suggest features:


    Ben Johnson

    October 15, 2010 at 15:45

  4. Hey Ben, that project looks awesome. I will need to try this out. I’m using FlexMonkey on a project, but I would love to use Cucumber.

    Daniel Wanja

    October 15, 2010 at 17:59

    • Daniel-

      I’m going to try to put together a quick Melomel+Cucumber screencast in the next week or two. Getting setup is always the toughest part of using any tool.


      Ben Johnson

      October 17, 2010 at 19:58

      • I’ve often wanted the equivalent of a commandline MonsterDebugger. I’d be interested in that Melomel+Cucumber screencast if you have time for it.

        Michael Wills

        December 8, 2010 at 07:16

      • hey Daniel & Michael-

        I finally got around to making a screencast!

        Functional Testing Adobe Flex Applications with Cucumber & Melomel


        Ben Johnson

        February 24, 2011 at 02:19

      • Nice nice! I’ll be checking that out in just a few. :)

        Michael Wills

        February 25, 2011 at 00:45

      • I was going to ask if it could work with pure AS3 apps as well but a quick Google shows you already answered that question (and a few more).

        For the curious:


        Thanks again!

        Michael Wills

        February 25, 2011 at 00:54

      • Just reviewed it. Thank you for putting that together. I’ll have an opportunity to use it with AS3 projects before I do with Flex so I’ll give that a whirl.

        Michael Wills

        February 25, 2011 at 01:02

  5. Awesome screencast. If you are doing Flex development you gotta check Melomel out.

    Daniel Wanja

    February 24, 2011 at 05:57

  6. Michael-

    I just got a notification from WordPress that you left a comment. I’m not sure why there was such a delay. Feel free to e-mail me at benbjohnson@yahoo.com or leave a GitHub Issue on the project if you run into any problems. Melomel shouldn’t have any issues working with an AS3-only project but so far most people have used it with Flex. The only catch is that you’ll need to write your own Cucumber steps.

    Let me know if you have any Cucumber steps that you think are generic to AS3-only projects and I can add built-in AS3 Cucumber support to Melomel.


    Ben Johnson

    March 2, 2011 at 18:26

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: