This guide explains how to set up a logic hook in Botium to delete a scripting variable.
- On the left navigation pane, head to
Botium Tools & Settings > Test Sets > Your Test Set > Test Cases
- Click the + NEW button to add a new Convo, or select a previously created test case from the list.
- Add a new + BOT STEP
- Click the Edit icon, or anywhere inside the step, and search the list for the
'Clear Scripting Variable' logic hook.
-
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.
-
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.
- 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 variableinvoiceNumber
is deleted and is no longer available for future steps.