test object model

6
[email protected] Test Object Model a) Object: Object is something, which has structure and properties. b) Software objects: We call windows, WebPages, buttons, edit boxes, check boxes etc. as software objects. c) Types of Object in QTP: There are four types of object available in QTP. i) Run time objects ii) Test objects iii) Utility objects iv) Automation objects/User defined objects. i) Run time objects: The objects present in the AUT. Ex: Buttons, links, etc… ii) Test Objects: References of Run time objects. Ex: WinEdit, WinButton, WebButton, Link, etc… Note: Test objects names vary from one environment to another. Ex: Ru n ti me objec ts Test o bj ects in windows Environment Test objects in VB Environment Test objects in web Environment buttons WinButton VBButton WebButton Edit box WinEdit VBEdit WebEdit Check box Wincheckbox Vbcheckbox Webcheckbox iii) Utility objects They are QTP reserved objects used for testing and result reporting. Ex: 1. SystemUtil for launching/closing the application. 2. Reporter for defining results. 3. Services for inserting transaction points 4. Environment for using environment variables iv) Automation objects/User defined objects User can create objects; those can be used for performing specific operations. Ex: Creating objects in file system object class, a dodb.connection class, dictionary object class, excel. Application class etc. QTP Training 1

Upload: gcreddy

Post on 10-Apr-2018

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Test Object Model

8/8/2019 Test Object Model

http://slidepdf.com/reader/full/test-object-model 1/6

Page 2: Test Object Model

8/8/2019 Test Object Model

http://slidepdf.com/reader/full/test-object-model 2/6

Page 3: Test Object Model

8/8/2019 Test Object Model

http://slidepdf.com/reader/full/test-object-model 3/6

Page 4: Test Object Model

8/8/2019 Test Object Model

http://slidepdf.com/reader/full/test-object-model 4/6

Page 5: Test Object Model

8/8/2019 Test Object Model

http://slidepdf.com/reader/full/test-object-model 5/6

Page 6: Test Object Model

8/8/2019 Test Object Model

http://slidepdf.com/reader/full/test-object-model 6/6