![]() |
Constants - 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: Constants (/Thread-Constants) |
Constants - shayk1985 - 12-07-2012 i declared constant const browser="www.gmail.com" while calling systemutil.run browser i m getting error like Name redefined:'Browser' why im getting such error even though i have just assigned once please help thanks RE: Constants - elango87 - 12-07-2012 You cant use reserved keywords in QTP for declaring the variables. Browser is a reserved keyword which is suppose to denote a web browser. Similarly you cant use page, dialog etc,. Also, your code is wrong, Try, Code: const mybrowser = "GMAIL.COM" RE: Constants - shayk1985 - 12-08-2012 thanks alot got it |