The flex content of the web applications is not directly accessible by QTP tool. To automate flex applications, we need to build the flex application with automation libraries which are usually available at C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\libs based on the installation path.
These libraries act as agent(INTERFACE) between the application and QTP tool. Building flex application with the automation libraries could be done by developers.
Configuration from Developers perspective:
These libraries act as agent(INTERFACE) between the application and QTP tool. Building flex application with the automation libraries could be done by developers.
Configuration from Developers perspective:
-->. Include the SWC files before compiling the application in the following path
< flex_builder_dir>\sdks\...\frameworks\libs\automation.swc
< flex_builder_dir>\sdks\...\frameworks\libs\automation_agent.swc
<flex_builder_dir>\sdks\...\frameworks\libs\qtp.swc
<flex_builder_dir>\sdks\...\frameworks\libs\automation_dmv.swc
< flex_builder_dir>\sdks\...\frameworks\libs\automation_agent.swc
<flex_builder_dir>\sdks\...\frameworks\libs\qtp.swc
<flex_builder_dir>\sdks\...\frameworks\libs\automation_dmv.swc
--> Configure the above file paths in …/WEB-INF/flex/flex-config.xml file
<include-libraries>
<library>./user_classes/automation.swc</library>
<library>./user_classes/automation_agent.swc</library>
<library>./user_classes/qtp.swc</library>
<library>./user_classes/automation_dmv.swc</library>
</include-libraries>
<debug>true</debug>
OR
Select Project > Properties > Flex Compiler.
In the "Additional compiler arguments" field, enter the following:
-include-libraries "flex_builder_dir\sdks\3.0.0\frameworks\libs\automation.swc"
"flex_builder_dir\sdks\3.0.0\frameworks\libs\automation_agent.swc"
"flex_builder_dir\sdks\3.0.0\frameworks\libs\qtp.swc"
"flex_builder_dir\sdks\3.0.0\frameworks\libs\automation_dmv.swc"
"flex_builder_dir\sdks\3.0.0\frameworks\libs\automation_agent.swc"
"flex_builder_dir\sdks\3.0.0\frameworks\libs\qtp.swc"
"flex_builder_dir\sdks\3.0.0\frameworks\libs\automation_dmv.swc"
Sample Application Name: Flex Store
When you try to identify objects with QTP, you will see the whole page as single object i.e “MacromediaFlashPlayerActiveX”
So use another sample adobe flex application
Now you could identify the whoe page as different objects...
Both applications are same but they deployed in SDK and LCDS.
Want to know more about this.
No comments:
Post a Comment