Debugging Tests
An integral part of test automation skills is a high proficiency in debugging. Magellan has inbuilt capabilities for debugging.
Debugging Strategies
We write our tests with the best of interests based on the requirements and we expect the tests to pass as soon as the form has been configured. However the tests fail. This is typically because somewhere there is something that you believe to be true is actually not true.
Below are examples of things that you might believe are true
- You believe that at a certain point in the scenario for a step definition, a certain variable has a certain value
- You believe that when you call a fixture with parameters (variables) the fixtures received the parameters correctly
- Screen has been configured correctly as per the requirements (ex. labels, mandatory fields, business rules, error messages, etc)
However with the tests failing now starts the process of debugging and trying to figure out what the cause of failure might be.
In the past print statements were used as the main debugging device. However Magellan comes inbuilt with good debugging capabilities
0

