How to use same script for multiple URLs - 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: How to use same script for multiple URLs (/Thread-How-to-use-same-script-for-multiple-URLs) |
RE: How to use same script for multiple URLs - mansis - 08-30-2012 Hi, Imported file with .xls file, still same syntax error occurs. Please review below updated script and see error screen shot from my previous post. Please do needful. ------------- Code: Datatable.Import"D:\Datasheet\book1.xls" Thanks, Mansi. RE: How to use same script for multiple URLs - sshukla12 - 08-30-2012 Hi, I used the below code and it works fine for me: Code: DataTable.Import("D:\Book1.xls") Just make sure u passed the URL of application in datasheet Regards, Sankalp RE: How to use same script for multiple URLs - mansis - 08-30-2012 Hi Sankalp, Thanks for helping me in solving described error. But now new error occurs (refer attachment). Please review below script- ----------- Code: DataTable.Import("D:\Book1.xls") ---- Thanks Mansi. RE: How to use same script for multiple URLs - sshukla12 - 08-30-2012 Hi, Have u put the datasheet at D drive? Regards, Sankalp RE: How to use same script for multiple URLs - mansis - 08-30-2012 Hi, Yes, It is in D drive and it is fetching URL correctly.. But error occurs for username and password.. Please review my script and error screen from previous post.. RE: How to use same script for multiple URLs - mansis - 08-30-2012 Hi, Please help me urgently on mentioned issue. Thanks, Mansi. RE: How to use same script for multiple URLs - sshukla12 - 08-30-2012 Hi, Could you please provide the datasheet snapshot? Regards, Sankalp RE: How to use same script for multiple URLs - mansis - 08-30-2012 Hi, Please review attached datasheet snapshot.. Thanks, Mansi. Help me plssss......... Thanks, Mansi. RE: How to use same script for multiple URLs - sshukla12 - 08-30-2012 Hi, Try to use below code Code: DataTable.Import("D:\Book1.xls") Regards, Sankalp RE: How to use same script for multiple URLs - mansis - 08-30-2012 Hi, Not working.. again same error occurs.. Now I am hopeless. can you help me by using goto meeting?? Thanks, Mansi. |