【发布时间】:2018-12-04 13:56:58
【问题描述】:
我正在尝试使用以下设置连接到直达线路:
botium_directline.json:
{
"botium": {
"Capabilities": {
"PROJECTNAME": "botium-sample1",
"CONTAINERMODE": "directline3",
"DIRECTLINE3_SECRET": "<BOTIUM_SECRET>",
"DIRECTLINE3_WEBSOCKET": true
},
"Sources": {},
"Envs": {
"NODE_TLS_REJECT_UNAUTHORIZED": 0
}
}
}
文件夹结构:
如果我跑:
botium-cli emulator browser --convos ./spec/convos --config ./botium_directline.json
我能够在新对话中“与机器人交流”。
如果我想运行我准备的测试,我会得到以下超时:
botium-cli run --convos ./spec/convos/ --config ./botium_directline.json
user @ /Users/username/workspace/testing/botium
~~ npm test
> botium@1.0.0 test /Users/username/workspace/testing/botium
> botium-cli run --convos ./spec/convos/ --config ./botium_directline.json
Botium Test-Suite
1) Test One
2) Test Two
0 passing (4s)
2 failing
1) Botium Test-Suite
Test One:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
2) Botium Test-Suite
Test Two:
Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
该错误类似于标准 mocha 超时错误,但我不知道在哪里放置 .js 文件以增加 beforeEach 中的超时。
我尝试将 BOTIUM_TIMEOUT 或 TIMEOUT 属性添加到 botium_directline.json 中,但这没有做任何事情。
任何想法如何增加超时?
【问题讨论】: