52
Selenium Conference | India 2016 TALES FROM THE DARK SIDE @bendet_ori #SeConf16

Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Embed Size (px)

Citation preview

Page 1: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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
Page 3: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

Michael's FatherNaomi’s Husband

ABOUT ME

Page 5: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

For small talk later…

ABOUT ME

Page 6: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

AND NOW…

Page 7: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

AND NOW…Let’s blow up some MYTHS!

Page 8: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

Evil corporations hate Open SourceWe love Open Source!

Myth #2

Page 10: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Everybody does automated testingEverybody uses automated testing

Myth #3

Page 11: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

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

In the days where the internet looked like…

BRIEF HISTORY

Page 14: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Do you remember your 1st website?

BRIEF HISTORY

Page 15: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

Fast forward to2003…

BRIEF HISTORY

Page 17: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Fast forward to2003…

QTP v6.5

BRIEF HISTORY

Page 18: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Fast forward to2008…

BRIEF HISTORY

Page 19: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Fast forward to2008…

BRIEF HISTORY

QTP v9.5

Page 20: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

I sense a disturbance in

the Force…

Page 21: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Selenium 1.0X, 2.0

BRIEF HISTORY

Page 22: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

“Patience you must have, my young padawan”

Page 23: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

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

HOW WE LEVERAGESELENIUM TODAY

Page 26: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Products that are tested with Selenium

Page 27: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

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

StormRunner Load Infra

Page 30: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

StormRunner Load Containers

Page 31: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

StormRunner Load Test

Page 32: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

ALM OctaneCore

Page 34: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

ALM OctaneEntities

Page 35: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

ALM OctaneTest

Page 36: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

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

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

LeanFT & UFT using Web Driver

Page 40: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
Page 41: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

LFT/

Page 42: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Browser Initialization

Page 43: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

Mobile Center using Appium

Page 45: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

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

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

LeanFT better together with Selenium

Page 48: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

• 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
Page 50: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Begun it has…

Page 51: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016
Page 52: Tales from the Dark Side: Ori Bendet Selenium Conference India 2016

Contact me: @bendet_ori | [email protected]

Come visit us in our booth!