Unable to perform PAUSE operation in directline 3 CONTAINERMODE

This is about validating the proactive message of chatbot through botium. If we are in some workflow and chatbot is expecting some input through user side, and user has responded within 1 min. Then chatbot will send the proactive message. So I need to validate the proactive messages through botium.
Suppose I am in ticket creation flow, ticket creation form is opened. And user not responded within 1 min then it will send the proactive message.

Tried the below steps but got failed.
Please find the below convo

#me
Cancel

#bot
OK. Thank you.

#me
Create a ticket

#bot
OK, Let’s create an IT support request.

#bot
Please provide all required details
CARDS Please provide all required details
FORMS Title|Description|How urgent is your need?
BUTTONS Next|Cancel

#bot
WAITFORBOT 60000
I’m waiting for your response. (This message needs to be validated)

Getting below error:-
Error: Proactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s
########################################
Proactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s
------------ TRANSCRIPT ----------------------------
#me: Cancel
#bot: OK. Thank you.
#me: Create a ticket
#bot: OK, Let’s create an IT support request.
#bot: Please provide all required details
CARD(Please provide all required details)
BUTTON(Next | {“action”:“Next”})
BUTTON(Cancel | {“action”:“Cancel”})
FORM(summary | Title)
FORM(description | Description)
FORM(priority | How urgent is your need?)
at BotiumBindings.wrapBotiumError (node_modules\botium-bindings\src\BotiumBindings.js:77:14)
at C:\botium\node_modules\botium-bindings\src\BotiumBindings.js:134:33

Please help to resolve this.

Pls attach verbose log file

Sorry I am new to botium, where I can get the verbose log file?
I have rerun the script and getting below error in terminal:-
Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure “done()” is called; if returning a Promise, ensure it resolves. (C:\botium\spec\botium.spec.js)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)

https://botium-docs.readthedocs.io/en/latest/08_troubleshooting/index.html#enable-logging

