QTP to identify *.swf objects (2636 Views)
Reply
Occasional Contributor
Pranav Parikh
Posts: 5
Registered: ‎05-20-2008
Message 1 of 14 (2,636 Views)

QTP to identify *.swf objects

[ Edited ]

Hello -

Does QTP identify *.swf objects? Do the runtime attributes/properties of *.swf objects get recognized by QTP?

Let us know if any kind of add-in is required for the same.

Appreciate your revert.
Thanks,

Pranav

 

 

P.S. This thread has been moved from Quality Center Support and News Forum to Unified Functional Testing (formerly QTP) News and Support Forum. - Hp Forum Moderator

Please use plain text.
Honored Contributor
Krishna Kolachalama
Posts: 648
Registered: ‎01-29-2008
Message 2 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

Yes, it does. You need the .NET add-in though.
Please use plain text.
Occasional Contributor
Pranav Parikh
Posts: 5
Registered: ‎05-20-2008
Message 3 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

Thanks for the reply.
We have plugged the .NET add-in. But upon doing a record-playback, what we have noticed is all the objects shows up as swfObject in the QTP screen instead of showing the label of the particular text object.

What can be a solution for this?
Please use plain text.
Honored Contributor
Krishna Kolachalama
Posts: 648
Registered: ‎01-29-2008
Message 4 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

I don't think I follow you. Can you post the code (as recorded) and tell me what instead are you expecting? Also, can you post a screenshot of Object Spy spying on the relevant control(s)?
Please use plain text.
Honored Contributor
Cody Marcel
Posts: 1,039
Registered: ‎02-27-2008
Message 5 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

swfObject is the default container object QTP uses when it cannot figure out a better class for the object. It most often happens when the AUT has custom objects in it, which QTP cannot understand.
Please use plain text.
Frequent Advisor
HSUPADRASTA
Posts: 35
Registered: ‎04-15-2008
Message 6 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

hi pranav,

as said above by default any object can be viewed as swfobject.
but if it recognise every object as swf object then the application developers might have used non standard controls or objects (non standard in the sense which QTP can't recognise, check QTP help for more).

regards,
Please use plain text.
Frequent Advisor
Hin Fai Tsang
Posts: 32
Registered: ‎04-09-2008
Message 7 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

As above.

However, try hooking into their API to get out all the necessary information.

SwfWindow.SwfObject("object name").Object.

Cheers,
Pat
Please use plain text.
Honored Contributor
Cody Marcel
Posts: 1,039
Registered: ‎02-27-2008
Message 8 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

You should keep in mind that using the swfObject().Object approach can be used to automate the application, but you will be invoking actual application code. You will no longer be interacting with the application as a user would and thus can invalidate your testing. I have used this method to retrieve data from the app, but setting any fields in this method is not a true test.
Please use plain text.
Occasional Visitor
AKbond
Posts: 1
Registered: ‎10-15-2008
Message 9 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

[ Edited ]

Hey i too have same problem
can you please let me know how to work with them as QTP is generacially idetifying them as SWF objects


Please use plain text.
Occasional Visitor
abhey
Posts: 5
Registered: ‎02-17-2009
Message 10 of 14 (2,636 Views)

Re: QTP to identify *.swf objects

Hello

I am trying to automate an application that is developed in .Net. I am using QTP 9.5, It is recognising all the controls using SwfObjects. I am not getting any specific properties. It is performing the actions using x and y coordinates. What should i do to get all the properties?

Abhey
Please use plain text.
Regular Advisor
Umang_Agrawal
Posts: 83
Registered: ‎04-30-2008
Message 11 of 14 (2,635 Views)

Re: QTP to identify *.swf objects

Hi Abhay,

Can you write the line of code which qtp is identifying as swfobject. Also provide the screenshot of object spy of that object.
Umang Agrawal
Please use plain text.
Occasional Visitor
Ashwil
Posts: 2
Registered: ‎07-31-2013
Message 12 of 14 (2,002 Views)

Re: QTP to identify *.swf objects

My application is developed using .net and it is client server. we are using QTP 11 to automate our application.

When I record a scenario, we are getting code as

SwfWindow("System Administration_2").SwfWindow("Area Groups").SwfObject("trAreaGroup").Click 30,26 @@ hightlight id_;_15204446_;_script infofile_;_ZIP::ssf509.xml_;_

For some text boxes it is coming as SwfObject. Also i am not able to spy objected inside Tables. Is taking the whole table itself.

can you please guide me with the configuration changes i need to make to get this working fine.

Please use plain text.
Honored Contributor
john scarpino
Posts: 1,344
Registered: ‎02-15-2008
Message 13 of 14 (1,986 Views)

Re: QTP to identify *.swf objects

Did you give the Adobe Felx add-in a try?

https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex4_6_automation_plugin

 

I hope this helps.

John Scarpino, D.Sc.

Keep finding bugs!

Please use plain text.
Occasional Visitor
Mukund_J
Posts: 1
Registered: ‎10-24-2013
Message 14 of 14 (1,660 Views)

Re: QTP to identify *.swf objects

I am facing the same issue. When i try to capture the objects like table   it captures the entire object as single Swf Object with coordinates. can you please tell me what i need to do to capture the actual object instead of having the co-ordinates

 

 

Thanks,

Mukund

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation