P. 1
Advanced QTP

Advanced QTP

|Views: 249|Likes:
Published by Shiva Reddy

More info:

Published by: Shiva Reddy on Apr 30, 2012
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less





Test objects play several roles in QTP, the most immediate one is object identification.

By using a window test object with a text property of “Notepad”, we tell QTP to look for a
runtime window object with text = “Notepad”.

Another important role is standardization. While the application runtime objects might be

extremely complex, the corresponding QTP test objects are standard and very simple in

comparison. The test object‟s simple properties and methods act as a bridge, sparing us
the need to nitpick our way through the runtime object‟s unknown commands, events
and properties. QTP will translate the test object‟s simple commands to the runtime
object‟s commands required to perform the task at hand.

For example, selecting a value in a .Net combobox usually involves changing several

properties (SelectedIndex, SelectedItem), and raising several events

(SelectionChanged, ItemSelected, TextChanged, etc.). However, the corresponding

SwfComboBox test object provides a much more simpleand standard “Select” method

which does the trick for you.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->