Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Articles On Testing

Wecome to http://www.articlesontesting.com !!!

Showing posts with label Virtual Objects in QTP. Show all posts
Showing posts with label Virtual Objects in QTP. Show all posts

Removing Virtual Object Definition


Removing or Disabling Virtual Object Definitions:


Some other posts that can be very useful on the Virtual Objects In QTP :

Removing-virtual-object-definition In QTP
Virtual-objects-configuration-option In QTP
Understanding-virtual-objects In QTP
Qtp-virtual-objects In QTP
You can remove virtual objects from your test by deleting them or by disabling recognition of these objects while recording.

To delete a virtual object:
  1. Select Tools > Virtual Objects > Virtual Object Manager. The Virtual Object Manager opens. For more information, see The Virtual Object Manager Dialog Box.
  2. In the list of available virtual object collections, click the plus sign (+) next to the collection to display the virtual object you want to delete. Select the virtual object, and click Delete.
  3. To delete an entire collection, select it and click Delete.
  4. Click Close.
  5. Tip: Click New in the Virtual Object Manager to open the Virtual Object Wizard, where you can define a new virtual object.

To disable recognition of virtual objects while recording:
  1. Select Tools > Options or click the Options toolbar button . The Options dialog box opens.
  2. In the General pane, select the Disable recognition of virtual objects while recording check box.
  3. Click OK.
  4. Note: When you want QuickTest to recognize virtual objects during recording, ensure that the Disable recognition of virtual objects while recording check box in the General pane of the Options dialog box is cleared. For more information, see Setting General Testing Options.

The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.
More On Object Properties in QTP

Understanding Virtual Objects

Understanding Virtual Objects


Some other posts that can be very useful on the Virtual Objects In QTP :

Removing-virtual-object-definition In QTP
Virtual-objects-configuration-option In QTP
Understanding-virtual-objects In QTP
Qtp-virtual-objects In QTP

QuickTest identifies a virtual object according to its boundaries. Marking an object's boundaries specifies its size and position on a Web page or application window. When you assign a test object as the parent of your virtual object, you specify that the coordinates of the virtual object boundaries are relative to that parent object. When you record a test, QuickTest recognizes the virtual object within the parent object and adds it as a test object in the object repository so that QuickTest can identify the object during the run session. QuickTest also recognizes the virtual object as a test object when you add it manually to the object repository.

You can disable recognition of virtual objects without deleting them from the Virtual Object Manager. For more information, see Removing or Disabling Virtual Object Definitions. 


Notes:



  • During a run session, make sure that the application window is the same size and in the same location as it was during recording, otherwise the coordinates of the virtual object relative to its parent object may be different, and this may affect the success of the run session.




  • You can use virtual objects only when recording and running a test. You cannot insert any type of checkpoint on a virtual object, or use the Object Spy to view its properties.




  • To perform an operation in the Active Screen on a marked virtual object, you must first record it, so that its properties are saved in the test object description in the object repository. If you perform an operation in the Active Screen on a virtual object that has not yet been recorded, QuickTest treats it as a standard object.




  • The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.

    QTP Virtual Objects

    About Learning Virtual Objects:

      Some other posts that can be very useful on the Virtual Objects In QTP :

    Removing-virtual-object-definition In QTP
    Virtual-objects-configuration-option In QTP
    Understanding-virtual-objects In QTP
    Qtp-virtual-objects In QTP



                  Your application may contain objects that behave like standard objects but are not recognized by QuickTest. You can define these objects as virtual objects and map them to standard classes, such as a button or a check box. QuickTest emulates the user's action on the virtual object during the run session. In the test results, the virtual object is displayed as though it is a standard class object.

    For example, suppose you want to test a Web page containing a bitmap that the user clicks. The bitmap contains several different hyperlink areas, and each area opens a different destination page. When you create the test, the Web site matches the coordinates of the click on the bitmap and opens the destination page.

    To enable QuickTest to click at the required coordinates during a run session, you can define a virtual object for an area of the bitmap, which includes those coordinates, and map it to the button class. When you run the test, QuickTest clicks the bitmap in the area defined as a virtual object so that the Web site opens the correct destination page.


    You define a virtual object using the Virtual Object Wizard (Tools > Virtual Objects > New Virtual Object). The wizard prompts you to select the standard object class to which you want to map the virtual object. You then mark the boundaries of the virtual object using a crosshairs pointer. Next, you select a test object as the parent of the virtual object. Finally, you specify a name and a collection for the virtual object. For more information, see Defining a Virtual Object.


    Virtual object collections are groups of virtual objects that are stored in the Virtual Object Manager under a descriptive name. For more information, see Understanding the Virtual Object Manager.


    The virtual object collections displayed in the Virtual Object Manager are stored on your computer and not with the tests that contain virtual object steps. This means that if you use a virtual object in a test step, the object will be recognized during the run session only if it is run on a computer containing the appropriate virtual object definition. To copy your virtual object collection definitions to another computer, copy the contents of your \dat\VoTemplate folder (or individual .vot collection files within this folder) to the same folder on the destination computer.


    Note: QuickTest does not support virtual objects for analog or low-level recording. For more information on low-level recording, see Creating Tests. 


    The below stuff is very important and very frequently used by any QTP programmer in Object identification using QTP.