Unable to perform PAUSE operation in directline 3 CONTAINERMODE

First, you have to make Botium accept the long waiting time. The WAITFORBOT is not sufficient to make Botium pause the test case execution, you additional have to set the WAITFORBOTTIMEOUT capability in your botium.json

Second, the test runner (mocha) by default doesnt allow tests running longer than a few seconds. You will have to adapt this as well, see Botium Docs

I need the wait of 2 minutes, I hope below command will work:-
botium-cli emulator browser --convos ./spec/convos --config ./botium_directline.json --timeout 120000

But I am getting the below error:-

It looks as a power script policy related thing:

@ujja Hi thanks for the information, I have changed the system setting and ran the below cmd → botium-cli emulator browser --convos ./spec/convos --config ./botium_directline.json --timeout 120000
getting below msg attached the screenshot

I hope now I should be able to wait 2 minutes, to get the bot response. I have used PAUSE as well as WAITFORBOTTIMEOUT , but getting message Bot did not responded within 10s

Please help us to validate the response which is coming after 2 mins.

Where did you see this

?

We suggested to use Botium capabilities. (See Unable to perform PAUSE operation in directline 3 CONTAINERMODE - #21 by Florian)

@ujja As I understood I need to set WAITFORBOTTIMEOUT capability in in botium.json.

Please find the my botium.json file below

{
“botium”: {
“Capabilities”: {
“PROJECTNAME”: “ProjectNAME”,
“CONTAINERMODE”: “directline3”,
“DIRECTLINE3_SECRET”: “DirectLine_SecretKey”,
“DIRECTLINE3_BUTTON_TYPE”: “message”,
“DIRECTLINE3_BUTTON_VALUE_FIELD”: “text”,
“DIRECTLINE3_HANDLE_ACTIVITY_TYPES”: “message,event”,
“WAITFORBOTTIMEOUT”: “1200000”,
“DIRECTLINE3_ACTIVITY_TEMPLATE”: {
“channelData”: {
“my-special-channel-data”: “…”
}
},
“USER_INPUTS”: [
{
“ref”: “MEDIA”,
“src”: “MediaInput”,
“args”: {
“downloadMedia”: true
}
}
]
}
}
}

I have mention the WAITFORBOTTIMEOUT Capability as 1200000
“WAITFORBOTTIMEOUT”: “1200000”,

Hope this is correct.

As well where can I set the environment variables BOTIUM_MOCHA_TIMEOUT ?

@ujja Could you please help on this ?

@ujja Could you please let me know if I have missed any thing in the botium.json file mentioned above?
As well how to set environment variable for BOTIUM_MOCHA_TIMEOUT for 2 minutes ?

Well, how to set up an environment variable is depending on OS, and shell. It is not a botium thing.

You can do it same way as with the DEBUG env variable. (See Unable to perform PAUSE operation in directline 3 CONTAINERMODE - #18 by ujja)

Or you can do it in windows UI: Create and Modify Environment Variables on Windows

1 Like