I am creating child scripts to run under a parent script. One of my scripts is called Firefox and all I want it to do is launch firefox. I entered Script.RunApp("C:\Firefox3\firefox.exe"). Which is obviously wrong and probably tells you I am not a scripter. The one other note is that I want to call the child scripts from my parent script...would that be CallScript("Login.qawscript")?
Oh one more, how to I assign which column on my external datasheet gets assigned to the login name in my script?
From page 269 of the manual[ QUOTE ]
RUNAPP() Starts the application that is used during script playback. Must be preceded by a Set Context statement, which tells QA Wizard Pro which application repository version to use.
Question 1) Is the app you are testing running in Firefox? The RunApp() command is supposed to start the who thing. If a subscript is just launching Firefox as part of a subroutine, then I don't quite know the answer to your question, and I am wondering the same thing.
notice that "scriptname" does NOT have the .qawscript extension on it.
Q3) For an external data sheet:
a) Make a new excel file. First row should be the name of the variables ("variablename") that you will use to refer to the values.
Second row and beyond contain the values.
b) Under workspace window, right-click external datasheets and add your data sheet. Make sure to check the box that says: "First Row Contains Column Headers"
c) In your script:
Recordset = OpenRecordset("excelfilenameofdatasheet")
V = GetRowValue(Recordset, "variablename")
Window("yourwndow").EditBox("yourloginbox").TypeTe xt( V )
you can use
NextRow(Recordset) if you need to go to the next row in the file.