Thursday, 24 May 2012

Debugging @ Selenium IDE


Execute Individual Commands
Double-click a command in Selenium IDE and it will be executed – it is very useful when you need to find in which steps the failure is.
Slowing Down the Execution

You can use the speed slider  to slow down how fast your test commands are executed. This can be helpful as you can watch the application under test while your tests are running and see any obvious issues that your tests are failing on.
Frequent use of Echo Command
You can easily track the steps details by frequent use of Echo method. This is going to be very handy in case of data driving through java Script or External Excel file or DB.
Once The Test is executed, you can track all data or Status in your log, where Echo is used

Use of Pause, Break and Step
You can pause your test at any time, either by clicking the Pause icon in the toolbar or by setting breakpoints. You can set a breakpoint by right-clicking on a command you want Selenium IDE to pause before executing, and selecting ‘Toggle Breakpoint’ from the context-menu.When Selenium IDE is paused, the Step icon becomes available. You can use this to execute one command at a time, which can be very useful when approaching a failure or working through a number of verification failures.

Set Start Point
If you have a really long test and it is failing towards the end, then you can set a start point so that you don’t have to run the entire test when you’re searching for the failure. To set a start point simply right click on the first command you want Selenium IDE to execute and click ‘Set / Clear Start Point’. You will see a small play icon appear to the left of your command.

1 comment:

  1. Thanks for sharing great information in your blog.

    Selenium training institute which provides Real Time Hands on Training…THE CREATING EXPERTS

    http://thecreatingexperts.com/selenium-training-in-chennai/


    contact-8122241286

    ReplyDelete