botium-bindings icon indicating copy to clipboard operation
botium-bindings copied to clipboard

Unable to perform PAUSE operation in directline 3 CONTAINERMODE

Open KBANDANA opened this issue 3 years ago • 5 comments

Hi Team,

I want to validate 2 bot responses, second response is coming after sometime. How to validate the second response. I am using the "CONTAINERMODE": "directline3". Where 2nd response is coming max by 1 min.

I am using the PAUSE statement in below ways, but not working:-

Way :- 1 #bot
Statement1. PAUSE 40000 Statement2.

Way :- 2 #bot
Statement1. PAUSE 40000

#bot
Statement2.

I have used waitforbot logic hook also but it is not working.

#bot
Statement1. WAITFORBOT 40000 Statement2.

Way :- 2 #bot
Statement1. WAITFORBOT 40000

#bot
Statement2.

How to overcome this issue, please suggest.

KBANDANA avatar Apr 14 '22 05:04 KBANDANA

@codeforequity-at Please help to update on the issue.

bandanakumari92 avatar Apr 18 '22 09:04 bandanakumari92

What about this ? Should immediately assert the Statement1 response, then wait up to 40 seconds for the Statement2

#bot
Statement1.

#bot
WAITFORBOT 40000
Statement2.

codeforequity-at avatar Apr 19 '22 11:04 codeforequity-at

A better place to ask such question is the Botium Forum https://forum.botium.ai/

codeforequity-at avatar Apr 19 '22 11:04 codeforequity-at

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.

bandanakumari92 avatar Apr 20 '22 08:04 bandanakumari92

Thanks for your response, sure will post in Forum too.

bandanakumari92 avatar Apr 20 '22 08:04 bandanakumari92