Selenium ide
Download
1 / 22

Selenium IDE - PowerPoint PPT Presentation


  • 67 Views
  • Uploaded on

Selenium IDE. Installation and Use. Selenium Who?.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Selenium IDE' - tyra


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Selenium ide

Selenium IDE

Installation and Use


Selenium who
Selenium Who?

“Selenium IDE is an integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run. “


Installing the selenium ide plug in
Installing the Selenium IDE plug-in

  • Open Firefox.

  • Navigate to http://seleniumhq.org/download/.

  • Download the latest version of Selenium IDE (currently version 1.9).

  • Firefox should show you the following warning:

  • Click the Allow button.


  • You’ll then see the following window:

  • Click the Install Now button.




If Selenium is installed correctly, the Selenium plug-in window should pop-up.

the Selenium plug-in


Recording a script
Recording a script window

The record button

The record button is on by default. Click it to turn recording off.


How to record a selenium test script
How to record a Selenium Test Script window

  • In Firefox, navigate to the OLE function you wish to test

  • Start the Selenium plug-in

  • Make sure the Selenium record button is On.

  • Begin using the OLE function.

  • Selenium will begin recording your commands…



While recording your script, you can right click on screen elements

to reveal more Selenium commands.

For example, clicking on item ‘verifyTextPresent Borrower Type Name’ will add a line to your script that verifies that that text is present on the page.


Saving your script
Saving your script elements

  • When you are finished testing your OLE function, click the red record button to stop recording.

The record button



Please use a filename of the form desktop) by OLETS <issue number> -<name of issue.> For example: “OLETS118-OLE Borrower Type maintenance document.html”


Playing your script
Playing your script desktop) by

  • After recording your test script, you can play it back to check if it properly repeats your test scheme.

  • Don’t be surprised if your script fails! Success or failure is not that important at this point.

  • The toolbar contains buttons for controlling the execution of your test cases, including a step feature for debugging your test cases.


Speed desktop) by Control: controls how fast your test case runs.

Run All: Runs the entire test suite when a test suite with multiple test cases is loaded.

Run: Runs the currently selected test. When only a single test is loaded this button and the Run All button have the same effect.

Pause/Resume: Allows stopping and re-starting of a running test case.

Step: Allows you to “step” through a test case by running it one command at a time. Use for debugging test cases.


As the plug-in steps through your script, success and error messages will appear in the Log window.

The Log Window


Attaching your test script to an olets issue
Attaching your Test Script to an OLETS issue messages will appear in the

  • On your OLETS issue page, locate the attachments control

  • Click the cross, and the Attach Files dialog will appear.

Use the Browse button to

Locate your saved test script,

And the Attach button to attach

It to the OLETS issue.


When you run selenium you may notice
When you run Selenium, you may notice: messages will appear in the

  • Selenium suppresses pop-up error messages during recording and play-back.

  • Selenium may open a new window instead of a new tab during recording and play-back.

  • While Selenium is open, scroll-bars may disappear from some interfaces.



Adding comments to your test scripts
Adding Comments to your Test Scripts messages will appear in the

  • Everyone loves comments!

  • Adding comments makes your scripts more understandable to those who have to use or edit them later.

  • Use comments to


Adding comments continued
Adding Comments messages will appear in the (continued)

  • After you have recorded and saved your test script, examine the commands listed in the right-hand column of the Selenium window.


ad