You are on page 1of 4

Selenium Introduction

*********************

What is automation?

Automation means "writing software to test other software".

A developer will "build" a software and that build is tested by the tester...

Testing tools doesn't understand the requirements at all.


Tools cannot identify any bugs.

The most time consuming part in a test case is the execution part...

Software is always built in versions...


Each version will have a number of test cases...

iOS version 1.0 ----- 1000 TestCases...


iOS version 2.0 ----- 1000 TCs + new TCs for the additional functionality..
1100.

iOS version 3.0 --- Lots of test cases gets repeated for
execution as and when the products grow in size with time...

iOS version 10 --- The number of test cases get physically unmanegeable.. and logically
complex to manage.

Automation comes to our rescue here....


We can automate the process of executing the test cases....

This will save time.


Reports will be generated by the tool.
Tool is more accurate than humans.
The time saved can be utilized for more manual testing....
You can increase the test coverage....
Immediate testing....
Automation will help people to beat the attrition/slowdown...
Automation tools are also sometimes referred to as bots.

There are 2 types of tools:


1) Record and playback..
2) Script based tools --- Which enables the automation
engineers to develop his own
scripts using some programming
language...
Ex: Selenium which can be used to program in many languages:
C# ,JAVA,Ruby,Perl,Python,JavaScript,PHP.... etc.,.

Organizational process for Automation :

1) Feasibility analysis.
2) Tool selection...(technical capabilities,cost,vendor support,learning curve etc.,)
3) Identify the framework.
4) Develop a POC --- Proof of Concept.
5) Develop the scripts, execute them, analyze the results.
6) Repeat the same for every future project.

**********************************************************

Automation test process for the test engineer:

1) Identify the scenarios that should be automated.


2) Then develop a framework.
3) Prepare the test scripts.
4) Design the test data.
5) Execute the test scripts.
6) Analyze the results.
7) Report the results to the client.

************************************************************************
Course Structure

1)Selenium IDE (Record and Playback tool).


2)Selenium RC+Webdriver(Selenium 2.0/3.0).
Corejava(5 sessions)+Auto-IT/Sikuli+TestNG+Maven.
3)Selenium Grid.
4)Automation Frameworks.

Application url : apps.qaplanet.in/qahrm/login.php


qaplanet1/user1

***************************************************************************
Selenium --- IDE(2-Feb-2017)

IDE is a record and playback tool from seleniumhq.org.


It is a plug-in for the firefox browser.
To download, go to seleniumhq.org and click on the downloads tab.
Go to the SeleniumIDE section and under that click on the
"fromaddons.mozilla.org" link.
Click the AddToFirefox button.
The IDE will be added to the tools menu of the Firefox browser.
It can also be viewed in the tool bar.
Additionally we should also download the Firebug/Firepath tools for firefox.

********************************************************
Once we start our IDE, the table view is the place where we have the script.
It contains 3 parts :Command, target and a Value ..
The commands that get generated are called "Selenese" commands.
The language of the script is "Selenese" script.
We can write our own scripts if we rememeber all the commads.

Search box --- id=lst-ib


Search button -- id=_fZl

Project url : apps.qaplanet.in/qahrm/login.php


qaplanet1/user1

************************************************************************************************
Press 'X' by selecting the line in the script...--Will execute the particular line only.
'S' --- Inserts a "Start Point" for the script execution.
'B' --- inserts a break point at a particular line. The script execution will stop one line before the
break point.
We can insert multiple breakpoints.
Resume button -- Will resume the execution of the script.
Step button -- Will execute only one line at a time after encountering a Break point.

Assert --- Assert will check a condition and if the condition fails, then the script execution will be
stopped.
Verify --- Verify will check the condition and even if the condition fails, the script will continue to
execute.
****************************************************************************************************

You might also like