1
QTP Script for Data Driven Testing using Notepad
Set f=createobject(“scripting.filesystemobject”) Set f1=f.createtextfile(“d://file1.txt”) f1.writeline”Raju Rani” f1.writeline”King Queen” f1.writeline”Radha Krishna” f1.writeline”Thirupathi Gangula” f1.writeline”Bala Kishan” The above script creates a notepad in “d” drive with name file1 Raju Rani King Queen Radha Krishna Thirupathi Gangula Bala Kishan values are stored in file1.txt. Set f2=f.opentextfile(“d://file1.txt”) While f2.atendofstream<>true f3=f2.readline x=split(f3,” “) msgbox x(0) msgbox x(1) Wend The above [...]
Answer Question
| September 29, 2010 10:42 AM
Data-driven testing, QTP, QTP script error handling, QTP Scripting, QuickTest Professional
Set f=createobject(“scripting.filesystemobject”) Set f1=f.createtextfile(“d://file1.txt”) f1.writeline”Raju Rani” f1.writeline”King Queen” f1.writeline”Radha Krishna” f1.writeline”Thirupathi Gangula” f1.writeline”Bala Kishan” The above script creates a notepad in “d” drive with name file1 Raju Rani King Queen Radha Krishna Thirupathi Gangula Bala Kishan values are stored in file1.txt. Set f2=f.opentextfile(“d://file1.txt”) While f2.atendofstream<>true f3=f2.readline x=split(f3,” “) msgbox x(0) msgbox x(1) Wend The above [...]
VBScript error handling code snippet
I am running a batch of QTP (test automation tool) scripts written in vb script overnight. Could some one send me an error handling vb script code snippet that I may insert in each script which automatically exists any script that encounters an environmental or any other error in it’s run, writes a line to [...]
Answer Question
| December 22, 2008 3:23 AM
Error handling, HP QuickTest Professional, QTP, QTP script error handling, QuickTest Professional, Software Quality, Software Quality Assurance, Software testing, Software testing methodologies, VB error handling, VBScript error handling
I am running a batch of QTP (test automation tool) scripts written in vb script overnight. Could some one send me an error handling vb script code snippet that I may insert in each script which automatically exists any script that encounters an environmental or any other error in it’s run, writes a line to [...]
1





