dim i
for i=1 to 10
if (i mod 2<>0) then
msgbox i&"is odd number"
end if
next
above example prints odd numbers from 1 to 10.
Showing posts with label qtp code examples. Show all posts
Showing posts with label qtp code examples. Show all posts
qtp script to print odd numbers-script in qtp to print odd numbers from 1 to 10-basic qtp scripts for beginners-qtp sample examples-qtp scripts-qtp
QTP Script to Get Names of Subfolders in a Folder
Script in QTP to get Collection(names) of Subfolders in a Folder.
Below script is to get Subfolders names in Folder V1
Where Folder V1 is in Fdrive.
Dim a,b, c, d, e
Set a = CreateObject("Scripting.FileSystemObject")
Set b = a.GetFolder("F:\V1")
Set c = b.SubFolders
For Each d in c
e=e&d.name&vbnewline
Next
msgbox e
Movie Songs Lyrics
SQL Queries
QTP Script To Delete File From Particular Location
QTP Script to delete particular file from particular location.
Set f = CreateObject("Scripting.FileSystemObject")
f.DeleteFile("D:\file1.txt")
The Above Script will remove(delete)notepad naming file1(text file)from D drive.
QTP Script To Create File
Data Driven Testing Using Notepad
Subscribe to:
Posts (Atom)