TestUtils class

负责运行对话自适应测试。

方法

runTestScript(ResourceExplorer, string, TestAdapter, Record<string, string>, Middleware[])

运行具有指定名称的测试脚本。

方法详细信息

runTestScript(ResourceExplorer, string, TestAdapter, Record<string, string>, Middleware[])

运行具有指定名称的测试脚本。

static function runTestScript(resourceExplorer: ResourceExplorer, testName?: string, adapter?: TestAdapter, configuration?: Record<string, string>, middlewares: Middleware[]): Promise<void>

参数

resourceExplorer

ResourceExplorer

测试中使用的资源资源管理器。

testName

string

测试名称。

adapter

TestAdapter

测试适配器。

configuration

Record<string, string>

测试配置。

middlewares

Middleware[]

要添加到测试中的中间件。

返回

Promise<void>