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 or Configuration.setProperties method.
Require statement
const {PropertyData} = require('@applitools/eyes-images');
PropertyData method
Syntax
let obj = new PropertyData(location);
let obj = new PropertyData(name, value);
Parameters
location
Type: PropertyData
Clone a property from an existing property.
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();
Parameters
This method does not take any parameters.
Return value
Type: string
getValue method
Syntax
let value = obj.getValue();
Parameters
This method does not take any parameters.
Return value
Type: string
setName method
Syntax
obj.setName(value);
Parameters
value
Type: string
The name of the property.
Return value
Type:
setValue method
Syntax
obj.setValue(value);
Parameters
value
Type: string
The value of the property.
Return value
Type: