codeforequity-at / botium-bindings

The Selenium for Chatbots
http://www.botium.at
MIT License
108 stars 33 forks source link

Unable to validate the bot response through botium for directline3 containermode for authenticated Microsoft chatbot #126

Closed KBANDANA closed 2 years ago

KBANDANA commented 2 years ago

Echo is produced from Microsoft chatbot, when automated through Botium.

Please find the below request and response send and received through botium:-

me

hi

bot

hi

bot

reply of hi from bot

Note:- Every time bot is producing the echo then answer is given.

Please find the below json file:- { "botium": { "Capabilities": { "PROJECTNAME": "bot", "CONTAINERMODE": "directline3", "DIRECTLINE3_SECRET": "XXXXXXXXXXXXXXXXX", "DIRECTLINE3_ACTIVITY_TEMPLATE": { "from":{ "name":"XXXX@domain.com", "id":"XXXX@domain.com" }, "type": "message" } } } }

Please let me know if there is any connecter for this or do I need to add something else for the authenticated Microsoft chatbot deployed in teams channel. Please suggest how to automate this ?

codeforequity-at commented 2 years ago

I consider this to be a bug:

You can try to remove the "from" section of the DIRECTLINE3_ACTIVITY_TEMPLATE and let Botium fill this itself, but if your tests rely on a given value there then this will not really help.

KBANDANA commented 2 years ago

Thanks for your response. I have tried to remove the id from the botium.json file from DIRECTLINE3_ACTIVITY_TEMPLATE ("id":"XXXX@domain.com). Now its not producing the echo. Please confirm this is a correct behavior or not ?

bandanakumari92 commented 2 years ago

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

codeforequity-at commented 2 years ago

We will fix this, but the mentioned workaround is fine as well

codeforequity-at commented 2 years ago

Fixed https://github.com/codeforequity-at/botium-connector-directline3/commit/9cc819f580db0af15fe57bc1062145bf4cd2442f