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

conversationId

Source:

deviceTags :Array.<string>

Gets the device tags associated with this record

Source:
Type:
  • Array.<string>

expectedFields :Object.<string, string>

The expected values for the record

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

locale :string|undefined

Getter and setter for the locale

Source:
Type:
  • string | undefined

meta :Object

Property for additional info to be set on the record

Source:
Type:
  • Object

meta

Source:

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

rerun

Source:

settings

Source:

utterance :string

Getter and setter for the utterance

Source:
Type:
  • string

utteranceRaw :string

The original utterance

Source:
Type:
  • string

voiceID :string|undefined

Getter and setter for the utterance

Source:
Type:
  • string | undefined

Methods

(static) fromJSON(o) → {Record}

Source:
Parameters:
Name Type Description
o any
Returns:
Type:
Record

addDeviceTag(tag) → {void}

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

Source:
Parameters:
Name Type Description
tag string
Returns:
Type:
void

addExpectedField(name, value) → {void}

Adds an expected field to the record

Source:
Parameters:
Name Type Description
name string
value string
Returns:
Type:
void

addOutputField(name, value) → {void}

Adds an output field to the record

Source:
Parameters:
Name Type Description
name string
value string
Returns:
Type:
void

addSetting(name, setting) → {void}

Source:
Parameters:
Name Type Description
name string
setting string
Returns:
Type:
void

outputField(name) → {void}

Source:
Parameters:
Name Type Description
name string
Returns:
Type:
void

toJSON() → {any}

Source:
Returns:
Type:
any