![]() |
Input box in QTP Script. - 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: Input box in QTP Script. (/Thread-Input-box-in-QTP-Script) |
Input box in QTP Script. - karraaruna - 01-11-2011 Hi, I have a requirement in my QTP Script. I need to get an Input box to prompt the end user to enter data in runtime and complete the script.for eg. At present Iam entering the hardcoded value in the script as follows Code: JavaWindow("UserInformationSystem").JavaInternalFrame("Valid Values").JavaTable("Table[]").SetCellData "1","7","20100912" In place of 20100912, Iwant to get a prompt for entering the userdata also can we get sysdate in place of the existing date. Could you please let me know how can we do the above. Thanks very much in advnce. RE: Input box in QTP Script. - manishbhalshankar - 01-11-2011 Hi Karraaruna, This can be done using: Code: Dim inputVariable RE: Input box in QTP Script. - karraaruna - 01-12-2011 Thanks for the response, But my problem is not solved yet. I could able to enter date in the input box but it is not assigned into the application whilte running the script.. Here it follows Code: Dim inputVariable but nothing is assigned to the mentioned column. could you please tell me how can I do this thanks very much in advacne. |