-
Notifications
You must be signed in to change notification settings - Fork 0
Debugging scenarios
There is nothing special about an xWellBehaved.net scenario with respect to debugging. You can use all your usual debugging tools, such as break points, stepping, etc.
However, it is important to recall that the test author defines step entry points, the entry points of which are of interest to you while debugging. The actual specifications themselves are of little to no interest, outside of defining meaningful, easy to recognize steps.
A common mistake is to put a break point on an entire step statement like so:
When you hit this break point, the values of x
and y
will be 0
because none of the steps have been executed yet, including the step you are attempting to debug:
Put your break point on a statement in the body of a step like so:
When you hit this break point, the values of x
and y
will be 1
and 2
because the previous steps have been executed, and the step you are attempting to debug is being executed:
From xBehave.net version 2.2+, including the beginning of xWellBehaved.net, both support source stepping via SourceLink. To set this up in Visual Studio, follow the Example.
- Home
- Quick start
-
Documentation
- Writing scenarios
- Running scenarios
- Package dependencies
- Debugging scenarios
- Assertions
- Step names
- Debugging Scenarios with examples
- Background methods
- TearDown methods
- Async steps
- Object disposal
- Rollback
- Skipping steps and scenarios
- Step metadata
- Continuing on failure
- Step filters
- Changes in xBehave.net version 2.0
- Changes since deriving from xBehave.net
- Extending xWellBehaved.net
- FAQ
- Known Issues
- Contributions