Unified Functional Testing Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Flex custom components automation in UFT

Occasional Advisor

Flex custom components automation in UFT

I want to know if UFT flex add in supports automation of custom components created in flex.

 

In QTP we had to instrument the custom components to make them automation ready. Have these issues been addressed in UFT or we have to follow the same procedure of instrumenting the custom components?

15 REPLIES
Esteemed Contributor

Re: Flex custom components automation in UFT

 

Hello Deepak_T,

 

Thank you very much for contacting HP Software. My name is Ruddy and I want to help on this question.

 

That is still a limitation and we will consider adding support to this controls acording to demand.

 

The below is an enhancement request related to custom control not recognized:

 

https://support.openview.hp.com/selfsolve/document/LID/QCCR1J30960

 

 

Also you may find interesting the below document about How to Prepare Flex Applications for Testing with HP Flex add-in:

 

http://support.openview.hp.com/selfsolve/document/KM00339739

 

 

Best Regards,

Ruddy Alvarez Hernandez.
HPE Support.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

[Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.]
Occasional Advisor

Re: Flex custom components automation in UFT

Thanks Ruddy for the information.

 

I am not autherized to access the links provided by you. I am evaluating a Trial version of UFT, Can i get the below document through mail?

 

http://support.openview.hp.com/selfsolve/document/KM00339739

 

Thank You,

Deepak_T

Esteemed Contributor

Re: Flex custom components automation in UFT

Hi Deepak_t

 

I already sent you as a private message all the information of the document KM00339739

 

Regards.

Ruddy Alvarez Hernandez.
HPE Support.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

[Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.]
Occasional Advisor

Re: Flex custom components automation in UFT

Hi Ruddy,

I did not receive the KM document in my mailbox. Could you make sure if it was delivered to me?

 

Thanks,

Deepak_T

Re: Flex custom components automation in UFT

[ Edited ]

Hi @deepak_T were you able to finish your trial of UFT?  If you would like help in evaluating the product for your specific needs/environment I'd be happy to assist. 

I am an HP employee.

If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.

Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any solution/suggestion posted.

If you need further insight into HP Solutions, please send me a private message or contact an HP Solutions Expert.
Occasional Advisor

Re: Flex custom components automation in UFT

Hi ,

 

I am evaluating the UFT trial version in my organistaion for automation of a flex application having many custom components. I have followed all the steps to make my application automation ready as mentioned in the document.

Now UFT is recognising the objects in my applications but there are many controls which are not being recognised. i asked the developer and they told that these are custom components.

 

 sent me a below links which i was unable to access-

 

http://support.openview.hp.com/selfsolve/document/KM00339739

 

https://support.openview.hp.com/selfsolve/document/LID/QCCR1J30960 

 

So we are not able to go ahead with our automation plan. I know that adobe provide a mechanism to automate the custom

 

components for its QTP add in. But i am not aware if this can be implemented for flex add in in UFT.

 

Your help would be appreciated.

 

Thanks,

Deepak T

 

Esteemed Contributor

Re: Flex custom components automation in UFT

Hi Deepak,

 

 

Important: This feedback is only for HP Flex Add-innot the Adobe Flex add-in.

To prepare a Flex application for Web for testing

  1. Link the Flex application to Adobe Flex automation libraries and a UFT Flex pre-compiled agent. To do this, add the following compiler arguments in the Flex project:

    -include-libraries+="<PATH_TO_UFT_ROOT>\dat\Flash\Flex\HpQTPAgent.swc"
    -include-libraries+="${flexlib}\libs\automation\automation_agent.swc"
    -include-libraries+="${flexlib}\libs\automation\automation.swc"
    -include-libraries+="${flexlib}\libs\automation\automation_spark.swc"

  2. Embed the Flex application into a host .html document and open the host document using a Web browser.

To prepare an Flex application for Adobe AIR for testing

Link the Flex AIR application to Adobe Flex automation libraries and a UFT Flex pre-compiled agent. To do this, add the following compiler argument in the Flex AIR project:

-include-libraries+="<PATH_TO_UFT_ROOT>\dat\Flash\Flex\HpQTPAgent.swc"
-include-libraries+="${flexlib}\libs\automation\automation_agent.swc"
-include-libraries+="${flexlib}\libs\automation\automation.swc"
-include-libraries+="${flexlib}\libs\automation\automation_spark.swc"
-include-libraries+="${flexlib}\libs\automation\automation_air.swc"
-include-libraries+="${flexlib}\libs\automation\automation_airspark.swc"

