Automating Flex Applications with QTP

Flex Automation with Selenium and QTP

I have been searching for a functional automation tool which can work both on java and flex platforms.Since most of our applications are legacy applications built on java and struts.Newly added functionality is developed in Flex. I searched the web to find a open source tool but did not found anything except Selenium.

So I installed selenium IDE, selenium RC. And it worked great.I configured the RC with Flex libraries. I just followed the below documentation.

Follow these steps to install Selenium IDE and RC

Start Firefox browser and click on Tools --> Add-ons

Firefox will list all the available add-on's. From that select Seleniumm IDE and click install.

Then download Selenium-RC from the SeleniumHQ downloads page.

I also tested my applications with QTP. Since I have experience in automating my non-flex applications with QTP, I want to try to test my hybrid applications with QTP. I searched the web and found the documentation on how to configure QTP to work with flex also.

Here is how I did it.

Configuring automated testing support in Flex

When I instlled Flex builder, the automation.swc, automation_agent.swc, and qtp.swc files are stored in different SDK folders.

To link these libraries, you should know on what SDK your application was built.

Then select that SDK folder and link the libraries to the Application Flex libraries.

Compile and code.

Then Test it with QTP Happy Automation.....

Comments 5 comments

romper20 profile image

romper20 6 years ago from California

Hmm, interesting.

A+ hub in my opinion, nailed the points and content.

lkanamala profile image

lkanamala 6 years ago Author

Thanks Romper20

profile image

jeffersontom 5 years ago

@lkanamala : while automating with selenium, what all flex libraries did you use for configuring the selenium rc? how were you able to Identify the elements? will QTP be able to recognize the objects after compiling with the necessary swc files(i.e. I'm asking if it is possible to record using qtp and will the objects be stored in object repository) or do we have to directly script it?

Hasham 4 years ago

How did u configure Selenium to work with Flex?

Sudheer 3 years ago

I think, at the end of day the flex AUT should be made automation enabled. Otherwise none of the automation tools can be used to automate the felx application.

Correct me if I am wrong.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.

    Click to Rate This Article