addProperty method

Class: BatchInfoPlatform: NightwatchLanguage: JavaScript SDK:

Associate a user-defined property with the batch.

A batch property is a user-defined name/value pair that you can associate with a batch. Use the Test Manger to view the properties and their values for a particular batch and you can filter for batches with specific property values. See Using user defined batch properties for more information.

Syntax

let value = batchInfo.addProperty(property);

Parameters

property
Type:PropertyDataPlain
The name of the property.

Return value

Type: BatchInfo

Remarks