{
“stats”: {
“suites”: 1,
“tests”: 1,
“passes”: 0,
“pending”: 0,
“failures”: 1,
“start”: “2022-04-25T06:49:03.761Z”,
“end”: “2022-04-25T06:50:23.152Z”,
“duration”: 79391,
“testsRegistered”: 1,
“passPercent”: 0,
“pendingPercent”: 0,
“other”: 0,
“hasOther”: false,
“skipped”: 0,
“hasSkipped”: false,
“passPercentClass”: “danger”,
“pendingPercentClass”: “danger”
},
“suites”: {
“uuid”: “ee091e08-18bf-4327-83de-48fd2112f90b”,
“title”: “”,
“fullFile”: “”,
“file”: “”,
“beforeHooks”: [],
“afterHooks”: [],
“tests”: [],
“suites”: [
{
“uuid”: “78a477a0-59d8-4ee3-b483-0e1676f4d329”,
“title”: “Andritz Project”,
“fullFile”: “C:\botium\test\botium.spec.js”,
“file”: “\test\botium.spec.js”,
“beforeHooks”: [
{
“title”: ““before all” hook”,
“fullTitle”: “Andritz Project “before all” hook”,
“timedOut”: false,
“duration”: 250,
“pass”: false,
“fail”: false,
“pending”: false,
“code”: “this.timeout(timeout)\nbb.beforeAll().then(() => done()).catch(done)”,
“err”: {},
“isRoot”: false,
“uuid”: “7b9b1a65-1f48-4702-8b41-f5bb280e1c15”,
“isHook”: true,
“skipped”: false
},
{
“title”: ““before each” hook”,
“fullTitle”: “Andritz Project “before each” hook”,
“timedOut”: false,
“duration”: 9,
“pass”: false,
“fail”: false,
“pending”: false,
“code”: “this.timeout(timeout)\nbb.beforeEach().then(() => done()).catch(done)”,
“err”: {},
“isRoot”: false,
“uuid”: “d387a256-8dd6-4903-9495-293ac8542af0”,
“isHook”: true,
“skipped”: false
}
],
“afterHooks”: [
{
“title”: ““after all” hook”,
“fullTitle”: “Andritz Project “after all” hook”,
“timedOut”: false,
“duration”: 4,
“pass”: false,
“fail”: false,
“pending”: false,
“code”: “this.timeout(timeout)\nbb.afterAll().then(() => done()).catch(done)”,
“err”: {},
“isRoot”: false,
“uuid”: “f88997c5-7793-489c-ab73-028859bf49ea”,
“isHook”: true,
“skipped”: false
},
{
“title”: ““after each” hook”,
“fullTitle”: “Andritz Project “after each” hook”,
“timedOut”: false,
“duration”: 1,
“pass”: false,
“fail”: false,
“pending”: false,
“code”: “this.timeout(timeout)\nbb.afterEach().then(() => done()).catch(done)”,
“err”: {},
“isRoot”: false,
“uuid”: “1b7b757f-3c1d-4b59-aa91-a128d01b41b2”,
“isHook”: true,
“skipped”: false
}
],
“tests”: [
{
“title”: “Proactive Messages”,
“fullTitle”: “Andritz Project Proactive Messages”,
“timedOut”: false,
“duration”: 79115,
“state”: “failed”,
“pass”: false,
“fail”: true,
“pending”: false,
“code”: “if (this.container) {\n debug(running testcase${convo.header.toString()})\n convo.Run(this.container)\n .then(() => {\n debug(Test Case \"${convo.header.name}\" ready, calling done function.)\n testcaseDone()\n })\n .catch((err) => {\n debug(Test Case \"${convo.header.name}\" failed: ${util.inspect(err)})\n testcaseDone(this.wrapBotiumError(err))\n })\n} else {\n testcaseDone(new Error(‘Botium Initialization failed. Please see error messages above (enable debug logging).’))\n}”,
“err”: {
“message”: “Error: Proactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s\r\n########################################\r\nProactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s\r\n------------ TRANSCRIPT ----------------------------\r\n#me: Cancel\r\n#bot: OK. Thank you.\r\n#me: Create a ticket\r\n#bot: OK, Let’s create an IT support request.\r\n#bot: Please provide all required details\n CARD(Please provide all required details)\n BUTTON(Next | {“action”:“Next”})\n BUTTON(Cancel | {“action”:“Cancel”})\n FORM(summary | Title)\n FORM(description | Description)\n FORM(priority | How urgent is your need?)”,
“estack”: “Error: Proactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s\r\n########################################\r\nProactive Messages/Line 22: error waiting for bot - Bot did not respond within 10s\r\n------------ TRANSCRIPT ----------------------------\r\n#me: Cancel\r\n#bot: OK. Thank you.\r\n#me: Create a ticket\r\n#bot: OK, Let’s create an IT support request.\r\n#bot: Please provide all required details\n CARD(Please provide all required details)\n BUTTON(Next | {“action”:“Next”})\n BUTTON(Cancel | {“action”:“Cancel”})\n FORM(summary | Title)\n FORM(description | Description)\n FORM(priority | How urgent is your need?)\n at BotiumBindings.wrapBotiumError (node_modules\botium-bindings\src\BotiumBindings.js:77:14)\n at C:\botium\node_modules\botium-bindings\src\BotiumBindings.js:134:33”
},
“isRoot”: false,
“uuid”: “86cd2fc9-c8fb-4c05-8f18-d51b8558a350”,
“isHook”: false,
“skipped”: false
}
],
“suites”: [],
“passes”: [],
“failures”: [
“86cd2fc9-c8fb-4c05-8f18-d51b8558a350”
],
“pending”: [],
“skipped”: [],
“duration”: 79115,
“root”: false,
“rootEmpty”: false,
“_timeout”: 2000
}
],
“passes”: [],
“failures”: [],
“pending”: [],
“skipped”: [],
“duration”: 0,
“root”: true,
“rootEmpty”: true,
“_timeout”: 2000
},
“copyrightYear”: 2022
}

That seems to be a mocha log file, I need the Botium log file (set environment variable DEBUG to “botium*”)

I have set the environment variable as DEBUG = C:\botium\botium* (Placed botium framework in this path), still log files are not generated.
As well, tried by setting environment variable as DEBUG =botium* , still log file is not generated.
Please suggest how to get the log files.

how are you starting the botium tests ? with mocha ? with botium-cli ? when with botium-cli, you can add the --verbose switch

I am running the botium test by mocha. How to add --verbose switch for mocha ?

> DEBUG=botium* mocha

or

> export DEBUG=botium*
> mocha

Thanks for your prompt response. But facing issue while entering these commands in terminal. Where should I enter these commands ? I have tried in Visual studio code in terminal, please find the below screenshot:-

In Windows environment variables are set another way.

> set DEBUG=botium*
> mocha

I have ran the above mentioned command , still the log file in not generated in botiumwork folder.
Please find the below screenshot for command ran:-
image

I have tried with set DEBUG=botium* mocha also , still log file is not generated, please find the below screenshot:-
image

Any resolution for this issue ?

logging is done to the console window, not to a file.

1 Like

I have set the debug, and run the botium script. Still not getting the expected output.
Please find the below screenshot and the error:-


Please the above convo file. Please help to resolve this issue.

@ujja ?

From power shell the env variable works differently.
Set it with

$env:DEBUG = "botium*"

command, and check that it is set correctly with

$env:DEBUG

command:

280197889_526682795660917_4288741705661921704_n