codeforequity-at / botium-connector-directline3

Botium Connector for Bot Framework Direct Line 3 API
https://www.botium.at
MIT License
4 stars 7 forks source link

Add setUserId before directline connection #49

Closed impaxel closed 2 weeks ago

impaxel commented 10 months ago

I think before creating a conversation, you need to set userId. If this is not done, botium sends an empty token, but From.UserId must be set, so I used a temporary id (like "me"). However, even with enable DIRECTLINE3_GENERATE_USERNAME, it's not possible to create conversation with generated id, and parallel running tests results in message collisions between conversations. There's a pretty tricky workaround, but this solution seems logically correct to me