i have a batch process which runs for 8 hours .Now the developement of the application is complete .It's in testing phase.while testing(automation testing , with any tool )can the script call the batch process in and can the script wait for results from batch process for such a long time ?
Because QTP is VBScript (its scripting language) there are a couple of ways of invoking the command shell and passing the parameters (ie., batch file) to run.
Look up how to use the CMD command with the /K or /C switch as this will give you a hint on how to do it. Also look up how to use the Shell commands in VBScript and WSH (which I have already started for you below).
Via Google (http://quicktestprofessional.wordpre...ditional-faqs/):
How to run commands in command prompt from qtp?
Answer: You can run standard DOS commands in your QuickTest test using the VBScript Windows Scripting Host Shell object (WSCript.shell).
For example, you can open a DOS command window, change the path to C:\, and execute the DIR command using the following statements:
Set oShell = CreateObject (”WSCript.shell”)
oShell.run “cmd /K CD C:\ & Dir”
Set oShell = Nothing