Monday, 17 March 2014

QTP Test Object Model

Test Object Model ----------------- Object: It is something, which have structure and information software objects: Window, WinButton, EditB... thumbnail 1 summary
Test Object Model
-----------------

Object: It is something, which have structure and information

software objects: Window, WinButton, EditBox, Browser, page


Types of Object Models:

there are 4 types;

1. run time objects

ex: Ok button enable,
    disable

2. test objects
      ex: WinEdit

3. utility object
      ex: to open executable files and control that type of objects.
         ex: vb flight application
  
    SystemUtil.run "path of the exe file"
    SystemUtil.run "path of the url"
      
4. automation objects:

  set objxl=CreateObject("Excel.Application")
                           

   
Object Calls:


Test Object:

Window    Window("WindowName")
       Ex: Window("Flight Reservation")

SubWindow Dialog("Sub-Window Name")
       Ex:  PopUP Window  :  Dialog("Login")
    
Edit Box  WinEdit("Edit Box Name")
       Ex: WinEdit("Agent Name:").Set "abcd"
  
ListBox
 / ComboBox   WinCombBox("ComboBox Name")
      Ex: WinComboBox("From:")

                
Menu       WinMenu("Menu")

RadioButton   WinRadioButton("Radiobutton Name")

CheckBox   WinCheckBox("Check Box Name")

PushButton   WinButton("Button Name")
               Ex: WinButton("OK").Click

Operations:
=================================
Activate the Window:   .Activate
           Window("Flight Reservation").Activate
Enter a value into text Box or Edit Box:   Set "Text" / "Value
           Window("E

No comments

Post a Comment