QTP Tips and Tricks - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: General (https://www.learnqtp.com/forums/Forum-General) +--- Forum: Suggestions and Feedback (https://www.learnqtp.com/forums/Forum-Suggestions-and-Feedback) +--- Thread: QTP Tips and Tricks (/Thread-QTP-Tips-and-Tricks) |
RE: QTP Tips and Tricks - Sathiya - 12-21-2011 hi Dude, thanks for the valuable information. In our application usually we use the following comment for waittime Wait(10) from your trick i use the following code sVal=Setting.(“DefaultLoadTime”) but the sVal was always "20" actually i want to retrive the time taken for page loading(during various actions) please help me in this regard. thanks in advance RE: QTP Tips and Tricks - rajpes - 01-30-2012 (12-21-2011, 05:54 PM)Sathiya Wrote: hi Dude,As i have indicated earlier, the setting changes are not saved once you close/exit qtp.You can use "timer" trick to find no. of seconds a page is taking to load. Assume your page has an image which is rendered after page is completely loaded. Dim startTimer,endTimer startTimer=Timer while NOT B().P().Image().exist(1) wend endTimer=Timer msgbox "total time taken in seconds:"& endTimer-startTimer RE: QTP Tips and Tricks - rajpes - 02-02-2012 @Sankalp,The values will be stored somewhere internally, you dont have to worry about that.Just make use of the values anytime even after test run is over! Using "Navigate and Learn" option - rajpes - 02-06-2012 This is another cool tip i discovered today. Suppose you have few webedits on a page and you need to add all of them into a shared object repository,instead of adding individual objects, go to object repository manager>press F6. click on Filter icon,configure only webedits. Then click on "Learn". Now all webeidts on the page would appear in the repository. You can choose mixture of object types as well (eg:webedits and links). This will save your time if you needed to add lots of objects RE: Using "Navigate and Learn" option - Dhiman - 02-15-2012 This one is really cool...i'll definetly try it. Thanks RE: Using "Navigate and Learn" option - MVChowdary - 02-16-2012 (02-06-2012, 07:45 PM)rajpes Wrote: This is another cool tip i discovered today. Rajpes, Good short cut to save the time adding the objects into OR. Is any way add objects like that into existing OR.? RE: Using "Navigate and Learn" option - inborntester - 03-02-2012 (02-16-2012, 10:28 AM)MVChowdary Wrote:(02-06-2012, 07:45 PM)rajpes Wrote: This is another cool tip i discovered today. AddObject method of Mercury.objectrepositoryUtil will be helpful for this. explore it further. RE: Using "Navigate and Learn" option - rajpes - 03-02-2012 (02-16-2012, 10:28 AM)MVChowdary Wrote:(02-06-2012, 07:45 PM)rajpes Wrote: Suppose you have few webedits on a page and you need to add all of them into a shared object repository,instead of adding individual objects, go to object repository manager>press F6. click on Filter icon,configure only webedits. You can first export local objects into a shared object repository(.tsr) Then open it in OR manager then add required objects of same type,save it.Delete all objects in your local OR and finally attach this SOR. RE: QTP Tips and Tricks - sshukla12 - 03-02-2012 (02-02-2012, 04:59 PM)rajpes Wrote: @Sankalp,The values will be stored somewhere internally, you dont have to worry about that.Just make use of the values anytime even after test run is over! Hi, Thanks, 4 ur Reply. One more query. If I have 2 scripts say A and B, I used settings.Add() in script A and try to use those value in Script B, will it be possible??? Regards, Sankalp RE: QTP Tips and Tricks - nakulgupta18 - 03-07-2014 (07-27-2011, 04:05 PM)rajpes Wrote: Just a puzzle here,You need print the pattern like below depending on no. of rows Hi Rajpes, Here you go - Code: row = inputbox(" enter no. of rows") If you have better code than this then please post |