我的问题是关于如何将 INTENT_CONFIDENCE 设置为全局断言者,而不是将其放在所有 session 上。
我在 botium.json 配置文件中尝试了两种方式,但都不起作用:
在“ASSERTERS”功能中,我尝试了:
"INTENT_CONFIDENCE": 100 -- I have done the same but with "100"/ "100 %"
和
"ref": "INTENT_CONFIDENCE",
"val": "100"
错误看起来像
AppData\Roaming\npm\node_modules\botium-cli\node_modules\yargs\yargs.js:1133
else throw err
^
Error: Failed to fetch package botium-asserter-undefined - { Error: Cannot find module 'botium-asserter-undefined'
最佳答案
这是要使用的 JSON 配置:
{
"botium": {
"Capabilities": {
...
"ASSERTERS": [
{
"ref": "INTENT_CONFIDENCE",
"src": "IntentConfidenceAsserter",
"global": true,
"args": {
"expectedMinimum": 80
}
}
]
}
}
}
关于node.js - 如何将 INTENT_CONFIDENCE 断言者作为全局变量放入 Botium,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56797015/