This guide explains how to set up a logic hook in Botium to wait for a bot response for a specified duration.
This logic hook makes Botium wait for a bot response for a specified number of milliseconds (or indefinitely if no value is provided). For example, entering '5000' will instruct Botium to wait for 5 seconds. It can be used only as a Bot Step.
- 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
'Wait for Bot' logic hook.
-
Configure the Logic Hook:
-
Duration: Specify the duration in milliseconds for which Botium will
wait for the bot to respond (e.g., 5000 ms for 5 seconds).
-
Duration: Specify the duration in milliseconds for which Botium will
wait for the bot to respond (e.g., 5000 ms for 5 seconds).
- Click the APPLY CHANGES button to complete the step entry.
Example Botium Script:
#me
start conversation
#bot
WAITFORBOT 5000
Explanation:
-
WAITFORBOT 5000
instructs Botium to wait for 5000 milliseconds (5 seconds) for the bot to respond before moving on to the next step.