Absent Member.. JanelleHuang Absent Member..
Absent Member..
365 views

QTP/UFT SwfToolbar recognition

Jump to solution

Executing a script which testing an application containing Window object and SwfToolbar. The SwfToolbar is a child object of Window. The script needs to select an item on the menu (which is recognized as a SwfToolbar). During execution, the SwfToolbar().Select "menu1;menu2" could take up to 30 seconds or more. Is there any setting can speed up this? This slows down the whole execution a lot.

 

Really appreciate.

 

 

0 Likes
1 Solution

Accepted Solutions
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Try this:

- Select only  Web and .net Add-ins

- Access the Object repository

- Locate the swftoolbar object

- Set the enable smart identification to False as shows the image below

 

 

-After that click on Tools>Options>Gui testing>Active Screen

-Set it to None as you can see from screenshot below

 

 

HP support.

If you find that this or any post resolves your issue, mark it as an accepted solution.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

 

0 Likes
12 Replies
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Hello,

 

    -What version of QTP/UFT do you have?

    -What .net framework was used to compile the application?

    -Do you have the same performance on different machines?

    -The delay appears only with swftoolbar controls?

    -If you use a code like this

    SwfToolbar().Select "menu1"

  SwfToolbar().Select "menu1;menu2"

    It is slow as also? 

 

    -Try to use a code like this:

    SwfToolbar().ShowDropdown "menu1"

  SwfToolbar().Select "menu2"

    If control don't respond to this then restart QTP/UFT uncheck all the add-ins.

    Launch the application and record on the toolbar.

    Let me know if replay performs is faster. 

 

HP support

If you find that this or any post resolves your issue, mark it as an accepted solution.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

0 Likes
Absent Member.. JanelleHuang Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

QTP version 11

UFT version 11.53

 

My script is SwfToolbar().Select "menu1"

or SwfToolbar().Select "menu1;menu2" based on different scenarios.

 

I have different part of SwfToolbar doing

SwfToolbar().showdropdown "menu1" 

SwfToolbar().select "menu2"

 

Since this two are serving different purpose.

I will give a try to uncheck all add-in, see whether it will be faster.

0 Likes
Absent Member.. JanelleHuang Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

I tried to uncheck all add-ins. In that case, QTP won't recognize the SwfToolbar at all, there is no way to continue.

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Try this:

- Select only  Web and .net Add-ins

- Access the Object repository

- Locate the swftoolbar object

- Set the enable smart identification to False as shows the image below

 

 

-After that click on Tools>Options>Gui testing>Active Screen

-Set it to None as you can see from screenshot below

 

 

HP support.

If you find that this or any post resolves your issue, mark it as an accepted solution.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

 

0 Likes
Absent Member.. JanelleHuang Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Thanks, UFT execute faster now, how to modify the setting for QTP?

 

Really appreciate.

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

For Object repository is the same process.

 

For active screen

Click on Tools>Options>Active Screen

 

Set the capture level to none.

 

HP support

If you find this useful, mark Kudos.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

 

 

0 Likes
Absent Member.. JanelleHuang Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Looks like it works better for UFT, not QTP.

 

Can you explain more why this Active Screen setting matters in this case?

 

Thanks,

0 Likes
Absent Member.. Eickel Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Hi,

You can refer to the following KB article:

 

Slow Performance, or Hang, of QuickTest and/or the Application Under Test During Recording or Spying

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

"HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution."
0 Likes
Absent Member.. JanelleHuang Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Thank you so much. I submit the same ticket in HP support, they have not provide me any solution yet.

 

You are more knowledgable.

0 Likes
Absent Member.. Eickel Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Hi Janelle,

It's been our pleasure to have help you on this.
It's the case 4648371990, right? How should we proceed with it?

You can reply here or to the case owner as well.

Thank you for your business.

"HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution."
0 Likes
Absent Member.. JanelleHuang Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Yes, that's the one.

 

Somehow, I noticed the QTP did not improve as much as UFT. Any idea?

0 Likes
Absent Member.. vzamoraz Absent Member..
Absent Member..

Re: QTP/UFT SwfToolbar recognition

Jump to solution

Hello Janelle,

    

    Click on QTP>Help>About Quick Test Professional.

    Click on the button "Generate product information"

   

    Search for the patch list and send us the patches you have installed.

 

Thank you very much.

 

HP support

If you find this useful, mark Kudos.

 

Note: The Opinions expressed in my post are mine alone, and do not reflect the opinions of my employer. No warranties express or implied for any answered posted.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.