Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interacting with flash objects from Perl

Status
Not open for further replies.

infernal211283

IS-IT--Management
Nov 6, 2007
2
IL
Hi,

I'm looking into automating some checks of an application which was built with flex and runs in a browser window.
I'm running ActivePerl 5.10 on winxp.

I have little experience with Perl and need some direction.
I don't know how to interact with objects that being generated by the application that I need to test.
I guess I need some module to do it but can't figure out which one... I've been looking at Perl::Flash ( but I'm not sure if it's the one.

I wan't to be able to activate all the tabs and options of the application and capture the error messages if there are any...

Any help would be greatly appreciated.
 
There shouldn't be any way to interact with the Flash component unless the component has been programmed to accept input arguments which will allow you to do these things. It's not too complicated to do that in Flash.

Perl is writing the HTML for your Flash component, so it has control over the HTML tags and the URL that it loads the .swf with. Both can be used to pass parameters, search for passing parameters to Flash.

On the other hand your Flash component could poll a perl script over HTTP for any commands, but both of these probably require modifications to the Flash component.

Javascript, on the other hand, can interact directly with Flash (again requires some modification to the Flash), but since Javascript is client-side you would be able to push buttons to run tests, if that is important.

I'm not familiar with Flex, but it looks like something that might have specific functions to support what you want to do, I would check the Flex development documentation.
 
Ok, thank you for all that information, I'll start digging into javascript and flex.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top