Extend test object methods and properties

Your test objects can access any methods and properties that are supported on OpenText Functional Testing for that test object type. This enables you to use methods and properties you are familiar with from OpenText Functional Testing, even if they are not supported in OpenText Functional Testing for Developers. Similarly, you can use methods and properties introduced or modified on OpenText Functional Testing using extensibility.

Access OpenText Functional Testing description properties

To use OpenText Functional Testing description properties in your test object descriptions, create a map or dictionary object that pairs the property names with their values. Then, add the map or dictionary object to your object description in the optional objectProperties argument.

For examples of how to use OpenText Functional Testing properties in your object descriptions, see the Java, JavaScript, and .NET code samples.

Back to top

Call OpenText Functional Testing test object methods and properties

Use the callFTMethod method to call any test object methods or properties that are defined in OpenText Functional Testing for this test object type, but are not part of the OpenText Functional Testing for Developers SDKs.

The syntax varies depending on whether the OpenText Functional Testing method or property you call returns a value.

The syntax for using the callFTMethod method in Java, JavaScript, and C# is described below. For examples of this use, see the Java, JavaScript, and .NET code samples.

In Java tests:

The syntax for calling a method or property that does not return a value: 

<object>.callFTMethod(<FT method name>, <arguments for the called method>)

The syntax for calling a method or property that returns a value: 

<variable> = <object>.callFTMethod(<FT method name>, <Return type>, <arguments for the called method>)​

In JavaScript tests: 

The syntax for calling a method or property that does not return a value: 

<object>.callFTMethod(<FT method name>, <arguments for the called method>)

The syntax for calling a method or property that returns a value: 

<variable> = <object>.callFTMethod(<FT method name>, <arguments for the called method>)​

In C# tests: 

The syntax for calling a method or property that does not return a value: 

<object>.callFTMethod(<FT method name>, <arguments for the called method>)

The syntax for calling a method or property that returns a value: 

<variable> = <object>.callFTMethod<Return type>(<FT method name>, <arguments for the called method>)​

Back to top

See also: