Android apps to use in appium android test examples


Wednesday, May 30, 2018

Selenium IDE Tutorial

Selenium IDE Tutorial

Selenium IDE (Integrated Development Environment)

1) Introduction to Selenium IDE:

> It is a Test Tool inwards Selenium suite to practice in addition to execute Test Cases
> It is a Firefox Browser plug in, industrial plant entirely on Firefox Browser
> It Provides GUI for Recording user actions on AUT using Firefox Browser, in addition to user tin edit (Insert/Update/Delete) Test Steps.
> Using "Page Inspector" characteristic nosotros tin inspect elements, or using Firebug in addition to Firepath plug inwards also nosotros tin inspect elements.
> Selenium IDE entirely used equally prototyping tool.
(* nosotros can't prepare complex Test Cases using Selenium IDE, It doesn't back upwards whatsoever programming language)

Creating Test Cases / Test Steps inwards Selenium WebDriver,

Using Element Locators in addition to WebDriver API Commands nosotros tin practice Test Cases...

One Sample Step...
Click "Gmail" Link inwards "Google" Home Page...

driverObject.findElement(By.ElementLocator("Locator Value")).WebDriver Command/method();

Selenium IDE:

Using Element Locators in addition to Selenese Commands / Selenium IDE Commands.

Command + Target + Value

Command - Forms the Functionality of the Step
Target - Identified the Element on the Web page
Value -Input Data (This is applicable for a few commands)

Type id=Email

Note: Selenium IDE Test Script default format is .html
Click "Gmail" Link inwards "Google" Home Page...

clickAndWait link=Gmail
2) Selenium IDE Installation

> Launch "Firefox" Browser, in addition to navigate to
> In Google domicile page, type "Selenium IDE Download"
> Go to " download page
> Go to Selenium IDE Download area
> Download in addition to Install Selenium IDE
> Restart the Browser...
3) Selenium IDE Drawbacks

> It supports Mozilla Firefox Browser entirely for creating in addition to executing exam Case
> Data driven Testing is non possible
> No Programming support, therefore nosotros can't piece of employment programming features to heighten Test Cases...
> Selenium IDE is non suitable for Complex exam Design
4) Selenium IDE Features

> Create Test Cases / Test Suites...
> Manipulating Test Cases (Insert / Update / Delete Test Steps)
> Execute Test Cases/Test Suites
> Export Test Cases using whatsoever supported format
> Debug Test Cases using Breakpoints
> Insert Comments
5) Menus of Selenium IDE Tool

a) File Menu:

File carte has commands/options for Test Case in addition to Test Suite...

> Create New Test Case
> Open existing Test Case
> Save Test case
> Add Test Case
> Export Test representative inwards a linguistic communication of our choice
Note: All these options are available for Test Suite also...
> Close Selenium IDE
b) Edit Menu:

It has Editor Commands

Etc...For editing Test Steps
Insert New Command / Step
Insert New Comment
c) Actions Menu:

It has options for Record in addition to Run Test Case, in addition to Execute Test Suite

Record & Run...
Insert / Remove Breakpoint
Pause / Resume Test execution
d) Options Menu:

Options carte allows us to configure tool settings,
Change tool timeout value...
Record Option etc...
e) Help Menu:

It provides attention documentation for Selenium IDE
Test Case Pane:

Our Test Script / Test representative is displayed inwards the Test Case pane.

It has ii tabs...

1) Table Format (It displays Commands in addition to Parameters)
2) Source Format (Displays Test Case inwards the native format (.html))
6) Create Test cases inwards Selenium IDE

a) Recording

During Test Recording It generates Test Steps (Command + Target + value) for every User Action
on AUT (Application Under Test).

Note: User tin Edit Test Steps (Insert/Modify/Delete) 

b) Type Test Steps manually

Using Element Locators in addition to Selenese Commands / Selenium IDE Commands 
User / Tester tin generate verification points using verification commands.
Two of import types of Selenese Commands,
a) General Commands (Ex: type, click...)
b) Verification Commands (assert, verify...)
> When an "assert" fails, therefore Test Case execution volition travel aborted.
> Where is "verify" fails, The Test Case execution volition proceed in addition to It logs the failure.
> So when Assertion fails all Test Steps afterward that delineate of piece of employment of code are skipped.
Note: If at that topographic point is whatsoever Functionality dependency therefore select "assert" ascendancy otherwise choose
"verify" ascendancy to execute the entire Test case...

Note 2: If entirely unmarried verification indicate inwards our Test Case therefore nosotros tin select either "assert" or
"verify" commands to insert verification point.
Writing Test Cases...

1) Test Case: verify "Gmail" Link Existence inwards Google Home Page

Test Steps:
i) Navigate to Google Home page (

Verify the Existence of "Gmail" Link

Input Data:
2) Verify "Admin Login" Functionality inwards gcrshop Admin Interface

Test Steps:
i) Navigate to ""
ii) Enter "Username"
iii) Enter "Password"
v) Click ""Login" Button
Verification Point
Check the beingness of "Log Off" Link, if exists therefore Pass otherwise fail

Input Data:
i) Username: admin
ii) Password: admin@123
3) Verify "User Login" Functionality inwards gcrShop User Interface

i) Navigate to ("")
ii) Click "login" Link
iii) Enter "Email Address"
iv) Enter "Password"
v) Click "Sing In Button"

Capture the conformation message in addition to verify...

Input Data:
Email Address:
Password: abcdxyz321


No comments:

Post a Comment