qtp interview question - 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: qtp interview question (/Thread-qtp-interview-question--7144) |
qtp interview question - raaj123 - 01-21-2013 hi all, I faced below interview questions please provide me VB Script for those 1) v- 4(root 4) to get 2 write the vb script 2)12.34567 how to round last three digits 3)how to minimize and maximize a window using vb script Regards, raaj RE: qtp interview question - ssvali - 01-21-2013 for second question - You can use Round built-in function to round the decimal number Code: Round("12.34567",3) RE: qtp interview question - Ankesh - 01-21-2013 @Raaj, There are functions available for your first and second question. 1. Use SQR function. Refer QTP help a=SQR(4) will return 2. 2. Use Round function for this. 3. if you are talking about browser, there are methods (such as Maximize, minimize) available to do that. Regards, Ankesh |