2 years ago, at the start of November
Getting QTP automated tests and Flex working
Posted by pbirnie under technology
Found this great set of blog entries on how to get QTP and flex atomated testing to work
http://www.benlondon.co.uk/search/label/QTP
In summary some things to watch out for
Repeat/Summary of the obstacles encountered are:
- must have ‘-includes=RandomWalkDelegate’
- you have to make certain you run the Adobe Flex 4 Plugin for HP QuickTest Pro\Install_QTP_Plugin.bat to install the each time you change the TEAFlexCustom.xml or TEAFlex.xml file.
- You have to restart QTP
- You have to use the -include-libraries in additional compiler arguments
- -include-libraries "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\automation.swc" "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\automation_agent.swc" "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\qtp.swc" "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\automation_dmv.swc" "C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\3.5.0\frameworks\libs\automation_flashflexkit.swc"
- The version of RandomWalk had to be patched as per http://raniskumar.wordpress.com/2009/09/09/flex-automation-random-walk-replay-error/
- add Wait(5) commands in the QTP generated script to get it to work
