Sunday 27 October 2013

Window objects and Web objects


QTP support three kind of objects

1) Technology object
2) Utility object
3) Supplemental object

1) Technology object:

-> These object represent the test object of various technlogy object like Web,Windows and VB

-> Test Objects WebList,WebButton belongs to Web Technology (WEB OBJECT - Those object represent like links,images on the WEB page )

-> Test Objects WinEdit,WinButton,WinList belongs to Win Technology ( WIN OBJECT - This object displayed on desktop based application developed using standard windows object)

-> Test objects VBButton,VBList belongs to VB Technology.

This also means WebButton differnent from WinButton and VBButton.

2) Utility Object :

-> These Object represent to used commonly in all technologies.
-> For Ex. the data tables is an object used to store the data required by test script.
-> Since these object is used for all technology like Web,Window and VB.

3) Supplemental object :

-> These are additional object supported by QTP.


Commen methods or procedure used in Web or win objects.


Check Method:

Its comapare the actual value with expected value and verify the result. return the boolean value.
       
we can use checkpoint for perform this operation.

Syntax:

object.check verify

object -> test object
verify -> Required. its varianlt value. checkpoint of the object to verify the actual value with expected value.
Return value -> Boolean value ( true or false)


GetROProperty

Its return the current value of the test object property from the object in the application.

Syntax:

object.GetROProperty(property name)

property name = property of the test object name
Return Value = return the test object property value.


GetTOProperty

Its return the correct property description of the object property from the object present in the application.

Syntax:

object.GetTOProperty()

Return value: its retun the proerty description

No comments:

Post a Comment