Testing with QTP is a pain, so don't expect to be able to do anything
quickly. Your post lists two alternative approaches for getting going
with QTP so you need to choose and follow one of them. In my experience
the second approach ("static automation support") is easier to get
working. Whichever approach you choose I would suggest starting out with
a very basic Flex application (eg. a tab bar, a view stack, a few
buttons ands labels) and try to get automation working with that, rather
than attempting to dive in with whatever application you actually want
to test. Note that if you do follow the "static automation support"
approach you must recompile the application without the automation
libraries to create a version suitable for release (ie. the version you
build and use with QTP should not be released because it has lots of
unnecessary automation junk compiled into it).
The documentation below covers these setup steps and explains their
differences in more detail. The "static automation support" approach is
covered in "Compiling applications for testing":
The Flash Player ActiveX control is just a more specific name for the
Flash Player for Internet Explorer. You should have that already. If you
don't you can download it from here (get the debug version):
Once you've got a simple application automated with QTP (ie. you can
record and run test scripts on the application), you can then repeat the
same steps for your target application. You may need to make code
changes to your target application in order to automate it fully and
allow tests to run efficiently.
If you are struggling with QTP (and you haven't bought it yet) then you
may want to take a look at an alternative tool called RIATest, but post
back any specific issues you hit and I may be able to help.
Thanks for the good tips and links. I will try my luck with a small application first, as you suggested. Thanks
We are currently trying to automate our test cases using QTP 10 for our hybrid application which uses java swings + Flex(New screens developed).
We have decided to follow the runtimeloading approach for this purpose. Currently we are launching Java Applet which call a jsp which in turn calls our flex swf file.
Now issue we are facing is that we are not able to apply runtime approach to our application. As jsp is calling application swf file.
Can we modify this jsp somehow that it should call runtimeloading.html/runtimeloading.swf then runtimeloading.html or swf itself calls our application swf file. Which I think will be then recognized by QTP.
I am attaching our jsp below for refrence. Application sqf is RatingShell.swf