-->Batch Test

The purpose of the batch test is to execute a group of rebated scripts one by one without any user interaction.
Precautions that need to be taken care for creating the batch test.
1.Ensure that all the individual scripts are up & running properly without any problem
2.Ensure that each individual scripts taking care of its resources by object repository file, Environment file, library file, recovery files, external actions, etc.
3.Ensure that each script is handling Recovery scenario’s i.e, exception handling
4.Don’t use options like message box, input box etc, which requires a user interaction

Steps to Create a Batch Test:
1.Select Programs --> QTP --> Tools --> Test Batch Runner
2.Select Batch --> Add --> Select the required first file to execute
3.Repeat the above 2 steps to add the required scripts to the batch test --> Save the batch file (.mtb --> mercury test batch)
4.Select Batch --> Run
5.To run the batch test incase of any permission issue, follow these steps.
I.Go to QTP window --> Select Tools
II.Options --> Click on Run tab
III. Check the check box of 'Allow other mercury products to run tests & components'
IV.Click on Apply & OK.