08. Debugging a testcase in Selenium IDE


Overview

By default Selenium IDE executes, the statements without any delay between the statements. If one want to execute the statements slowly “Speed control” is used to run slowly by moving the cursor for the level of slowness. Adding a break point


Running the tests step by step

If one want to execute the test case statements step by step, a break point needs to be inserted. Follow the steps ro debug.

o Select the statement, where you want to have step by step execution
o Right click
o Select Toggle Break point
o Click on Run button for execution
o All the statements before the break point will be executed. The cursor will be paused at the break point
o Click Step (blue arrow) button to continue with step by step execution

Select the Toggle Break point again if the break point needs to be cleared.

back to Overview


Running from a start point

Assume that one has already reached mid of the application by exploring manually. The first few steps of test case are already covered, since the state of the application is in the middle. So, instead of starting from the beginning of the application, if the test case needs to continue from the current page or state of the application, then the starting point of the test case step need to be identified. Follow the below steps to insert run from the step

o Select the statement, where you want to have step by step execution
o Right click
o Select Set / Clear Start point
o Click on Run button for execution
o All the statements after the start point will get executed.

Select the Set / Clear Start point again if the break point needs to be cleared.

back to Overview


Running a single statement

If one want to check, whether a single statement executes fine or not, they can use this feature. Follow the steps mentioned to check single statement execution

o Browse your application whichever the statement that you want to test.
o Select the statement (mostly actions not assertions) in the test case
o Right click
o Select Execute this statement or Press X
o The respective statement will be executed on the AUT

back to Overview

The debugging options can be seen from the below mentioned image