Hi All,
During the record and play back in QTP - Swftable is identified in the below hierarchy
swfwindow("").swfwindow("").swftable("")
On the above if we use the getcelldata(0,0) its returnig the expected value
when using the descriptive programming like below
when the swftable is Spied via the Object repository - hierrachy as below
swfwindow("") swfobject("") swfwindow("") swfobject("") swfobject("") swfobject("") swftab("") swfobject("") swfobject("") swftable("")
Desccriptive Programming (Dynamic) - to Store all the Objects (In a seperate .vbs file) like below
Set x - create.description()
x("<Property Name>").value("<Actual value of the property>")
x("<Property Name>").Regular Expression = ("True" or "false") - (Based on the object )
Below are issues1 . Using the descriptive Programming - my code is capable enought only to address the identification ofswfwindow("") swfobject("")Due to some reason - I am not able to identify the following objects - I am trying almost all the properties
2. Can any one explain on how to interpret the existence of the swfobject
3. can swfobject be used for the purpose of object identification
4. is this the normal hierarchy - that is can swfwindow be the child object of swfobjecct
swfobject("") swfwindow("") swfobject("")
Help on the above would be very much appreciated - for us to take clairt
Hello palaniyappan,
I`m not sure that I understand well your issue. Could you please give us more details about your environment, scenario, final goals and issue. Please answer to the questions below:
1. What is your OS (Windows 7, XP, ... ). Is it a x32 or x64 bits machine
2. Do you have any installed service packs and which one.
3. What is your current version of your QTP
4. Do you have any installed patches and which exactly
5. What is your current version of NetAdvantage and TestAdvantage products
6. Are you using CLR2.0 or CLR4.0
7. Are you able to recored and replay correct scripts with our default samples
Please take a look at the answers of your questions:
Issue 1: If you are talking about specific Infragistics properties, then you could use GetNAProperty() method
Issue 2: Will be better to give us more details about the controls into your AUT. Looking at that information, I suppose that you should install one or more QTP patches to be able to identify correctly Infragistics controls
Issue 3,4: I`m not sure what you mean. Please explain.
Let me know if you have any questions.
Regards
If you need any additional assistance don’t hesitate to ask.
Hi Georgi,
1. OS - WINDOWS 7 - Enterprise Edition - 64 Bit Operating System - 6GB RAM2. WINDOWS 7 - Enterprise Edition - Service Pack 1 3. Current Version of the QTP is HP UFT 11.54. UFT 11.52 is the latest patch that is installed for UFT 11.55. Current Version Netadvantage 2009 .Volume 2 , Testadvantage 2009 .Volume 26. 9.2 CLR2.0 - Licensed version7. Since i was able to proceed better with my Application under test - Did Not try record and replay on the default samples
Just to brief the case what i was trying to understand During the QTP record - swf table is identified in the below hierarchy - i tried the PLay back with .getcelldata - it worked perfectly fine no issuesswfwindow1("").swfwindow2("").swftable("").getcelldata("")
When the same swftable is spied via the object spy of QTP between swfwindow1 and swfwindow2 there are may swfobject and swftabs
Long hierrachy between swfwindow1 and swfwondow2 is as below swfwindow1("").swfobject("").swfwindow2("").swfobject("").swfobject("").swfobject("").swftab("").swfobject("").swfobject("").swftable("").getcelldata
In the above long hierrachy i was able to identify objects only till swfwindow("").swfobject("") - Followed by that my Properties were not strong enought to recognize the Objects uniquely
my final goal was to understand whether its a good practise to Descriptively Code for all the objects between the swfwindow1 and swfwindow2 or just Consider the 2 swfwindows for object recognition and proceed - which as of now its working?
Due to some reason - GetNApropery is not visibe in the intellisense of the UFT 11.5 IDE - but GEtnapropery , getcolumn control all are visibe in the Operations section of the test Object - Any Tips to improve the intellisese - so that we coud try all the available Operations before posting in the forum?
New issue
In order to set a cell in the swftable - I am trying the below Snippet - but it throws an error saying - object doesnt support this action - below is the snippet
SwfWindow("").SwfWindow("").SwfTable(tablex).ActivateCell 0,7
SwfWindow("").SwfWindow("").SwfTable(tablex).SelectCell 0,7
SwfWindow("").SwfWindow("").SwfTable(tablex).Type "57,00"
Thank you very much georgi for responding - sorry for the dealyed response
By the way,
Have a doubt for long time.
Could you update why we have named as Swf to identify the type of object in QTP. Normally Swf means related to Shock Wave or adobe flash :)
Thanks,
Shanmugavel.C
Shanmugavel,
This is a better question for HP as they are the company that provides Quick Test Professional and the .NET Add-In. In doing a search online I found an answer on StackOverflow that indicates that the SWF stands for System.Windows.Forms: http://stackoverflow.com/questions/1121579/qtp-dynamic-great-plains-automation/1362704#1362704