Skip to main content

Clear Scripting Variable

This guide explains how to set up a logic hook in Botium to delete a scripting variable.

  1. On the left navigation pane, head to Botium Tools & Settings > Test Sets > Your Test Set > Test Cases
  2. Click the + NEW button to add a new Convo, or select a previously created test case from the list.
  3. Add a new + BOT STEP
  4. Click the Edit icon, or anywhere inside the step, and search the list for the 'Clear Scripting Variable' logic hook.

  5. Configure the Logic Hook:
    • Variable Name: Specify the name of the variable to delete. Usually, start the variable name without "$". Use "$" only if you need logic hook argument replacement.

  6. Click the APPLY CHANGES button to complete the step entry.

Note:
Example Botium Script
#bot
CLEAR_SCRIPTING_MEMORY invoiceNumber

Explanation:

  • CLEAR_SCRIPTING_MEMORY invoiceNumber ensures that the variable invoiceNumber is deleted and is no longer available for future steps.

Was this article helpful?

0 out of 0 found this helpful