No, this was code provided by Quick Test Pro that I modified. I think I got it working though using:
qt_file = WScript.Argumen ts.Item(0)
Wscript.Echo "File Path: " & qt_file
instead of the qt_file = Command line.
Thanks!
User Profile
Collapse
-
Get Command Line Argument
Hello,
I’m trying to use my vbs script to get a command line argument for a file which will need to be opened through QuickTestPro. Below are the commands I’m using:
Dim qt_file 'As String -> If I don’t comment out the As String, I get an “Expected end of statement” error – is this correct??
qt_file = Command -> This doesn’t appear to be correct – when I echo out qt_file it’s null
qtApp.Test.Data Table.Import...
No activity results to display
Show More
Leave a comment: