Upload
edureka
View
257
Download
0
Embed Size (px)
Citation preview
View Selenium course details at www.edureka.co/testing-with-selenium-webdriver
Test Automation with Selenium Web driver
Slide 2 www.edureka.co/apache-spark-scala-trainingSlide 2
Objectives
At the end of this module, you will be able to
Disadvantages of Manual Testing
Know about Automation Testing
Learn Selenium and its advantages
Learn Automation Metrics
Understand Selenium Web driver
Demo on Selenium Web Driver
www.edureka.co/testing-with-selenium-webdriver
Slide 3 www.edureka.co/apache-spark-scala-trainingSlide 3
Disadvantages Manual Testing
Manual Testing of all work flows, all fields , all scenarios is time and cost consuming, and required more resources
Scope of manual test is very limited
Executing same test case again and again is tedious task
Manual testing will be used when the test case only needs to runs once or twice
Simultaneously testing on different machine with different OS platform combination is not possible using manual testing
www.edureka.co/testing-with-selenium-webdriver
Slide 4 www.edureka.co/apache-spark-scala-trainingSlide 4
Test automation
Test automation is the use of special software to control the execution of tests and the comparison of actual outcomes with predicted outcomes.
Optimization of Speed, Efficiency, Quality and the Decrease of Costs
Advance a Tester´s Motivation and Efficiency
Increase of Test Coverage
Why automate Testing?
www.edureka.co/testing-with-selenium-webdriver
Slide 5 www.edureka.co/apache-spark-scala-trainingSlide 5
Benefits of automated testing
70% faster than the manual testing Wider test coverage of application features Reliable in results Ensure Consistency Saves Time and Cost Improves accuracy Human Intervention is not required while execution Increases Efficiency Better speed in executing tests Re-usable test scripts Test Frequently and thoroughly More cycle of execution can be achieved through automation Early time to market
www.edureka.co/testing-with-selenium-webdriver
Slide 6 www.edureka.co/apache-spark-scala-trainingSlide 6
When to use Test automation
Regression Testing
Smoke Testing
Static & Repetitive Tests
Task involves complex calculation
Data Driven Testing
Test Cases which are time consuming
www.edureka.co/testing-with-selenium-webdriver
Slide 7 www.edureka.co/apache-spark-scala-trainingSlide 7
Application changing near to Future
Test cases which are executed on ad-hoc basis.
When NOT to use Test automation
www.edureka.co/testing-with-selenium-webdriver
Slide 8 www.edureka.co/apache-spark-scala-trainingSlide 8
HP Quick Test Professional
Selenium
IBM Rational Functional Tester
Sikuli
Silk Test
Win Runner
Load Runner
Visual Studio Test Professional
WATIR
Automation Testing Tools
www.edureka.co/testing-with-selenium-webdriver
Slide 9 www.edureka.co/apache-spark-scala-trainingSlide 9
Selenium is used to automate web applications across different platforms using different programming languages
This is one of the best tool for web applications
Performance and execution speed of selenium automation tool is much better than any automation tool which is available in market because of its native support for browsers and also web Drivers operates on the OS lever
Selenium
www.edureka.co/testing-with-selenium-webdriver
Slide 10 www.edureka.co/apache-spark-scala-trainingSlide 10
Supports almost every OS
Open source
Cost-effective automation testing
Supports multiple programming language
Independent of web Application programming language
Supports multiple browsers
More options to find an object
Parallel execution
Provides support for open source frameworks like TestNG, Junit
Features of Selenium
www.edureka.co/testing-with-selenium-webdriver
Slide 11 www.edureka.co/testing-with-selenium-webdriver
Test Execution Calculation
Automation Metrics
Test Script Preparation
Reliability Time to Market
Cross Browser testing
Cost Reduction
4000 Test Cases4 ResourcesPer resource = 1000Per resource = 1000/40 =25 Days
4000 Test Cases4 ResourcesPer resource = 1000Per resource = 1000/20 = 50 Days
Total = 4000Day 1 = 24*60 minutesPer script execution = 5 minutes(60 * 9) / 5 minutes = 108 Test Cases / machine(60 * 24 ) / 5 minutes = 288 Test Cases / machine
4 Machine = 288 * 4 = 1152 Test Cases1152 * 4Days = 4608 Test Cases
Slide 12 www.edureka.co/apache-spark-scala-trainingSlide 12
Flavors of Selenium
SeleniumSuite
Selenium IDE
Selenium RC
WebDriverSelenium
Grid
Selenium 2
Merged
www.edureka.co/testing-with-selenium-webdriver
Slide 13 www.edureka.co/apache-spark-scala-trainingSlide 13
Selenium WebDriver
Selenium WebDriver is used to automate Web based applications on multiple platforms across different browsers with different programming languages
Selenium WebDriver is faster that RC because of its simpler architecture
Selenium 1.0 + WebDriver = Selenium 2.0
www.edureka.co/testing-with-selenium-webdriver
Slide 14 www.edureka.co/apache-spark-scala-trainingSlide 14
Selenium WebDriver
WebDriver is simpler and more concise programming interface than Selenium-RC AP
It is a compact Object Oriented API when compared to Selenium 1.0
It interacts with browser directly while selenium RC need help of RC server to interact with browser which makes it slow
Selenium WebDriver overcomes the limitations of selenium 1.0, like file upload or download, pop-ups and dialogsBarrier
It overcomes the limitation of selenium RC single Host Origin Policy
www.edureka.co/testing-with-selenium-webdriver
Slide 15 www.edureka.co/testing-with-selenium-webdriver
Selenium Web Driver
Selenium Web Driver
Cross Browser Testing
Parallel Testing
Supports Different Language Scripting
Supports Different Operating System
Easy Framework Development
Firefox, Chrome, IE, Safari
Multiple browser in same time
JAVA, C#, PHP, Ruby, Perl, Python
Windows, Mac, Linux, Android, iOS
Keyword Driver, Data driven, etc.
Slide 16 www.edureka.co/apache-spark-scala-trainingSlide 16
Advantages Disadvantages
Doesn't required selenium server to be start before executing test scripts
It does not support and non web-based applications
Directly communicates with the browser
You need to know at least one of the supported language very well in order to automate your
application successfully.
A purely object oriented interface
No inbuilt reporting capability so you need plugins like JUnit and TestNG for test reports.
Support dynamic findersLot of challenges with IE browser.
Support implementation of listenersNO Technical support you need to rely on the selenium community forums to get your issue
resolved.
Selenium Web Driver
www.edureka.co/testing-with-selenium-webdriver
Slide 17 www.edureka.co/testing-with-selenium-webdriver
Selenium WebDriver Vs Selenium RC
1. Simpler Architecture
2. Faster
3. Direct Interaction with user
4. Simpler and better API
5. Support for HTMLUnit browser
1. Complex Architecture
2. Slower than WebDriver
3. Acts as a communication mode to interact with User
4. No support for HTMLUnit browser
Se
len
ium
We
bD
rive
rS
ele
niu
m R
C
www.edureka.co/testing-with-selenium-webdriver
Slide 18 www.edureka.co/testing-with-selenium-webdriver
Architecture: WebDriver
Selenium Commands(Java, .NET, Python)
Browser
Web Server
Slide 19 www.edureka.co/testing-with-selenium-webdriver
How Selenium WebDriver works
Test Scripts
WebDriver
Browsers
Slide 20 www.edureka.co/testing-with-selenium-webdriver
Each browser has its own driver on which application runs
These browser drivers has built in support for Automation
Types of Drivers
» HtmlUnit Driver
» IE Driver
» Firefox Driver
» Chrome Driver
» Safari Driver
Types of Selenium WebDriver
Slide 21 www.edureka.co/apache-spark-scala-trainingSlide 21
Demo On Selenium Web Driver
www.edureka.co/testing-with-selenium-webdriver
Slide 22 www.edureka.co/apache-spark-scala-training
LIVE Online Class
Class Recording in LMS
24/7 Post Class Support
Module Wise Quiz
Project Work
Verifiable Certificate
Course Features
www.edureka.co/testing-with-selenium-webdriver
Slide 23 www.edureka.co/apache-spark-scala-training
Questions
www.edureka.co/testing-with-selenium-webdriver
Slide 24 www.edureka.co/apache-spark-scala-trainingSlide 24 www.edureka.co/testing-with-selenium-webdriver
Module 1 » Introduction to Selenium & its components
Module 2» Selenium RC and Locater Techniques
Module 3 » Selenium WebDriver
Module 4 » Validation and Designing of Framework
Module 5» WerDriver Advanced Usage and Selenium IDE
Module 6» Programming and Report Generation
Module 7» Selenium-Grid, Sikuli, TestNG, Automating with AutoIt
Module 8» Project
Course Topics
Slide 25 www.edureka.co/apache-spark-scala-training