The Discussion

Deepali

Hi,

We are trying to use Test project for one of our bot and we do have some queries regarding the code, could you please help us out either by adding documentation or comments. Or please let us know right channel for queries against your awesome code

Thanks Deepali. There's a team working on a VSTS bot that have implemented an improved version of testing the bot (for c#). If you're writing your bot in c# I recommend you check out the Development branch in this repo to see how they have written the test framework:

I tried to follow this tutorial but it seems that Conversation.SendAsync(toBot, scope) does not like the scope variable:

cannot convert from 'Autofac.ILifetimeScope to 'System.Func<Microsoft.Bot.Builder.Dialogs.IDialog<object>>'

If I change it to Conversation(toBot, makeRoot) the error goes away but then when running the tests I get this autofac error:

SearchInterestingTests threw exception: Autofac.Core.DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details. ---> Invalid URI: The format of the URI could not be determined. (See inner exception for details.) ---> System.UriFormatException: Invalid URI: The format of the URI could not be determined.