Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • You got me all fired up about writing tests for our user interface, in Perl even though the app's not in Perl ... and then I crashed back to reality as I remembered we're not a web interface. :) But this is a spectacular idea, and my mind is now going to be chewing heavily on it. There IS a way to drive Java Swing classes programmatically, although I suppose it probably has to be done in Java. If nothing else I could write some small tests to keep in my own git repository that could give me a good feeling that changes I've made aren't catastrophic. I could add to those tests when I add new features (or fix bugs). I might have to retool a few classes to make them more testable, but that would be a good thing! I might even be able to do some of this in Perl.

    In fact, theoretically I should be able to figure out how to write a Perl test suite that logs into our application and executes many of its procedures remotely. Doing so would greatly increase my understanding of our application.

    If you should happen to run across any material on programmatically driving a GUI app for testing purposes, please toss it my way! :)

    J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
    • What's your operating system? If you're using Win32, have you looked at Win32::GUITest []? This is a fine tool for programmatically driving a GUI app, and I _imagine_ that with careful work you could use it to do so for testing pretty much anything.

      SweeperBot [] uses it just fine to play Mindsweeper. ;)

      All the best,


      • Holy crap. 6.5 Meg download just to automate Minesweeper! :)

        • How big is Java? The .NET runtime? If you ship source, how big is the GCC download?

          Holy shit! []

        • Of course, the 6.5 Meg download includes a Perl 5.8.8 run-time, Image::Magick, and a bunch of image capture DLLs, an unpacker, and all the goodies that otherwise come with an application built using PAR.

          The end result, of course, is a user can download and double-click, and their machine plays minesweeper. They don't need to know anything about installing software, or Perl.

          If you already have Perl and all the required dependencies installed, it's about 25k.

          pjf@TinyGod ~/CVS/App-SweeperBot
          $ wc bin/

      • Awesome!! My operating system is Fedora, but our project is Java, and intentionally so so that it can be cross platform. Half of our developers use Windows. (By choice, sigh...) And there've been rumors the past few months of new workstations for all, if only we'll run Windows on them. (Sigh...)

        So I don't think it'd be too hard to get access to a place to try this out.

        J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers