Testing the Bot Framework

Play Testing the Bot Framework

The Discussion

  • User profile image


    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

  • User profile image

    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:


    And you can raise an issue there with your questions for the team to help you out if possible.

  • User profile image

    Hi Deepali,

    Contact me if you want to discuss how we setup the tests for the VSTS bot. Hopefully we can help.





  • User profile image

    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.

Add Your 2 Cents