Tuesday, May 27, 2008

Baby step

Okay, I took the weekend off. But today I was able to make some minor mods and added a "clickFx" command to my user-extensionts.js file and was able to have it click a button in my sample application utilizing the AutoQuick sample automation code. Here is how the JS code looks:

var flexApp = "AutoQuickExample";

// All do* methods on the Selenium prototype are added as actions.
// Eg add a typeRepeated action to Selenium, which types the text twice into a text box.
// The typeTwiceAndWait command will be available automatically
Selenium.prototype.doClickFx = function( locator, text ) {
var element = this.page().findElement( flexApp );

element.runCommand( locator, "Click", text );
};

On the Flex side, I just added an ExternalInterface callback to the AQToolBar.mxml file to hear the 'runCommand()' method call like this:

private function init() : void
{
ExternalInterface.addCallback( "runCommand", runCommand );
}

private function runCommand( id:String, method:String, args:String ) : String
{
var o:Object = AQAdapter.aqAdapter.run( id, method, args );

return "ok";
}

I don't know if I can put the AutoQuick code up but I intend to look at getting instructions put up tomorrow hopefully.

Thursday, May 22, 2008

Moving forward

Okay...I'm not too bright. I anxiously tried to 'skip to the end' on the AutoQuick example and that is why I missed a key step in setting it up. I ended the day with properly running example and an apologizing post on the Adobe Flex 3 Live docs site where I made my original "this doesn't work post".

Tomorrow I am chaperoning a field trip for my son and in the evening geeking out with my 30-something friends so won't make much progress. I hope to take at least another baby step this weekend. Regardless, my "playing" has given me insight into how we can do the proof of concept for the next version of Flexenium.

I'm optimistic now...

Wednesday, May 21, 2008

AutoQuick automation sample application

Today I was trying to get the AutoQuick automation sample application running on
my own and for some reason the automationManager was always null.

Line 355 in the AQAdapter.as it appears that it is null and has not been initialized yet.

Feel like I followed the instructions pretty well...

http://livedocs.adobe.com/flex/3/html/help.html?content=agents_3.html

Posted to yahoo flexcoders group so hopefully tomorrow I'll make more progress.

Flex automation research approved

I just got approval to spend a week looking into using the Flex 3 automation package to create a new version of Flexenium that should be open to the public. If anyone has any helpful links please send them to me.