What is Selenium IDE Features



What is Selenium IDE Features

Selenium IDE - where IDE stands for Integrated Development Environment- is the easiest tool in Selenium Suite. It is add on of Firefox that develop the tests very fastly via its functionality of record and playback. Such features are similar to that of QTP. It is easy to install and simple to learn.
Because of it's simpleness, Selenium IDE should utilized only as the tool of prototyping not overall solutions for maintaining or developing the analyzable test suites.

Though we will be capable to utilize the Selenium IDE without anterior knowledge of programming, we should be familiar with the HTML, the DOM (Document Object Model) and JavaScript to use this tool at least to its complete possible. JavaScript Knowledge will be mandatory when we receive to the sections about the command named Selenese “runScript”.
Selenium IDE helps mode of autocomplete while creating the tests. Such features services two purposes:
- It assists the tester to input the commands more fast.
- It prevent the users from invalid commands inputting..
Selenium IDE Features

What is Selenium IDE
What is Selenium IDE


Menu Bar

It's placed at the topmost part of IDE. The most normally utilized menus are File, Edit, and the Options menu.
File Menu
  • It includes the options to create, open, save, and close the tests.- Tests will be stored in the format of HTML.
  • The most helpful options are “Export” because it permits us to turn our Selenium IDE test cases into formats of files that can execute on Selenium Remote Control & WebDriver
  • “Export Test Case As…” will exportation only the presently opened test cases.
  • Selenium IDE Features
    Selenium IDE Features
    “Export Test Suite As…” will exportation all the test cases in the presently opened tests suites

