Data-driven testing Questions

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
asked by:
37
5 pts.

1