Skip to main content

PropertyData class

A test property is a user-defined name/value pair that you can associate with a test. You can view these properties as well as filter and group by these properties in the Test Manager. You can set properties using the Eyes.addProperty method, Configuration.addProperty method, Configuration.setProperties method or Configuration.properties property.

PropertyData method​

Syntax​

let obj = new PropertyData(property);

let obj = new PropertyData(name, value);

Parameters​

property​

Type: PropertyDataPlain

PropertyDataPlain

name

Type: string

The name of the property.

value

Type: string

The value of the property.

Return value​

Type: PropertyData

getName method​

Syntax​

let value = obj.getName();
obj.name = value;
value = obj.name;

Note that this feature is available as both a method and a property.

Parameters​

This method does not take any parameters.

Return value​

Type: string

getValue method​

Syntax​

let value = obj.getValue();
obj.value = value;
value = obj.value;

Note that this feature is available as both a method and a property.

Parameters​

This method does not take any parameters.

Return value​

Type: string

setName method​

Syntax​

obj.setName(name);
obj.name = value;
value = obj.name;

Note that this feature is available as both a method and a property.

Parameters​

name

Type: string

The name of the property.

Return value​

Type: void

setValue method​

Syntax​

obj.setValue(value);
obj.value = value;
value = obj.value;

Note that this feature is available as both a method and a property.

Parameters​

value

Type: string

The value of the property.

Return value​

Type: void