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.
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.