checkpoint exist or not - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: checkpoint exist or not (/Thread-checkpoint-exist-or-not) |
checkpoint exist or not - bangla123 - 11-05-2010 Hi, I am trying to test whether a checkpoint exist. If exist, do some. If not, do something else. Below code is giving me error. Some one pls help. thx. Code: if Browser("..").Page("....").Image("Change Password").Check CheckPoint("Change Password_2").exist Then Safi RE: checkpoint exist or not - sreekanth chilam - 11-06-2010 Hi, You missed braces i.e.( ) here. Try as given below. Code: If Browser("..").Page("....").Image("Change Password").Check (CheckPoint("Change Password_2")).exist Then RE: checkpoint exist or not - bangla123 - 11-09-2010 Hi, Thanks. But it did not help eithere. It says ''object required''. Not sure? Safi RE: checkpoint exist or not - A.Saini - 11-09-2010 Hi bangla123, We can easily test the checkpoint results but testing the existence of a checkpoint is quite interesting & new. I don't think that exist method support the QTP (Specially 9.2 & older versions).Please double check this with new versions as well. By the way please tell me the requirement of doing so. RE: checkpoint exist or not - bangla123 - 11-09-2010 I am simply testing if checkpoint exist then do some. if not, do some. This is the whole point. Thanks. RE: checkpoint exist or not - A.Saini - 11-10-2010 Hi bangla123, Ok... We will try to find out the possible solution. Please let me know whether QTP supporting Exist method for checkpoint at your end. I am still not 100 % confident as at my system it's not supporting. RE: checkpoint exist or not - Saket - 11-10-2010 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. RE: checkpoint exist or not - A.Saini - 11-10-2010 Hi Saket, Thanks for this very useful information. I want to learn more about this checkpoint existence issue. May you please provide some link related to this? RE: checkpoint exist or not - Saket - 11-10-2010 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. RE: checkpoint exist or not - A.Saini - 11-10-2010 Ok... I will follow your suggestion. By the way thanks for the quick reply... |