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.

Import statement

import com.applitools.eyes.PropertyData;

PropertyData method

Syntax

PropertyData obj = new PropertyData(name, value);

Parameters

name

Type: String

The name of the property.

value

Type: String

The value of the property.

Return value

Type: PropertyData

getName method

Syntax

String value = obj.getName();

Parameters

This method does not take any parameters.

Return value

Type: String

getValue method

Syntax

String value = obj.getValue();

Parameters

This method does not take any parameters.

Return value

Type: String

setName method

Syntax

obj.setName(name);

Parameters

name

Type: String

The name of the property.

Return value

Type: void

setValue method

Syntax

obj.setValue(value);

Parameters

value

Type: String

The value of the property.

Return value

Type: void