botframework-sdk/Common/Transcripts
Tom Laird-McConnell a2887b1b9b
Update BotAdapted_Bracketing.chat
2018-07-16 20:08:34 -07:00
..
CoreExtensionsTests BotBuilder (v4) Transcript files (#4673) 2018-06-05 15:08:28 -07:00
CoreTests Update BotAdapted_Bracketing.chat 2018-07-16 20:08:34 -07:00
DialogsTests BotBuilder (v4) Transcript files (#4673) 2018-06-05 15:08:28 -07:00
LuisTests BotBuilder (v4) Transcript files (#4673) 2018-06-05 15:08:28 -07:00
QnATests BotBuilder (v4) Transcript files (#4673) 2018-06-05 15:08:28 -07:00
TranslationTests Update date format in chat file due changes on BotBuilder repo (#4809) 2018-06-28 17:01:09 -07:00
README.md BotBuilder (v4) Transcript files (#4673) 2018-06-05 15:08:28 -07:00

README.md

Bot Builder SDK v4 - Transcript Files

This folder contains the transcript files (.chat files) used in BotBuilder-v4 for testing several components and guarantee the same behavior between the different platform (.NET, NodeJS, Python, Java).

BotBuilder Developer writing new transcript-based tests

  1. Clone/Fork the BotBuilder repository.

  2. Create a branch and place the new transcripts in the Common\Transcripts folder (this can be done locally without actually pushing changes at this stage)

  3. Write code and create new tests. Set the BOTBUILDER_TRANSCRIPTS_LOCATION Environment var pointing to the local repo / transcript folder.

    E.g.:

    # On *nix:
    export BOTBUILDER_TRANSCRIPTS_LOCATION=~/projects/BotBuilder/Common/Transcripts
    
    REM On Windows:
    SET BOTBUILDER_TRANSCRIPTS_LOCATION=C:\Projects\BotBuilder\Common\Transcripts
    
  4. Run the transcript tests from the platform repository. The code will look into the BOTBUILDER_TRANSCRIPTS_LOCATION folder for all files.

    E.g.:

    cd transcripts
    npm run test
    

Pushing changes to BotBuilder Repos

  1. Create a PR to the BotBuilder repository with the new transcripts.

  2. Once the transcripts PR is merged, create a PR to the BotBuilder's platform repository with the code updates and tests.