10-08-2009, 11:50 AM
(10-08-2009 01:13 AM)qatestbrian Wrote: [ -> ]This is a great question because there are different ways to handle it if I am not mistaken. I had trouble with the GetROProperty method. I ended up using descriptive programming to identify other properties of the dynamic object and QTP could find it. But the script performance went into the toilet. It took longer for the script to find the object to execute against than it would have taken manually to run the step. Not what you are looking for in automation. I would love t hear more about identfying dynamic objects in scripts. How do the GetROProperties, GetTOProperties and GetCellData methods differ? And how do they compare in terms of performance and aplicability?
(08-20-2009 05:00 PM)njnirmal Wrote: [ -> ](08-20-2009 04:52 PM)QTPKing Wrote: [ -> ]Hi njnirmal,
First of all let me explain one scenario. Then you can implement the same scenario in your case.
'***********************
In your gmail account when you login you will have around 20 new mails then "Inbox(20)" will display. When you relogin next day the mail count may change to 35 then "Inbox(35)". Now I want to validate the "Inbox(X)", so what we can do is
1) Add this object to OR
2) Reg Exp the Value in the OR as "Inbox.*"
Then if you highlight from OR the Inbox(20) or Inbox(35) or Inbox(Anything) thing will highlight. So, now ur script will work without any issue though the number is changing dynamically.
'**************
The second method is as it is webbased application, i can use the getCellData method and get the value from the particular (Though the cell content is chaged from Inbox(20) to Inbox(35) the cell row number and col number will be constant).
'******************************
I think,you are also running with the similar case.
Hope you got my point, if else ping me back. NoProbs
I got it .Your first scenerio is same as my scnerio . I will try to implement at my scenerio .
QaTestBrian -
Please restrain yourself from posting in threads which are old. If you have a question open a new thread.
Thread has no activity for a long time. Closed the thread.