Object Model Reference for GUI Testing > Supplemental Objects > Check Method

XMLFile Object

Description

An object representing an XML file.

Methods

Method Check Executes an XML checkpoint.
Method GetData Retrieves the data from the XML file.
GetTOProperty Returns the value of an description properties from the test object description.
SetTOProperty Sets the value of an description properties in the test object description.

Back to top

Check Method

Description

Executes an XML checkpoint.

Note: You create checkpoints and define the property checks for the checkpoint using the Design > Checkpoint > XML Checkpoint (From Resource) option. For more details, see the HPE Unified Functional Testing User Guide.

Syntax

XMLFile(description).Check CheckPoint(Name)

Argument

Type

Description

CheckPoint (Name)

Variant

The checkpoint object, which contains the expected values to be compared and verified during the test run.

Note: If you want to retrieve the return value of a checkpoint, you must add parentheses around the name of the checkpoint in the statement. For example:

a = Browser("MyBrowser").Page("MyPage").Check (CheckPoint("MyProperty"))

Return Value

Boolean


Back to top

GetData Method

Description

Retrieves the data from the XML file.

Syntax

XMLFile(description).GetData

Return Value

XMLData Object


Back to top

GetTOProperty Method

Description

Returns the value of an description properties from the test object description.

Note: You can use the GetTOProperty method to retrieve the values of only those properties that are included in the test object description. Specifying a property that is not included in the test object's description results in a warning status for the step and the test. For more details on adding properties to a test object description, see the HPE Unified Functional Testing User Guide.

Syntax

XMLFile(description).GetTOProperty(Property)

Argument

Type

Description

Property

String

The description properties to retrieve from the object description.

Return Value

Variant


Back to top

GetTOProperty Method

Description

Sets the value of an description properties in the test object description.

Example: Notes:

SetTOProperty changes the property values used to identify an object during the test run. It has no effect on the values saved in the Object Repository for the object.

You can only set values of properties that are included in the test object description. For more details on adding properties to a test object description, see the HPE Unified Functional Testing User Guide.

Syntax

XMLFile(description).SetTOProperty Property, Value

Argument

Type

Description

Property

String

The description properties to set.

Value

Variant

The value to assign to the listed property.


Back to top