The Scriptless editor has a built-in debugger. Developers use debuggers to step through and troubleshoot broken tests.
Tip: The Scriptless debugger is integrated with CSV variable files. The debugger uses the provided variable values just as the standard test execution would.
How to Debug a Scriptless Scenario
- Open the broken test.
- Turn the scenario debugger on.
Now the Play button is enabled.
- (Optional) Click Toggle Breakpoint on steps where you want to pause execution to troubleshoot.
- Click the Play button to start the debugger. The Play button turns into a Pause button.
- Wait for the debugger to open in a new browser window.
- Resize or move the BlazeMeter window and the Debugger window, so you can see both.
- BlazeMeter executes the test scenario and color-codes the debug results.
- A green checkbox marks a step that has been executed.
- A yellow edge marks a step that is being executed.
- A green edge marks a step that has completed.
- A red edge and red exclamation mark marks a step that has failed.
- The colored marks are reset when you click Play or Stop.
- Click Stop to close the debugger.
The following screenshot shows a successfully completed Go step, and a running For Loop step with a breakpoint. The action inside the running step has successfully completed.
The following screenshot shows a failed step. Hover over the exclamation mark to see error details:
How to Use Breakpoints
If you have set a breakpoint on a step, execution pauses there.
You can modify steps while the debugger is running. When you reach a breakpoint, you can modify the executed step, or any step after it. You can also modify steps before the breakpoint, but that won't affect this run of the debugger.
Click Play anytime to continue execution after pausing at a breakpoint, or click Stop to close the debugger.
Additionally, you have the following options when pausing at groups, loops, and if/else blocks:
- Step In - Step into the group, loop, or if/else block, and pause again.
- Step Over - Execute the group, loop, or if/else block, and pause again.
- Step Out - Step out of the current group, loop, or if/else block, and pause again.
Tip: Press Disable Scenario Step to skip a step.