02-26-2009, 03:40 PM
Soln to REQ1:
You can use 'Test Batch Runner' to run several tests in succession. (Start->All Programs->QTP->Tools->Test Batch Runner.
From 'File' menu select 'New',Then from Batch menu select 'Add'.Now 'Open Test' dialog will open and you can add your 5 test to it.Svae it as .mtb file. Now you can run it(F5 or Batch ->Run) Make sure that in QTP tools->option->run tab 'allow other mercury product to..." check box is checked.
Using Test Batch Runner, you can set up a list of tests and save the list as an .mtb file, so that you can easily run the same batch of tests again, at another time. You can also choose to include or exclude a test in your batch list from running during a batch run.
Soln Req 2:
For this in tools->option->web tab -> 'Advance' option->check the 'browser cleanup' check box under the 'run seting'
Also you can close all the browser programetically after finishing your test steps.
Also let me know if this meets you requirements.
You can use 'Test Batch Runner' to run several tests in succession. (Start->All Programs->QTP->Tools->Test Batch Runner.
From 'File' menu select 'New',Then from Batch menu select 'Add'.Now 'Open Test' dialog will open and you can add your 5 test to it.Svae it as .mtb file. Now you can run it(F5 or Batch ->Run) Make sure that in QTP tools->option->run tab 'allow other mercury product to..." check box is checked.
Using Test Batch Runner, you can set up a list of tests and save the list as an .mtb file, so that you can easily run the same batch of tests again, at another time. You can also choose to include or exclude a test in your batch list from running during a batch run.
Soln Req 2:
For this in tools->option->web tab -> 'Advance' option->check the 'browser cleanup' check box under the 'run seting'
Also you can close all the browser programetically after finishing your test steps.
Code:
(use systemutil.CloseDescendentProcesses() /systemutil.CloseProcessByWndTitle("Internet Explorer")
Also let me know if this meets you requirements.