Application

Mobile. Application

new Application(props[opt]) → {Application}

The description of a mobile application test object.
Parameters:
NameTypeAttributesDescription
propsObject <optional>
Initializes the description using the supplied property bag.
Returns:
the description object that was initialized.
Type
Application

Methods

identifier(id[opt]) → {string|Description}

The application identifier string.
Parameters:
NameTypeAttributesDescription
idstring <optional>
When provided, this method acts as a setter and sets the identifier value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored identifier value; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

index(value[opt]) → {number|Description}

The 0-based index of this object, relative to all other objects with an otherwise identical description.
Parameters:
NameTypeAttributesDescription
valuenumber <optional>
When provided, this method acts as a setter and sets the index to the specified value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored index; otherwise it returns 'this' for use with the builder pattern.
Type
number | Description

isPackaged(packaged[opt]) → {boolean|Description}

Indicates whether this application is packaged (instrumented) or not.
Parameters:
NameTypeAttributesDescription
packagedboolean <optional>
When provided, this method acts as a setter and sets the isPackaged value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored isPackaged value; otherwise it returns 'this' for use with the builder pattern.
Type
boolean | Description

name(name[opt]) → {string|Description}

The name of the mobile application.
Parameters:
NameTypeAttributesDescription
namestring <optional>
When provided, this method acts as a setter and sets the name value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored name value; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

upload(upload[opt]) → {number|Description}

The application upload number. The upload number can be used to identify the application uniquely when the application is uploaded more than once.
Parameters:
NameTypeAttributesDescription
uploadnumber <optional>
When provided, this method acts as a setter and sets the application upload number.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored application upload number; otherwise it returns 'this' for use with the builder pattern.
Type
number | Description

version(version[opt]) → {string|Description}

The application version.
Parameters:
NameTypeAttributesDescription
versionstring <optional>
When provided, this method acts as a setter and sets the version value.
Returns:
If no parameter is provided, the method acts as a getter and returns the current stored version value; otherwise it returns 'this' for use with the builder pattern.
Type
string | Description

vri(value[opt])

Sets a VisualRelation definition.
The VRI definition helps to distinguish this object from other objects with otherwise identical descriptions, based on this object's visual relationship to another object in the application.
Parameters:
NameTypeAttributesDescription
valueArray.<Object> <optional>
Array that contains multiple VRI definitions for this test object.
Properties
NameTypeAttributesDefaultDescription
anchorObjectThe related test object.
horizontalHorizontal <optional>
The horizontal relation definition.
hInlineboolean <optional>
false The horizontal inline definition.
verticalVertical <optional>
The vertical relation definition.
vInlinestring <optional>
false The vertical inline definition.
proximityProximity <optional>
The proximity relation definition.