I am trying to run some of my QTP scripts in Batch mode using Batch runner as well as Multi Test Manager. But in both the cases I am getting error "Can not close unsaved tests" after 1st script is completed. Is there any specific setting to be made in QTP 6.5 before running scripts in batch mode?
I have running the script by inserting a VB code which will save the script after execution still it shows same message box. Because of this message box next script does not execute. It needs manual intervention of closing the message box which is not desired.
Do you manually close the "Cannot close the unsaved tests" messagebox or you are using any different method?
...Do you manually close ...
Never ever ! Nothing by hand! All my batchs run without my supervision.
...save the script after execution...
There is no need to save the script after execution, because it's not editing process and BatchRunner handles it in ReadOnly mode.
I think, it is something another, then BatchRunner problem...
If you send me your script, I'll try to help.
In my experience the problem occurs when there are unused called actions in your test. To look at the actions called enable the action toolbar from 'View' menu. Now try and map the called actions with the actions in your script. If you have forgotten to remove the called action completely from the script, you can 'Call an Existing Action' and then delete it. However this time choose the 'Delete the action and all its calls from the test' option and not 'Delete the selected call to action'.
This seemed to work for me so you can give it a try too.
Are you setting any configuration parameters while running your tests?
For example, whenever you load the Environment File or Libraries then QTP prompts for a save while exiting the test and before loading the next test in the batch.
Solution? If you find one then let me know! I don't think we have a "Save" method for the "QuickTest.Application" object either.