Micro Focus QTP (UFT) Forums
Batch Test Script Help - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Batch Test Script Help (/Thread-Batch-Test-Script-Help)



Batch Test Script Help - nidhitaneja - 02-09-2014

Hello seniors

I am trying to do batch testing using AOM script, I got from GC Reddy video on youtube but it's not working when I run it on my system. Basically, I save the 3 tests on desktop, then stored test file paths in another notepad file and made a vbs file with this script and placed folder path of all tests in it. I am getting error on line 2, I am new to scripting I am from nonIT background, please help. GC Reddy video is this : AOM Script for Batch Testing

Quote:Dim objFso, objTextstream, objQTP
Set objFso = CreateObject(“Scripting.FileSystemObject”)
Set objTextstream = objFso.OpenTextFile(C:\Users\333\Desktop\Script333.txt)

Set objQTP = CreateObject(“QuickTest.Application”)
ObjQTP.Launch

Do Until
objTextstream.AtEndofStream
Test path = objTextstream.ReadLine
ObjQTP.Test.Run
ObjQTP.Test.Close
Loop
ObjQTP.Quit
objTextstream.Close
Set objQTP=Nothing
Set objTextstream=Nothing
Set objFso=Nothing