Selenium IDE Tutorial


Selenium IDE Tutorial

I) Selenium IDE Introduction:
 

> It is a Tool, used to prepare Selenium Test Cases.

> It is Firefox plug in, plant solely on Firefox Browser.

> It provides Graphical user interface for Recording user actions using Firefox Browser.

> Firebug Add on is used to inspect elements.

> Selenium IDE should solely live on used equally a prototyping tool.

We can't prepare complex Test cases using Selenium IDE.

> Test Step inwards Selenium IDE Test Case

Command + Target + value

Command - forms the functionality of the Test step

Target - Identifies the Element on the spider web page.

Value - Input information (This applicable solely for few commands)

Example:

Type     id=Email     abcd123
----------------------------------------
II) Selenium IDE Installation:

 
> using Firefox browser, download selenium IDE from the Seleniumhq.org website.

> Firefox volition protect y'all from installing add together ons from unfamiliar locations, hence we  volition require to click "Allow" to proceed alongside the installation.

> Install multiple items to back upward Java, Ruby, Python etc... formats.

> Restart Firefox browser.

> After Firefox reboots too hence nosotros tin utilization Selenium IDE.
-------------------------------------
III) Selenium IDE Features
1) File Menu:
> File carte du jour has options for Test Case too Test Suite

> Using this carte du jour nosotros can

Create a novel Test case,

Open a Test Case,

Save a Test Case,

Export Test illustration inwards a Language of our choice.

All these options are also available for Test suite.

> unopen Selenium IDE

Selenium Test illustration format is html
------------------------------------------------------
2) Edit menu:
The Edit carte du jour allows copy, cut, paste, delete, undo, too pick out all operations for editing the commands inwards our examination case.

3) Actions menu:
It has options for Record too Run Test case, Run Test suite, Insert/Remove Breakpoints, pause/resume Test illustration execution.

4) Options Menu:
Option carte du jour allows the changing of settings, nosotros tin fix timeout value etc...

5) Help menu:
It provides assistance documentation for Selenium IDE.
--------------------------------------------------------
Test Case Pane:
Our Test script is displayed inwards the Test Case pane,
It has ii tabs,

i) Table format
Displays Command too parameters

ii) Source format
Displays the examination illustration inwards the native format (HTML)
---------------------------------------
Create Test Cases 

   Record
    Type Steps using chemical component subdivision locators too Selenese commands

Record Test Case:
During Record Selenium IDE generates steps for user actions on AUT.

Element identification too Operation on chemical component subdivision both available inwards steps.

In Selenium IDE no Object Repository, hence no centralized maintenance of Elements.
----------------------------
Difference betwixt UFT too selenium inwards illustration of maintenance of Objects/elements

In UFT centralized maintenance of Objects/elements

In Selenium no centralized maintenance of Objects/elements
---------------------------------
IV) Create & Execute Test cases
 

In ii ways nosotros tin exercise Test cases inwards Selenium IDE:

i) By Recording our actions on AUT

ii) By Typing steps using Selenium IDE commands (Selenese commands) too Element locators
---------------------
Test Recording:
> During Test recording Selenium IDE generates steps for user actions on AUT.

> It generates normal steps too Verification points

> User tin edit recorded Test cases

Selenium IDE Test stride consists of Command, Element locator too Value (Input)
Value is solely for about commands

Syntax:
Command    Target        value

Example:
type    id=Email    abcd123   
----------------------------------------
> No centralized maintenance of Elements inwards Selenium IDE.

> Selenium IDE examination illustration format is .html
------------------------------------------------------
Using Breakpoints too stride ascendence nosotros tin execute Selenium IDE examination illustration stride past times step.

We tin add together Comments
---------------------------
When an "assert" ascendence fails too hence examination execution volition live on aborted.

When a "verify" ascendence fails too hence examination volition cash inwards one's chips on execution too logging the failure.

Sumber http://www.gcreddy.com/
Post a Comment (0)
Previous Post Next Post