As of Selenium IDE v1.9.1, test case can be exportation only to the formats given below:
  • .java (Java source code)
  • .py (Python source code)
  • .rb (Ruby source code)
  • .cs (C# source code) 
     
    Edit Menu: It include the habitual option as Redo, Undo, Cut, Copy, Paste, Select All and Delete.
  • Most important Two more options are the “Insert New Comment” and “Insert New Command”.
  • The newly inserted commands or comments will be located on top of the presently selected line.
  • Command is colored purple.
  • Command is colored black.
    Options Menu:
  • It gives interface for assorted settings configuration for Selenium IDE.
  • We shall concentrate on options of Clipboard Format and Options.
    For an example, when we select the Java/ JUnit 4/ WebDriver as our format of clipboard, every Selenese commands we copy from the editor of Selenium IDE will be pasted like code of Java.

        Selenium IDE Options dialog box

We can launch the Selenium IDE Option dialog box by clicking Options → Options.… from the menu bar. Though there are galore available settings, Few important ones will be concentrated.
  • Timeout Value Default. This mentions to time that Selenium have to delay for a definite elements to appear or become approachable before it creates any errors. Timeout Default value will be 30000ms.
  • Extensions of Selenium IDE This is where we stipulate the extensions we like to utilize to widen capabilities of Selenium IDE. We can browse the http://addons.mozilla.org/en-US/firefox/and utilize the “Selenium” as keyword to search for particular extension.
  • Remember base URL- Keep it checked if we like Selenium IDE to retrieve the Base URL everytime we starts it. If we un-check it, Selenium IDE will starts always with the blank value for Base URL.
  • Auto-start record - If we test it, Selenium IDE will instantly records our browsers action upon start up.
  • Locator builders. This is where we stipulate the order by which locator is developed during the recording. Locator is the way to tell the Selenium IDE which UI elements Selenese command should act upon. In below setup, when we click on the elements with any ID attribute, that ID of element will be utilized as the locators since “id” is the first one from list. If that elements don't have ID attributes, Selenium will be next look for the attribute “name” since it is 2nd from list.


    Options dialog box
    Options dialog box


Base URL Bar

It has the drop-down menu that retrieves all former values for the simple accession.
  • The Selenese commands “open” will carry us to the URL that we mentioned in Base URL.
  • Here tutorial series, we will be utilizing the newtours.demoaut.com as our Base URL. It is website for Mercury Tour, a website applications retained by HP for the purposes of website testing. We shall be utilizing such applications because it includes the elements complete set that we require for the topics for succeeding.
  • The Base URL is too much helpful in accessing the related URLs. Assume that our Base URL is the set to newtours.demoaut.com. When we run the commands “open” with the motive values “signup”, Selenium IDE will straightly the browsers to newtours.demoaut.com/signup.

Toolbar


Playback Speed. This is used to control execution speed of Test Script.
Record.This starts / ends our session of recording. Each browsers action is input as the Selenese commands from Editor.
Play entire test suite. This will consecutive play all available test cases listed in Pane of Test Case.
Play current test case. This will execute the only presently chosen test case in Pane of Test Case.
Pause/Resume. This will resume or pause our playback.
Step. Such button will permit us to step into each and every command available in our test scripts.
Apply roll up rules. This is the precocious functionality. It permits us to group Selenese command together and run them as the single action.


Test Case Pane

In Selenium IDE, we can open more than one test cases at the same time.
  • Test case pane displays us the list of presently active test cases.
  • When we open the test suite, the test cases pane will automatically list all and every test cases restrained in it.
  • The Bold font written test cases are presently selected test case
  • After the playback, each and every test cases are color coded to stand for if it failed or passed.
  • Green color stands for “Passed.”
  • Red color stands for “Failed.”
  • Bottom portion is for summary of the numbers of test case that were executed and failed.

Editor

We can deliberation of the editor as the places where all the actions happen. It is the present in the two view: Source and Table.

Table View
  • Mostly time, we will works on Selenium IDE utilizing Table View.
  • This is where we develop and edit the Selenese commands.
  • After playback, each steps are color coded.
  • To develop the steps, type the command name available in text box of “Command”.
  • It shows the dropdown list of commands that matched with the entry that we are typing presently.
  • Target can be any parameter (like password, username) for the commands and Values are input value (like rom,123tpass) for such types of Target.


Source View
  • It shows steps in the format of HTML.
  • It also permits us to modify our script just like the Table Views.

Log Pane
The Log Pane shows the run-time message during running. It gives real time modify as to what Selenium IDE is working.
Categories have four types for Logs:
  • Debugging – By default, Debug message isn't shown in panel of log. They display up only when we filter them. They gives the information about technical support about what Selenium IDE is working in the back-end. It can show the message such as the particular modules have been done loading, definite functions are called, or external JavaScript files were loaded as extension.
  • Info – It tells which commands Selenium IDE is presently running.
  • Warn – These messages are for warning that are faced in some unique situation.
  • Error – These messages are the error generated when Selenium IDE neglects to run the commands, or if any conditions specified by the “assert” or “verify” commands aren't met.


Logs can be filtered by type. For an example, if we select to choose the “Error” options from the list of drop-down, the Log Pane will display only the errors messages.

Reference Pane

The Reference Pane displays the aphoristic descriptions of the presently chosen Selenese commands from Editor. It also displays description about value and locator to be utilized on that commands.

UI - Elements Pane
The UI - Element are for the advanced users of Selenium. It utilizes the JavaScript Objects Notation (JSON) to explain mappings of element. The resources and the documentation are found in the “UI Element Documentation” options under the menu of Help of Selenium IDE.

Rollup Pane
Rollup permits us to run a group of command in single step. The group of commands are easily called as the “rollup.” It employ heavy utilize of UI-Element and JavaScript concepts to formulate the collections of command that is akin to the “function” from the languages of programming.
Rollups are re-usable; means, they can be utilized the multiple times within test case. Since roll-ups are the group of command condensed into one, they lend lot in shortening our testing scripts.



Some Important Points on Selenium IDE:
  • Integrated Development Environment or Selenium IDE is the easiest tool available in Selenium Suite.
  • It must only be utilized as the tool of prototyping.
  • HTML and JavaScript Knowledge is mandatory for topics of intermediate like as running the “rollup” and “runScript” commands. A roll-up is the collections of command that we can re-use to shorten our test scripts significantly. Locators are symbols that tell Selenium IDE how to entree the component.
  • Any Similar Add-ons or Firebug is utilized to get the values of locator.
  • The menu bar is utilized in modifying, creating, exporting test cases into the formats of useable by WebDriver and Selenium RC.
  • HTML is the default format for Selenese commands.
  • The “Options” menu gives the access to assorted installation for Selenium IDE.
  • The Base URL is helpful in entree related URLs.
  • The Test Case Pane displays list of presently opened test cases and the aphoristic summary of test executions.
  • The Editor gives the interface for our test script.
  • The Table View displays our script in the format of tabular with “Target”, “Command” and “Value” as column.
  • The Source View displays our script in the format of HTML.
  • The Reference and Log tabs provide feedback and another helpful information when running the tests.
  • The Rollup and UI-Element tabs are only for advanced Selenium IDE consumers. They both needs considerable efforts in the JavaScript coding.
  • UI-Element permits us to UI elements of conveniently map utilizing the Object Notation (JSON) of JavaScript.


No comments:

Post a Comment

Popular Posts