Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can anyone give me some tips to automate tests?
#2
Not Solved
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.
Code:
(use systemutil.CloseDescendentProcesses() /systemutil.CloseProcessByWndTitle("Internet Explorer")


Also let me know if this meets you requirements.
Reply


Messages In This Thread
RE: Can anyone give me some tips to automate tests? - by papu - 02-26-2009, 03:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Fixed web tests with dynamic parts jdd 3 2,606 04-05-2016, 02:56 PM
Last Post: vinod123
  This code does not give total no of links present on page plz help it returns 0 excellentpawan 8 5,637 01-17-2015, 07:49 PM
Last Post: yogi4tech
  Run Button is not available in QTP 11 - while running tests from QC 11 Kannan R 0 1,895 08-13-2013, 08:15 PM
Last Post: Kannan R
  cannot open QTP tests learnasugo 8 9,281 10-18-2012, 11:28 AM
Last Post: Ankesh
  Can i Give Variable in Object name ??? thiyaga 2 3,176 06-20-2012, 09:21 PM
Last Post: Surya

Forum Jump:


Users browsing this thread: 2 Guest(s)