addProperty method

Class: ConfigurationPlatform: WebdriverIO 5Language: JavaScript SDK:

Adds a custom key name/value property that will be associated with tests. You can view these properties and filter and group by these properties in the Test Manager.

Syntax


let configval = config.addProperty(property);

let configval = config.addProperty(propertyName, propertyValue);

Parameters

property
Type:PropertyData|PropertyDataObject
An object of type PropertyData, or an object of the form {name: string, value: string}. The name and value of the added property are derived from the passed object.
PropertyDataObject
The type PropertyDataObject is defined as: {name:string,value:string}
propertyName
Type:string
The name of the property.
propertyValue
Type:string
The value associated with the name.

Return value

Type: Configuration
The value returned is the object that called the method. This allows you to use a fluent style to call the setXXXX methods of the Configuration class.