Automation using Selenium
Objective-Test automation involves automating a manual process already in place that uses a formalized testing process.
Why and When To Automate?
-Frequent regression testing
-Repeated test case Execution is required
-User Acceptance Tests
-Faster Feedback to the developers
-Reduce the Human Effort
-Test same application on multiple environments
Source URL: https://intellipaat.com/selenium-training/
2. http://intellipaat.com/Intellipaat Software Solutions Pvt. Ltd.
Objective
Test automation involves automating a manual
process already in place that uses a formalized testing
process.
> Converting manual test cases into test Script
Why and When To Automate?
• Frequent regression testing
• Repeated test case Execution is required
• User Acceptance Tests
• Faster Feedback to the developers
• Reduce the Human Effort
• Test same application on multiple environments
3. http://intellipaat.com/Intellipaat Software Solutions Pvt. Ltd.
QTP vs Selenium
•
In recent economic crisis, software
companies are planning for cost
reduction and efficient productivity.
•
QTP is losing its market because of the
following limitations:
•
Runs only in Windows environments.
•
Cannot test with all browser types and
versions.
•
Limited to smaller organizations/
testing teams.
•
High licensing and add-inns costs.
•
Slow in execution when compared
with open source tools.
Selenium is a robust set of tools that
supports rapid development of test
automation for web-based
applications
Supports Cross BrowserTesting.The
Selenium tests can be run on multiple
browsers and also supports all
environment
Allows scripting in several languages like
Java, C#, PHP and Python.
Open Source(Free of cost)
Assertion statements provide an efficient
way of comparing expected and actual
results.
Inbuilt reporting mechanism.
4. http://intellipaat.com/Intellipaat Software Solutions Pvt. Ltd.
Selenium IDE
•
Selenium IDE is an integrated development
environment for Selenium tests.
•
It is implemented as a Firefox extension, and
allows you to record, edit, and replay the
test in firefox
•
Selenium IDE allows you to save tests as
HTML, Java, Ruby scripts, or any other
format
•
It allows you to automatically add assertions
to all the pages.
•
Allows you to add selenese commands as
and when required
•
Go To Tools Selenium IDE and the IDE will
be opened
•
Now perform the operations on the
application as you are testing the application
5. http://intellipaat.com/Intellipaat Software Solutions Pvt. Ltd.
Selenium RC
• Selenium Remote
Control architecture
• Selenium 1.0
• A server, written in Java and so available
on all the platforms.
• Acts as a proxy for web requests from
them.
• Client libraries for many popular
languages.
• Bundles Selenium Core and
automatically loads into the browser
• Once the Scripts are recorded add
assertions where ever required
• Now format the Selenese test into the
language of your choice. Please refer to
the Image
6. http://intellipaat.com/Intellipaat Software Solutions Pvt. Ltd.
Selenium WebDriver
• Selenium webdriver
architecture
• Selenium 2.0
• WebDriver is designed to
providing a simpler and
uniformed programming
interface
– Same WebDriver script runs
for different platforms
• Support multiple programming
language:
– Java, C#, Python, Ruby,
PHP, Perl…