More Related Content Similar to Tech talks (Automation on Selenium Web Driver. How to begin & implement) (20) Tech talks (Automation on Selenium Web Driver. How to begin & implement)1. Tech Talks: Web Driver Taras Lytvyn
Implementation and
Features
© 2012GlobalLogic Inc. 1
2. Contents
- Automation implementation (+ migrating)
- How to update skills for “automation
ability”
- Selenium WebDriver “advanced level “ tricks
- Selenium WebDriver Features
development and implementation in
examples (overview of situations that
“are not automated”)
© 2012GlobalLogic Inc. 2
3. Starting Automation on Selenium
WebDriver
You are manual You currently have
tester and want to automation on
implement your project based
automation testing on Selenium 1 and
on your project on want to make a
WebDriver. restyling with
WebDriver.
© 2012GlobalLogic Inc. 3
4. Existing Automation on Selenium
Implementation,
updating
Framework on Framework on
Selenium 1 Selenium 2
© 2012GlobalLogic Inc. 4
5. Migrating features (Case 1)
- Build Framework To make life easier
- Use Pattern approach
Simon Stewart Migration approach
Getting Started - launching
Clicking and Typing is More Complete
WaitForPageToLoad Returns Too Soon
Finding By approach
Executing Javascript Doesn’t Return Anything
Comparisons
© 2012GlobalLogic Inc. 5
6. MANUAL Testing
Update Skills 1 {…} Practice in
Record/Playback
Update Skills 2 {…}
Build Simple Implement and
Framework develop dif. features
© 2012GlobalLogic Inc. 6
7. From Manual Testing (Case 2)
- Read “Automated Software Testing” (by
Elfriede Dusting),
Watch webinar “What is automation”
- Learn Programming Language syntax/Install Eclipse
Prog. Languages for automation (Web based)
JAVA
Thinking in Java (by B.Eckel)
Java for QA/QC engineers
© 2012GlobalLogic Inc. 7
8. From Manual Testing (Case 2)
- HTML, CSS, JS syntax
- Install:
Selenium IDE,
firebug,
firepath
- Watch Record/Playback Selenium IDE Tutorial
- Create account on automated-testing.info
- Watch “Locators” Tutorial
- Watch “RegExps” Tutorial/Perform RegExp practice here
© 2012GlobalLogic Inc. 8
9. From Manual Testing (Case 2)
- Learn JUnit/Test NG Specification and
features
- Improve programming skills with Selenium
IDE + Eclipse + JUnit
- Try to build your first Automation Framework
Advanced automation
- Refactor your code, create extensions, stubs, wraps, etc.
- Try to automate things “that couldn’t be automated”
© 2012GlobalLogic Inc. 9
10. “Things couldn’t be automated”
as WebDriver tricks
EXAMPLES:
- CANVAS, drag & drop on html page
- N-Window Automation (with JS injection)
- Windows Upload pop-up
© 2012GlobalLogic Inc. 10
11. “Things couldn’t be automated”
Canvas
Trick with checking the image correctness
- With JS execution (getValue())
- Sikuli Java Library
© 2012GlobalLogic Inc. 11
12. “Things couldn’t be automated”
Working with more then 1 tab
Trick with checking the image correctness
Resolve: JS injection for creating anchor tag with url of needed page
Handle first window, from that test is started
© 2012GlobalLogic Inc. 12
14. “Things couldn’t be automated”
Windows Upload Pop-Up
Trick with checking the image correctness
© 2012GlobalLogic Inc. 14
15. Selenium WebDriver is free powerful
tool for web automation
Selenium WebDriver has excellent
web support
To begin automate with Selenium WebDriver
successfully …
- SET OF SKILLS
- PRACTICE
For advanced using…
- Forums, blogs (automated-testing.info)
- Look for difficult situations and try to automate them
© 2012GlobalLogic Inc. 15
17. Taras Lytvyn
automation QC in Global Logic inc.
email : taras.lytvyn@globallogic.com
web: http://testers.lviv.ua/automation_blog
skype: tasryk
© 2012GlobalLogic Inc. 17