Test Objects in Web Environment

Web Environment Test Objects and Test Methods
I) Browser Object

It is a Browser or Browser Tab

Back: Navigates to the previous page in the browser history list. 

CaptureBitmap: Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension. 

Check: Checks whether the actual value of an item matches the expected value. 

CheckProperty: Checks whether the specified object property achieves the specified value within the specified timeout. 

ChildObjects: Returns the collection of child objects contained within the object. 

ClearCache: Clears the browser cache. 

Close Closes the browser window (or tab) that this test object represents. 

CloseAllTabs Closes all tabs (if any) and closes the browser window. 

DeleteCookies Deletes cookies from the browser. 

EmbedScript Runs the specified JavaScript each time a page or frame loads or refreshes in the browser. 

EmbedScriptFromFile Runs the JavaScript stored in the specified file each time a page or frame loads or refreshes in the browser. 

Forward Navigates to the next page in the browser history list. 

FullScreen Displays the browser in full-screen mode. 

GetDialogText Retrieves the text displayed in a browser dialog box such as alert, confirmation, or prompt. 

GetROProperty Returns the current value of the specified identification property from the object in the application. 

GetTOProperties Returns the collection of properties and values used to identify the object. 

GetTOProperty Returns the value of the specified identification property from the test object description. 

HandleDialog Clicks a button on the browser dialog box (alert, confirmation, or prompt) after entering a value if necessary. 

Home Navigates to the home page configured in the browser's settings. 

IsSiblingTab Indicates whether the specified tab is a sibling of this tab object in the same browser window. 

Navigate Opens a specified URL in the browser. 

OpenNewTab Opens a new tab in the browser window. 

Output Retrieves the current value of an item and stores it in a specified location. 

Refresh Refreshes the current page. 

RefreshObject Instructs UFT to re-identify the object in the application the next time a step refers to this object. 

SetTOProperty Sets the value of the specified identification property in the test object description. 

Sync: Waits for the browser to complete the current navigation. 

ToString: Returns a string that represents the current test object. 

WaitProperty: Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. 


II) Page Object

An HTML page.

CaptureBitmap Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension. 

Check Checks whether the actual value of an item matches the expected value. 

CheckProperty Checks whether the specified object property achieves the specified value within the specified timeout. 

ChildObjects Returns the collection of child objects contained within the object. 

GetROProperty Returns the current value of the specified identification property from the object in the application. 

GetTOProperties Returns the collection of properties and values used to identify the object. 

GetTOProperty Returns the value of the specified identification property from the test object description. 

Output Retrieves the current value of an item and stores it in a specified location. 

RefreshObject Instructs UFT to re-identify the object in the application the next time a step refers to this object. 

RunScript Runs the specified script. 

RunScriptFromFile Runs the script stored in the specified file. 

SetTOProperty Sets the value of the specified identification property in the test object description. 

Sync Waits for the browser to complete the current navigation. 

ToString Returns a string that represents the current test object. 

WaitProperty Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. 


III) Link Object

A hypertext link.

CaptureBitmap Saves a screen capture of the object as a .png or .bmp image, depending on the specified file extension. 

Check Checks whether the actual value of an item matches the expected value. 

CheckProperty Checks whether the specified object property achieves the specified value within the specified timeout. 

ChildObjects Returns the collection of child objects contained within the object. 

Click Clicks the object. 

Drag Performs the 'drag' part of a drag and drop operation. 

Drop Performs the 'drop' part of a drag and drop operation. 

FireEvent Triggers an event. 

GetROProperty Returns the current value of the specified identification property from the object in the application. 

GetTOProperties Returns the collection of properties and values used to identify the object. 

GetTOProperty Returns the value of the specified identification property from the test object description. 

MiddleClick Middle-clicks the object. 

Output Retrieves the current value of an item and stores it in a specified location. 

RefreshObject Instructs UFT to re-identify the object in the application the next time a step refers to this object. 

RightClick Right-clicks the object. 

SetTOProperty Sets the value of the specified identification property in the test object description. 

Submit Submits a form. 

ToString Returns a string that represents the current test object. 

WaitProperty Waits until the specified object property achieves the specified value or exceeds the specified timeout before continuing to the next step. 


 

0 comments:

Post a Comment