To prepare a Flex application hosted by Adobe standalone Flash Player for testing, including the debug version, or Adobe Flash Player Projector

  1. Link the Flex application to Adobe Flex automation libraries and a UFT Flex pre-compiled agent. To do this, add the following compiler argument in the Flex project:

    -include-libraries+="<PATH_TO_UFT_ROOT>\dat\Flash\Flex\HpQTPAgent.swc"
    -include-libraries+="${flexlib}\libs\automation\automation_agent.swc"
    -include-libraries+="${flexlib}\libs\automation\automation.swc"
    -include-libraries+="${flexlib}\libs\automation\automation_spark.swc"


  2. Open the application in one of the following:
    • the Adobe standalone Flash Player
    • the Debug version of the standalone Flash Player
    • the Adobe Flash Player Projector

To prepare a Flex application that uses the Flex charting or AdvancedDataGrid classes

Link the Flex application to the automation_dmv.swc library. To do this, add the following compiler argument in the Flex project:

-include-libraries+="${flexlib}\libs\automation\automation_dmv.swc"

 

Starting from Service Pack 3 (SP3) for UFT 11.50 there is new option to automate flex application by using Runtime Loader.
The UFT Flex Runtime Loader enables you to test Flex applications (.swf files) directly without having to prepare the application manually for test

 

 Open the Flex Web application using the Runtime Loader:

Open the application in a 32-bit Internet Explorer, using the following syntax in the URL box:
<UFTFlexAUTLoaderPath.swf>?swf_url=<ApplicationName.swf>&<param_name1>=<para
m_value1>&<param_name2>=<param_value2>

For more information review the "How to Prepare Flex Applications for Testing" under "Chapter 13 - Flex Add-in" on the HP UFT Add-ins Guide

 

Hope this will help remember that you may buy full support in order to help you in the future as better as possible.

 

Please mark this answer as accepted solution or correct answer if this answered your question.

 

Best regards,

Ruddy Alvarez Hernandez.
HPE Support.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

[Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.]
Occasional Advisor

Re: Flex custom components automation in UFT

Hi ,

 

Thanks for the information, UFT is recognizing the normal component in my flex application. I have some queries-

 

1- If i use adobe flex add- in to automate custom components through instrumentation and later i upgarde to UFT, will my scrips be reusable?

 

2- If i am using UFT ,can i still use instrumention to automate custom components in UFT?

 

Below is the link to automate custom components through adobe flex-add in.

 

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ec5.html

 

Please answer my queries so that we could calculate ROI before going ahead.

 

Thanks,

Deepak T

 

 

Highlighted

Re: Flex custom components automation in UFT

[ Edited ]

Hi @deepak_T

 

I sent you a private message offline and just wanted to follow up and ensure you had all of the resources you were needing for the trial.  I'd like to connect you with one of our Account Managers to discuss your specific requirements as well as ROI the tool can provide in your environment. 

Feel free to reach out to me directly or via the Contact Us form on the HP Enterprise Software page. 

 

 

I am an HP employee.

If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.

Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any solution/suggestion posted.

If you need further insight into HP Solutions, please send me a private message or contact an HP Solutions Expert.
Occasional Contributor

Re: Flex custom components automation in UFT

Hi,
I have one flex application which is working with QTP 11,Flash 4.5 addin and IE 8.I am able to recognize all the object in the application as it is automation testing ready from the developer side.
Now i want to move to UFT 12.01 where i have flex addin installed(provided by HP not Adobe).For the same application UFT is not able to recognize even a single object.
Also, can you please help me understand this better w.r.t Flex run time loader:

<UFTFlexAUTLoaderPath.swf>?swf_url=<ApplicationName.swf>&<param_name1>=<para
m_value1>&<param_name2>=<param_value2>

If my application URL is https://abc.xyz.com/tw/main_debug.html then what should I use in the above command?

Also, I believe it would work with application developed in Flex SDK v 4.6? Please confirm.

Regards,
Dharmendra
Occasional Visitor

Re: Flex custom components automation in UFT

Hi Team,

 

I want to automate AIR Desktop Application using UFT 12.01. I have downloaded UFT 12.01 version and installed on my machine. These are the following steps i have done, but its worthless. UFT failed in detecting ojects in application.

Machine Config.
- Windows 8, 4GB Ram
- Flash builder 4.6 & SDK v4.5.1

Step 1: Put UFTFlexAUTLoader.swf in Desktop project "bin-debug" folder

Step 2: Compile Desktop app using Flash builder using these below compiler arguments :- 
 These all are files compiled in Flash builder
 1. d:\HpQTPAgent.swc"
 2. automation_agent.swc"
 3. automation.swc"
 4. automation_spark.swc"
 5. automation_air.swc"
 6. automation_airspark.swc"


