setProperties method

Class: BatchInfoPlatform: PlaywrightLanguage: JavaScript SDK:

Set one or more user-defined properties to be associated 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.setProperties(properties);
batchInfo.properties = value;
value = batchInfo.properties;

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

Parameters

properties
Type:PropertyDataPlain[]
Pass one or more name/valjue pairs.

Return value

Type: BatchInfo

Remarks