AlexaSimulatorRule

class AlexaSimulatorRule(config: AlexaSimulatorRuleConfig) : ResourceRule

This rule is responsible for setting up the device prior to running a test that uses the AlexaSimulator.

When AlexaSimulatorRuleConfig.isCaptureRun is true, the AlexaSimulator service is started in RequestResponseMode.CAPTURE_MODE before starting the test.

When AlexaSimulatorRuleConfig.isCaptureRun is false, the replay JSON file associated with the test is copied to the location expected by the AlexaSimulator.

Parameters

config

The configuration of this rule instance.

Constructors

Link copied to clipboard
fun AlexaSimulatorRule(config: AlexaSimulatorRuleConfig)

Functions

Link copied to clipboard
open override fun apply(baseStatement: Statement, description: Description): Statement