Articles → MICROSOFT BOT FRAMEWORK → Batch testing in LUIS

Batch testing in LUIS






Purpose of batch testing





Create a JSON file






  1. Click on the LUIS application name.
  2. Picture showing the list of application created in the LUIS portal.

    Click to Enlarge

  3. Click on the "Manage" tab.
  4. Picture showing the Manage tab inside the project details screen

    Click to Enlarge

  5. Click on the "Versions" option from the left-hand side menu.
  6. Picture showing the versions option in the left-hand side menu

    Click to Enlarge

  7. A list of versions for that application will be listed. Select any version and click on the "Export" → "Export as JSON".
  8. Picture showing the Export As Json option in the Export menu

    Click to Enlarge

  9. A JSON file is downloaded on your local machine.
  10. Now open the JSON file and remove everything except utterances. Here is the text in your sample file.
  11. [
      {
        "text": "hello world",
        "intent": "None",
        "entities": []
      },
      {
        "text": "hi",
        "intent": "Greet",
        "entities": []
      },
      {
        "text": "how's the weather today",
        "intent": "None",
        "entities": []
      },
      {
        "text": "what can you do",
        "intent": "None",
        "entities": []
      },
      {
        "text": "what is the time now",
        "intent": "None",
        "entities": []
      },
      {
        "text": "what's my name",
        "intent": "None",
        "entities": []
      },
      {
        "text": "what's the weather today",
        "intent": "None",
        "entities": []
      },
      {
        "text": "what's your name",
        "intent": "None",
        "entities": []
      }
    ]

Perform batch testing




  1. Click on the "Test" button on the top right-hand side of the screen (Besides the "Train" button).
  2. A dock panel will appear to test the application.
  3. On the panel, there is a "Batch testing panel" link.
  4. Picture showing the batch testing option

    Click to Enlarge

  5. The batch testing panel will come. Click on the "Import" button.
  6. Picture showing the import option for importing the json file for batch testing

    Click to Enlarge

  7. A pop up window will appear where you can select the JSON file, enter the test name and click on the "Done" button.
  8. Picture showing the import screen for importing the json for the batch testing

    Click to Enlarge

  9. A batch test gets added.
  10. Picture showing the batch test added when json is imported for batch testing

    Click to Enlarge

How to run the batch test?




  1. Click on the "Run" button.
  2. Once the execution is completed, the state column value is changed from "Run" to "See results".
  3. Picture showing the execution status as success when batch test is executed

    Click to Enlarge

  4. Click on the "See results" to check the result.
  5. Picture showing the result of the batch testing in graph format

    Click to Enlarge



Posted By  -  Karan Gupta
 
Posted On  -  Monday, November 9, 2020

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250