Designing Test Object Configuration XML File in QTP

In this file, you define any custom test object classes that you want QTP to use to represent your custom controls in tests and components. Define a test object class for each custom control that cannot be adequately represented by an existing Delphi test object class.

In a test object configuration XML, you define the test object classes (for example, their identification properties, the test object methods they support, and so on). To do this you define a ClassInfo element for each test object class. In addition, you define the name of the environment or custom toolkit for which the test object classes are intended (in the TypeInformation\PackageName attribute), and the QTP add-in which these test object classes extend (in the TypeInformation\AddinName attribute). If the relevant add-in is not loaded when QTP opens, QTP does not load the information in this XML. Similarly, if the name of the environment or custom toolkit is displayed in the Add-in Manager dialog box and its check box is not selected, the information in this XML is not loaded.

A test object class definition can include the following:

  • The name of the new test object class and its attributes, including the base class—the test object class that the new test object class extends. The test object class name must be unique among all of the environments whose support a QTP user might load simultaneously.
  • The generic type for the new test object class, if you want the new test object class to belong to a different generic type than the one to which its base class belongs. (For example, if your new test object class extends DelphiObject (whose generic type is object), but you would like QTP to group this test object class with the edit test object classes.)
  • The path of the icon file to use for this test object class (Optional. If not defined, a default icon is used.) The file can be a .dll or .ico file.
  • A context-sensitive Help topic to open when F1 is pressed for the test object in the Keyword View or Expert View. The definition includes the Help file path and the relevant Help ID within the file.
  • A list of methods for the test object class
  • The test object operation that is selected by default in the Keyword View and Step Generator when a step is generated for an object of this class.
  • A list of identification properties for the test object class

Note: You can also create a definition for an existing test object class in the test object configuration XML. This definition is added to the existing definition of this test object class, affecting all test objects of this class. It is therefore not recommended to modify existing test object classes in this way.

If you add a test object method, it appears in the list of test object methods in QTP, but if you use the test object method in a test, and it is not implemented for the specific object, a run-time error occurs.

If you add test object methods to existing test object classes, you might add a prefix to the method name that indicates the toolkit support for which you added the method (for example, CustomButtonClick, CustomEditSet). This enables test designers to easily identify the custom methods and use them in test steps only if they know that the custom method is supported for the specific object.

» Filed Under QTP

Comments

Leave a Reply




  • Enter your email address:

    Delivered by FeedBurner

  • zara phillips wedding hat
  • dis poem
  • new england patriots offense
  • vince young football camp
  • search domains
  • vince young injury
  • zara phillips fascinator
  • couples
  • freida pinto boyfriend
  • dvdrip
  • connecticut quarter error
  • vince young z
  • connecticut 5 star resorts
  • mint
  • cloud
  • search 990 filings
  • bengals andy dalton
  • chicago bears posters
  • connecticut football
  • chad ochocinco age
  • tea party for kids
  • vince young released
  • la ink price list
  • chicago bears 1985
  • randy moss jail
  • cspan journal
  • bea spells a lot
  • chad ochocinco xpchad ochocinco youtube
  • new england patriots 3 4
  • zara phillips youtube 2009
  • tea party medicare
  • bea fox
  • bea verdi
  • randy moss legal issues
  • wellington
  • mtv oddities
  • chicago bears zip hoodie
  • bengals 80's
  • freida pinto green dress
  • discovery
  • bear gryllsbea hive dance studio
  • search engines for jobs
  • chelsea
  • bea 4603
  • piston
  • randy moss university
  • new england patriots 4
  • chicago bears number 17
  • hilltop
  • new england patriots 98.5
  • connecticut law tribune
  • greg olsen vikingsgreg olsen wife
  • search cfisd.net
  • cspan facebook
  • hp support venezuela
  • hoya
  • la ink bob tyrrell
  • hp support 6930p
  • vince young dadvince young eagles
  • troubleshoot
  • hp support englandhp support forum
  • greg olsen vancouver
  • edmonds
  • connecticut 104.1
  • freida pinto miral
  • dually
  • bangles eternal flame mp3bengals forum
  • futon
  • bengals preseason schedule 2011
  • tiburon
  • cspan government shutdown
  • mtv american idol
  • coyle
  • roaming
  • slam
  • sonne
  • searchbugsearch engines
  • greg olsen twitter
  • search jail inmates
  • connecticut state parks
  • vince young yahoo stats
  • battleship aurora
  • search protocol host
  • la ink map
  • la ink jabberwocky
  • bier
  • oragami
  • religious
  • bengals cheerleaders tryouts 2011
  • bea nipa
  • la ink 105
  • ferrari
  • tea party table settings
  • battleship yamato wreck
  • chicago bears media relations
  • mtv executivesmtv fantasy factory
  • personel
  • connecticut renaissance faire
  • bcbs
  • vince young uncle rico gif
  • la ink show
  • search engines 9
  • flesh
  • anodized
  • ginger
  • chicago bears expo
  • 21st
  • tea party nj
  • vince young rivals
  • randy moss wallpaper
  • zara phillips royal wedding picture
  • kelvin
  • zara phillips and the queen
  • peugeot
  • new england patriots 98.5
  • bea 71 series staples
  • chad ochocinco traded
  • greg olsen puzzles
  • chicago bears schedule 2011
  • connecticut secretary of state
  • caliper
  • acrobat
  • search engines rankings 2011
  • mtv live
  • chad ochocinco parents
  • dis n dat band
  • transistors
  • stall
  • chad ochocinco nascar
  • hp support contact us
  • chad ochocinco quotes video
  • bengals job fair
  • cspan michelle bachmann
  • vince young drunk
  • wolff
  • helios
  • cspan question timecspan radio
  • chad ochocinco 15
  • new england patriots wiki
  • freida pinto dev
  • cheverolet
  • tea party manifesto
  • scrub
  • connecticut food bank
  • hp support helpline
  • georg
  • adjustable
  • new england patriots 1997 roster
  • heavenly
  • search and seizure
  • zara phillips yachtzara phillips zimbio
  • tea party obama
  • dis tester
  • zara phillips kids
  • vince young stats
  • la ink phone number
  • search xml file
  • search engines of the world
  • vince young wiki
  • bengals merchandise
  • connecticut education
  • la ink games online
  • search chuck norris
  • search 50 cent
  • kenai
  • lunar
  • bea zuberbühler
  • hp support hard drive replacement
  • saturation
  • inches
  • tea party chicago
  • dis unplugged show notes
  • harvard
  • vince young 2008
  • zara phillips baby
  • subprime
  • hp support 2133
  • hp support greece
  • vince young yahoo stats
  • reloaded
  • cspan hosts
  • guardian
  • dis boards cruise
  • zara phillips tongue
  • assembly
  • bea test
  • connecticut department of labor
  • greg olsen football
  • search engines for kids
  • chicago bears jewish players
  • battleship wilmington nc
  • vince young status