Skip to main content

Register a Custom Asserter in Botium

Here are generic instructions to help you register and configure an asserter in Botium.

To register an asserter, do the following:

  1. Deploy the Asserter Code (NPM-package, Javascript File) to the Botium installation directory
  2. Login to Botium with admin rights
  3. Navigate to Botium Tools & Settings > Settings > Components and click the + NEW button

  4. Fill out configuration:
    1. Component Name:
    2. Component Type: Test Case Asserter
    3. Component Ref Code: To reference this asserter in your convo files
    4. Component Source: Reference to an NPM package or Javascript-File (has to be available on all Botium servers)
      Tip: You may also use the class name of one of the integrated asserters, for example the Intent Confidence Asserter or the Response Length Asserter.
    5. Include in Default Component Set: Asserter is available in all test suites by default
    6. Register as Global Scripting Component: To enable this asserter be called for all test runs for all convo steps.
      Note: Use with care!
    7. Args Label:
    8. Sender:
    9. Component Configuration as JSON-formatted: Configuration options for the asserter (see asserter documentation)
    10. Click SAVE.


  5. Your task is complete.
Results: Now you can use the asserter in Convos by simply adding the Component Ref Code.

Was this article helpful?

0 out of 0 found this helpful