Testing Flex Apps with FlexMonkey Reloaded

Whether or not you use a tool to test your Flex apps, you are repeatedly testing your application. Doing this by hand is a pain: start the app, click through some stuff, verify the result is what you expected, makes some changes to your code and then do it all again. The open source FlexMonkey tool automates that process so you don’t have to keep doing those steps manually. FlexMonkey works with Flex applications that run in the browser (Flash Player) as well as on the desktop (Adobe AIR). Jon Rose has just finished a complete overhaul of FlexMonkey that makes automating your Flex testing process uber-simple and much more robust than the previous version.

Jon and I have created some resources to help get you started using FlexMonkey. Start by reading the Introduction to Flex and AIR Testing with FlexMonkey. Then check out a short screencast I did that walks through the FlexMonkey basics:

To continue learning check out a series of videos from Jon that will give you a more in-depth look at each piece of FlexMonkey:

Now enjoy being more productive as you automate the testing process you do hundreds of times a day, leaving more time for Angry Birds! Let me know what you think.

  • Pingback: Cool Stuff with the Flash Platform – Molehill 3D Special Edition – 3/4/11 | Finding Out About()

  • Lionel

    In your video It looks like you connected to an AMF server without having to configure services-config.xml or anything like that. How come?

    • I set the endpoint directly. That avoids using the services-config.xml file.

      • Lionel

        Thanks for the response.

        It seems a lot more simple to do it the way you showed. Is there any disadvantage to doing it that way as opposed to using the config file?

        • The Data Wizards in Flash Builder require the services-config.xml and server connection settings in the project. But I don’t often use those.

  • Hello,

    Great Work. But how to go about automating custom components. We are in the process of automating our app, but we are not able to automate few actions, and most of them are custom components. As far as i know, we have to override some functions in order to support automation on custom components. It would be really great if you could provide us some light on this or may be some link to examples or tutorials.


  • Mal

    I cant seem to use any type of verify with our flex app based on 3.2, whenever I drag (Ex. verify grid command), I get an option to “select target component in application under test …”, but I’m not able to select. Any idea, why?

  • Sajith

    I get this error with FlexMonkey 5.1.1 running on my application. I
    followed the video on the install and did the same steps except I
    changed -include-libraries “lib/automation_monkey4.x.swc”
    “${flexlib}/libs/a…. to  -include-libraries
    “libs/automation_monkey4.x.swc” “${flexlib}/libs/a…. since my lib
    folder is libs and I got rid of “../” . When I do this I do not get
    compile errors but I get this run time error.
    Please let us know the solution for this. By the way I am using Flash
    Builder 4.5.1


    TypeError: Error #1009: Cannot access a property or method of a null object reference.   
    mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::preloader_completeHandler()[E:dev4.5.1frameworksprojectsframeworksrcmxmanagersSystemManager.as:2729]        at flash.events::EventDispatcher/dispatchEventFunction()        at flash.events::EventDispatcher/dispatchEvent()   
    mx.preloaders::Preloader/timerHandler()[E:dev4.5.1frameworksprojectsframeworksrcmxpreloadersPreloader.as:542]        at flash.utils::Timer/_timerDispatch()        at flash.utils::Timer/tick()

    • Chinmay Shepal

      Hi James,

      I am facing the same issue as that of Sajith. I have posted it over flex monkium forum also. But I haven’t got any reply yet. Can you please help us on this. 

      Chinmay Shepal

  • Rssurya

    Flash based web application can be automated with this are need to know about coding??/

  • Abhi

    I introduced Flex Monkey to my organization when it was 0.8 version.

    One of the clients need automated UI testing and I made big promises based on FlexMonkey.

    To my surprise, when I checked for the latest version, I realised its no longer supported and on MonkeyTalk is available. The dilemma is, the documentation and examples of MonkeyTalk are still focussing on iOS and Android, and there is not much discussion about Flex. Moreover, it uses Javascript rather than ActionScript. On the other hand, FlexMonkey, which supported ActionScript and smoothly integrated with Flex, seems to be missing, I could not find the downloads/binaries for FlexMonkey

    Please help.

    Thanks n Regards


  • IK

    how to automate an Air application using monkey talk?

  • vishalkumar

    hi all i am using sdk 4.5.1 and flexmonkey 5.1.1 but status is still not connected i am following all the steps from gorillalogic please any 1 provide complete details to to connect flexmonkey with flashbuilder

  • Benjamin Haller

    So FlexMonkey is dead now? That´s very sad. I hit this site and thought ‘That´s exactly what I´m looking for’ – now there´s only MonkeyTalk. Any alternatives for Flex and AIR?