Step 3: Open new test in UFT 12.01


Step 4: Run Air app using flash builer, now desktop app opened in AIR

 

Step 5: UFT12.01 Slect "Record" from manu bar, then
         1. GO to "Record and Run settings".
         2. On Flex TAB , Select first radio button
            "Record and run on any open flex application " >> then click on OK button
      

Step 6: When i recording some steps, it's not detecting buttons. see below
        recorded script

        Window("VC Desktop").Click 23,11        --- Here i clik on Flex File button
        Window("VC Desktop").Click 50,244       --- On Close Flex window

       In Object repository, only "VC Desktop" window added, nothing else.


PLEASE HELP ME TO ENABLE OBJECT IDENTIFICATION ON AIR DESKTOP APP
(please let me kow if i made some mistake in above mentioned steps)
I AM VERY THANKFUL FOR YOUR HELP

WAITING REPPLY

Thanks and Regards,

Bharat Bhushan

 

Visitor

Re: Flex custom components automation in UFT

Hi HP team,

I have also the same question in my scenario. Please respond dharmendra's question. It will be useful for us. 

 

Regards,

Ragavan R

Esteemed Contributor

Re: Flex custom components automation in UFT

[ Edited ]

Hi Ragavan,

Hope you are doing well.

as you may see below since UFT 12.00 Flex SDK 4.5 and 4.6 should works:

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM198488

flex SDK.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Also another very import point to have in mind is how to Prepare Flex Applications for Testing with HP Flex add-in, to do this please refer below document:

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM00339739

HP Unified Functional Testing (UFT) Flex Add-in

To use the HP Flex Add-in, the Flex application must be prepared/configured/setup accordingly with HP Flex Add-in agent files. For more information see, Document ID KM00339739 - How to Prepare Flex Applications for Testing with HP Flex add-in?

Starting UFT 11.5, HP provides support for specific versions of Flex, with the HP Flex Add-in for GUI testing. Any other versions (mostly older), are not supported by UFT. We suggest trying QTP with Adobe Flex Add-in (see below).

IMPORTANT: There is no current or future plans of providing backwards compatibility to support/use Adobe QTP Flex Add-in with UFT. Scripts using such version cannot be ran nor upgraded to be used with the UFT Flex Add-in. Scripts must be recreated from scratch (from zero) with HP Flex Add-in.

For more information about limitations, see Troubleshooting and Limitations - Flex Add-in", within the "Chapter 13 - Flex Add-in" of the HP UFT Add-ins Guide

 

Regards,

” If you find this or any post useful to resolve the issue, please mark this thread as correct answer and other members can benefit with the information given”

 

 

Ruddy Alvarez Hernandez.
HPE Support.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

[Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.]
Visitor

Re: Flex custom components automation in UFT

Ruddy,

Thanks,  we are currenly using the precompile approach .

I came across the below in 12.02 release notes & was intersted.

 

"You can now test your Flex applications directly from UFT, without requiring the Flex

Runtime Loader or pre-compiling your application with the UFT testing agent.

To do this, you need to run your Flex application using the Flash Player Debugger. "

 

Can you please provide me additional details on the same , will this approach work on FLEX web applications?

 

 

Esteemed Contributor

Re: Flex custom components automation in UFT

Hi Ragavan,

hope you are doing well.

UFT Recognition of Web-based Flex Applications
 
UFT does not recognize local Web-based Flex applications as Flex test objects until you register them as trusted applications. Local Web-based Flex applications are Flex applications that are stored locally and run in a browser window.
 
Register your local Web-based Flex applications by adding the folder path containing the Web-based Flex appl ication to one of the following:
 
➤ The Trusted Locations list in the Flash Player Global Settings.
 
➤ A text file located in the
 
FlashPlayerTrust folder in the following location: %appdata%\Macromedia\Flash Player\#Security\FlashPlayerTrust Each line in the text file must contain the name of a folder to be trusted. If a user specifies a folder, all files in that folder or any sub-folders are trusted. For example:
 
Note: The %appdata% folder is hidden in Windows by default. To show hidden folders, open the Windows Explorer Folder Options dialog box and select Show hidden files and folders.
 
If the #Security\FlashPlayerTrust directories do not exist, create them in the location relevant for your operating system, as listed above.
 
Hope you will find well this information.
 
Regards,
 
Ruddy Alvarez Hernandez.
HPE Support.
[If this post solves or helps solve your issue, mark the thread as solved and give KUDOS to the author for their assistance.]

[Opinions expressed in my postings are mine alone, and do not reflect the opinions of my employer.No warranties express or implied for any solution/suggestion posted.]