Record

Record

Individual records to be processed

Constructor

new Record(utterance, expectedFieldsopt, metaopt)

Creates a record

Source:
Parameters:
Name Type Attributes Default Description
utterance string

The utterance to be sent to the voice experience being tested

expectedFields Object.<string, string> <optional>
{}

The expected values for the record

meta Object <optional>

Additional info about the record to be used in processing

Members

_settings :Object.<string, any>

Source:
Type:
  • Object.<string, any>

conversationId :Object

Property to get the latest conversation id while processing the record

Source:
Type:
  • Object

deviceTags

Gets the device tags associated with this record

Source:

expectedFields :Object.<string, string>

The expected values for the record

Source:
Type:
  • Object.<string, string>

locale :string

Getter and setter for the locale

Source:
Type:
  • string

meta :Object

Property for additional info to be set on the record

Source:
Type:
  • Object

outputFields :Object.<string, string>

The output field values for the record - gets combinted with the outputfields on the result

Source:
Type:
  • Object.<string, string>

rerun :boolean

Whether this record is being rerun

Source:
Type:
  • boolean

settings

Source:

utterance :string

Getter and setter for the utterance

Source:
Type:
  • string

utteranceRaw :string

The original utterance

Source:
Type:
  • string

voiceID :string

Getter and setter for the utterance

Source:
Type:
  • string

Methods

addDeviceTag(tag)

Device tags indicate that a record can ONLY be run on a device with this tag

Source:
Parameters:
Name Type Description
tag string

addExpectedField(name, value)

Adds an expected field to the record

Source:
Parameters:
Name Type Description
name string
value string

addOutputField(name, value)

Adds an output field to the record

Source:
Parameters:
Name Type Description
name string
value string

addSetting(name, setting)

Source:
Parameters:
Name Type Description
name string
setting string