Automation Of Flex Applications

February 26, 2008 at 1:08 pm 2 comments

Adobe provides the automation framework for the flex components. The plug-in for the QTP tool is also provided by Adobe.
Users of flex will be using either the 2.0.1 sdk or the latest 3.0 sdk.
With the Flex3 release, users of Flex 3.0 can try the automation support using the trail version or standard version of Flex Builder. But this will be restricted. i.e. the users can try only ~30 lines of user interaction recording and replay.
Once the user buys the professional version of Flex Builder, they can enable their 2.0.1 and 3.0 applications for automation.Old users (2.0.1) of automation was expected to have the LCDS license to use the automation. With flex3 this is not needed. However there is no trial version for 2.0.1 automation with the FlexBuilder.
The section below is for the users who already know how to use the Adobe Flex Automation and Flex Builder. It mentions how user can pick up the different components needed for automation.
2.0.1 User
Libraries to be used (set the sdk to be used is 2.0. sdk)
Automation Libraries – automation.swc and automation-charts.swc
Location – (C:Program FilesAdobeFlex Builder 3sdks2.0.1frameworkslibs)
Automation Libraies – automation-agent_rb.swc automation_agent.swc and qtp.swc (user should move the _rb.swc to the locale folder of 2.0.1frameworks)
Location – C:Program FilesAdobeFlex Builder 3sdks3.0.0frameworkslibs2.0.1.automation_swcs (this directory will be present only when they enter the valid flex builder professional license key
Plugin to be used – QTP_Plugin_Installer
Location- C:Program FilesAdobeFlex Builder 3InstallersQTP_Plugin_Installer.exe
How to run the application without recompiling.
Use the runtime loading swf. How to create the runtime loading swf.
Point to the location of the 2.0.1 swc’s mentioned above in the build.bat which is available under C:Program FilesAdobeFlex Builder 3sdks3.0.0templatesautomation-runtimeloading-files and compile the runtimeloading.swf from the runtimeloading.mxml
3.0 User
Libraries to be used (set the sdk to be used is 3.0. sdk)
AutomationLibraries – automation.swc and automation_agent.swc,automation_dmv.swc automation_flashflexkit.swc qtp.swc
Location – (C:Program FilesAdobeFlex Builder 3sdks2.0.1frameworkslibs)
Plug-in to be used -QTP_Plugin_Installer.exe
Location – C:Program FilesAdobeFlex Builder 3InstallersQTP_Plugin_Installer.exe
How to run the application without recompiling.
Run the build.bat which is available under C:Program FilesAdobeFlex Builder 3sdks3.0.0templatesautomation-runtimeloading-files use that runtimeloading.swf
(The users who are not familiar with the flex automation can get the details of the same from http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html#install_automated_testing and from the Help of FlexBuilder AdobeFlex3Help -> Flex Data visualization developer’s Guide -> Advanced Data Grid Controls and Automation Tools -> Creating Applications For testing)
Advertisement

Entry filed under: FlexAutomation. Tags: .

Hello world! Automation Issues – controls non clickable

2 Comments Add your own

  • 1. Hem  |  July 28, 2008 at 2:15 pm

    Hello Kumar,

    Our flex application requires some parameters to be passed into it using FlashVars.

    Is there some way for us to send in these parameters when using the RunTimeLoading framework?

    Reply
  • 2. ranikumar  |  July 29, 2008 at 9:43 am

    It is not directly possible for the current runtime loading.

    However you can customize the runtimeloading.mxml to do this.

    This information is available in the blog below. (Please note the disclaimer in the blog also).
    http://renaun.com/blog/2005/08/30/4/

    If you want to take these as arguments to the html itslef, you can do the same by
    1. define more arguments in the section below. e.g arg1, arg2(refer getQueryVariable and usage of flashvar in the runtimeloading.html)

    2. Use them in the action script as
    event.target.content.xmlFile = Application.application.parameters.arg1; (refer setVars method in the blog http://renaun.com/blog/2005/08/30/4/)

    Disclaimer : I have not tried out these.
    Please let me know if you need more info.

    you can contact me at ranik@adobe.com

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

February 2008
M T W T F S S
    Apr »
 123
45678910
11121314151617
18192021222324
2526272829  

Most Recent Posts


Follow

Get every new post delivered to your Inbox.