tales from the dark side: ori bendet selenium conference india 2016
TRANSCRIPT
![Page 1: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/1.jpg)
Selenium Conference | India 2016
TALES FROM THE DARK SIDE
@bendet_ori#SeConf16
![Page 2: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/2.jpg)
![Page 3: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/3.jpg)
6y in HPE Softwarein various managerial QA rolesToday - Inbound PM for a new cloud testing offering
ABOUT ME
![Page 4: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/4.jpg)
Michael's FatherNaomi’s Husband
ABOUT ME
![Page 5: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/5.jpg)
For small talk later…
ABOUT ME
![Page 6: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/6.jpg)
AND NOW…
![Page 7: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/7.jpg)
AND NOW…Let’s blow up some MYTHS!
![Page 8: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/8.jpg)
It’s not about the toolVendors only use their own
tools
Myth #1
![Page 9: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/9.jpg)
Evil corporations hate Open SourceWe love Open Source!
Myth #2
![Page 10: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/10.jpg)
Everybody does automated testingEverybody uses automated testing
Myth #3
![Page 11: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/11.jpg)
12
A long time ago in a world-wide-web,far far away….
![Page 12: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/12.jpg)
13
Actually it wasn’t that long time ago and not so far far away….
![Page 13: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/13.jpg)
In the days where the internet looked like…
BRIEF HISTORY
![Page 14: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/14.jpg)
Do you remember your 1st website?
BRIEF HISTORY
![Page 15: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/15.jpg)
The testing tools looked like this…
Mercury Astra Quick Test AKA QuickTest Professional (QTP). V1 May 1998
BRIEF HISTORY
![Page 16: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/16.jpg)
Fast forward to2003…
BRIEF HISTORY
![Page 17: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/17.jpg)
Fast forward to2003…
QTP v6.5
BRIEF HISTORY
![Page 18: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/18.jpg)
Fast forward to2008…
BRIEF HISTORY
![Page 19: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/19.jpg)
Fast forward to2008…
BRIEF HISTORY
QTP v9.5
![Page 20: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/20.jpg)
I sense a disturbance in
the Force…
![Page 21: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/21.jpg)
Selenium 1.0X, 2.0
BRIEF HISTORY
![Page 22: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/22.jpg)
“Patience you must have, my young padawan”
![Page 23: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/23.jpg)
Fast forward to 2015… The rise of Selenium
WebDriver support in MS Edge
BRIEF HISTORY
![Page 24: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/24.jpg)
ALWAYS 2 THERE ARE
“…little evidence of the toxicological modification of MeHg (mercury) by
selenium was obtained in epidemiological studies.”
![Page 25: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/25.jpg)
HOW WE LEVERAGESELENIUM TODAY
![Page 26: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/26.jpg)
Products that are tested with Selenium
![Page 27: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/27.jpg)
Infra – lowest level working with the browser and locatorsObjects/Containers – represents a module in the application and the activities possible to perform on itActions – (optional) small chunks of business logicTests – complete end-to-end business flows
Re-use of testing assets by 30%-50%Maintainability Allowing all testers to participate in the automation effort; Increase of 200%-400% in automated tests
Automation Framework on top of Selenium
Usually 3-4 layers
Benefits
![Page 28: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/28.jpg)
Tests are written in javascript and executed with grunt and jasmine
StormRunner LoadSaaS Load and Performance testing solution
Infra: basic actions not related to application, html actions with protractor | developed by automation tech-leadContainers: logical elements representing the real application | developed by DevTesterTests: jasmine files representing a business flow in the application | written by all testing team
3 layers of automation
How
![Page 29: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/29.jpg)
StormRunner Load Infra
![Page 30: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/30.jpg)
StormRunner Load Containers
![Page 31: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/31.jpg)
StormRunner Load Test
![Page 32: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/32.jpg)
Tests are written in Java, executed with junit
ALM Octane Next-Gen Application Management solution
Core: utilizes Web driver and locators – with help of dev architectEntities: the actual components/entities of the specific applicationActions: small building blocksTests: complete business flows written by all testers (technical and non-technical)
4 layers of automation
How
![Page 33: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/33.jpg)
ALM OctaneCore
![Page 34: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/34.jpg)
ALM OctaneEntities
![Page 35: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/35.jpg)
ALM OctaneTest
![Page 36: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/36.jpg)
a tool for recording Web-based applications. It is used inside LoadRunner for performance testing on the browser level
TruClient (?)
1. TruClient Sidebar2. TruClient Toolbox3. Firefox browser4. Application Browser Window5. TruClient Sidebar Status Pane
![Page 37: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/37.jpg)
The Automation Suite
Containing the full AUT hierarchy, the App Model displays a Modular view of all the objects implemented in the tested application
LeanFT Application Model
![Page 38: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/38.jpg)
LeanFT Everything is written in the IDE, Dev has access to tests (and used them for sanity)Test code is completely reusable among the whole test suiteThe test is authored once, and can be run on all three browsersIn the test setup, the TruClient launcher – written in WPF - is started and being used, and during the test, standard windows technologies are tested with LFT and web with Selenium.
LeanFT and Selenium working together to
close the technology gap
The Automation Suite
![Page 39: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/39.jpg)
LeanFT & UFT using Web Driver
![Page 40: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/40.jpg)
![Page 41: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/41.jpg)
LFT/
![Page 42: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/42.jpg)
Browser Initialization
![Page 43: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/43.jpg)
Object Action
1st time we used Web Driver
to get access to the browser
![Page 44: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/44.jpg)
Mobile Center using Appium
![Page 45: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/45.jpg)
The single gateway that expands your organization to the mobile technology across the development lifecycle
HPE Mobile Center
![Page 46: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/46.jpg)
HPE Mobile Center
1st time an open source testing tool is used in an
HPE tool
![Page 47: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/47.jpg)
LeanFT better together with Selenium
![Page 48: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/48.jpg)
• LeanFT-Selenium Side-by-Side – a project having both Selenium and LeanFT tests
• LeanFT-Selenium in One - a project that combines LeanFT and Selenium steps in a single test
LeanFT & Selenium
How
• Enhance your Selenium script with more technologies and improved object identification
• Robust Application Modeling and Structure
Why
• Intelligent Object Spy• Robust Application Modeling and Structure
What
LeanFT = UFT’s younger & cooler brother
![Page 49: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/49.jpg)
![Page 50: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/50.jpg)
Begun it has…
![Page 51: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016](https://reader036.vdocuments.us/reader036/viewer/2022062522/588555891a28ab47268b5297/html5/thumbnails/51.jpg)