tales from the dark side: ori bendet selenium conference india 2016
TRANSCRIPT
Selenium Conference | India 2016
TALES FROM THE DARK SIDE
@bendet_ori#SeConf16
6y in HPE Softwarein various managerial QA rolesToday - Inbound PM for a new cloud testing offering
ABOUT ME
Michael's FatherNaomi’s Husband
ABOUT ME
For small talk later…
ABOUT ME
AND NOW…
AND NOW…Let’s blow up some MYTHS!
It’s not about the toolVendors only use their own
tools
Myth #1
Evil corporations hate Open SourceWe love Open Source!
Myth #2
Everybody does automated testingEverybody uses automated testing
Myth #3
12
A long time ago in a world-wide-web,far far away….
13
Actually it wasn’t that long time ago and not so far far away….
In the days where the internet looked like…
BRIEF HISTORY
Do you remember your 1st website?
BRIEF HISTORY
The testing tools looked like this…
Mercury Astra Quick Test AKA QuickTest Professional (QTP). V1 May 1998
BRIEF HISTORY
Fast forward to2003…
BRIEF HISTORY
Fast forward to2003…
QTP v6.5
BRIEF HISTORY
Fast forward to2008…
BRIEF HISTORY
Fast forward to2008…
BRIEF HISTORY
QTP v9.5
I sense a disturbance in
the Force…
Selenium 1.0X, 2.0
BRIEF HISTORY
“Patience you must have, my young padawan”
Fast forward to 2015… The rise of Selenium
WebDriver support in MS Edge
BRIEF HISTORY
ALWAYS 2 THERE ARE
“…little evidence of the toxicological modification of MeHg (mercury) by
selenium was obtained in epidemiological studies.”
HOW WE LEVERAGESELENIUM TODAY
Products that are tested with Selenium
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
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
StormRunner Load Infra
StormRunner Load Containers
StormRunner Load Test
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
ALM OctaneCore
ALM OctaneEntities
ALM OctaneTest
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
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
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
LeanFT & UFT using Web Driver
LFT/
Browser Initialization
Object Action
1st time we used Web Driver
to get access to the browser
Mobile Center using Appium
The single gateway that expands your organization to the mobile technology across the development lifecycle
HPE Mobile Center
HPE Mobile Center
1st time an open source testing tool is used in an
HPE tool
LeanFT better together with Selenium
• 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
Begun it has…
Contact me: @bendet_ori | [email protected]
Come visit us in our booth!