Posts: 21
Threads: 6
Joined: Oct 2010
Reputation:
0
11-09-2010, 09:26 AM
Hi,
Thanks. But it did not help eithere. It says ''object required''.
Not sure?
Safi
Posts: 21
Threads: 6
Joined: Oct 2010
Reputation:
0
11-09-2010, 08:27 PM
I am simply testing if checkpoint exist then do some. if not, do some.
This is the whole point.
Thanks.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
11-10-2010, 03:21 PM
Hi Bangla123 - Do you mean that you want to check the existance of a checkpoint with the script and do further action. that does not makes sense to me. existance of an object should be checked to the AUT not with the repository. would you ever try to check if a webedit test object exists in your OR before setting a value to it. I think - not. I cant think of any scenario like this so I would also like to know - why forces you do this in such way, please explain the case.
however you can do this in QTP - checkout objectrepositoryutil in QTP help (Object Repository Automation object). using this object you can go through your objectrepository. You can create a function to find the testobject in Object rep or may be GetObject method can be used to check if your checkpoint exists.
Posts: 1,199
Threads: 5
Joined: Nov 2008
Reputation:
0
11-10-2010, 05:59 PM
don't remember any good link for this now, but you will definitely see a post related to this on learnqtp in some time.
by the time,QTP help or may be google on this can help you . let me know for any confusions.