The easy part is to automate the server side. Just get the Mozilla Live HTTP Headers plugin and track what requests the Flash app makes to the server, and (parametrize and) replay them against your server to make sure that the "usual" transactions work and return the expected results.

The hard part will be to automate the Flash application. I'm not aware of a convenient way to extract user interface elements like clickable areas from Flash, so I'd load the application into a browser and then send mouse clicks to it, for example via Win32::GUITest or maybe via WWW::Mechanize::Firefox (but I've never done that, and I'm the author of the module) to automate the application and capture the resulting HTTP requests.

Testing the application itself is much harder, as you need to verify that what displays on the screen remains the same. adamk has written Imager::Search, and there are other Screenshot modules that you can use to compare what the Flash application displays to what you expect. If all else fails, set up the Flash app in a VNC server and then capture the VNC client screen to get an image of what happens even without a (real) display connected. But this part of the automation is highly fragile as even the change of the background colour will mean you have to reacquire the complete test data and confirm the whole test suite manually.


In reply to Re: Perl to test Flash? by Corion
in thread Perl to test Flash? by locked_user sundialsvc4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.