32
www.edureka.co/r-for-analyti www.edureka.co/testing-with-selenium-webdriv Learn Why use Selenium with 3 Million Dollar Bugs ?

Learn why use selenium with 3 million dollar bugs!

  • Upload
    edureka

  • View
    549

  • Download
    3

Embed Size (px)

Citation preview

Page 1: Learn why use selenium with 3 million dollar bugs!

www.edureka.co/r-for-analyticswww.edureka.co/testing-with-selenium-webdriver

Learn Why use Selenium with 3 Million Dollar Bugs ?

Page 2: Learn why use selenium with 3 million dollar bugs!

Slide 2Slide 2Slide 2 www.edureka.co/testing-with-selenium-webdriver

Agenda

What Is A Million Dollar Bug?

Million Dollar Bug #1

Million Dollar Bug #2

Million Dollar Bug #3

Impact Of A Million Dollar Bug

Best Practices to Avoid Such Bugs

How Selenium Automation Helps

Page 3: Learn why use selenium with 3 million dollar bugs!

Slide 3Slide 3Slide 3 www.edureka.co/testing-with-selenium-webdriver

What Is A Million Dollar Bug??

Page 4: Learn why use selenium with 3 million dollar bugs!

Slide 4Slide 4Slide 4 www.edureka.co/testing-with-selenium-webdriver

A bug that took a million dollar to get detected

A bug that costed a million dollar damage in business

A bug that has caused a damage to company’s reputation

A bug which has been reported by a customer

What Is A Million Dollar Bug??

Page 5: Learn why use selenium with 3 million dollar bugs!

Slide 5Slide 5Slide 5 www.edureka.co/testing-with-selenium-webdriver

Million Dollar Bug #1

Page 6: Learn why use selenium with 3 million dollar bugs!

Slide 6Slide 6Slide 6 www.edureka.co/testing-with-selenium-webdriver

Bug #1 : Immigration

Cost up to $1.6 billion

The system was incapable of dealing with backlog cases.

Resulted in 29000 applications

backlog. Also failed to locate

50000 people

Page 7: Learn why use selenium with 3 million dollar bugs!

Slide 7Slide 7Slide 7 www.edureka.co/testing-with-selenium-webdriver

Million Dollar Bug #2

Page 8: Learn why use selenium with 3 million dollar bugs!

Slide 8Slide 8Slide 8 www.edureka.co/testing-with-selenium-webdriver

Software glitch that can potentially shutdown the

hybrid system while on the road

Worldwide recall for 1.9 million hybrid prius cars• 130,000 hybrid prius cars

in europe • 713,000 in north America• 997,000 in japan

Toyota has recalled over 1.9 million hybrid Prius cars

due to a software glitch

Cost more than $2 billion

Bug #2 : Automobile

Page 9: Learn why use selenium with 3 million dollar bugs!

Slide 9Slide 9Slide 9 www.edureka.co/testing-with-selenium-webdriver

Million Dollar Bug #2

Page 10: Learn why use selenium with 3 million dollar bugs!

Slide 10Slide 10Slide 10 www.edureka.co/testing-with-selenium-webdriver

Bug #3 : E-Commerce

Products on sale for just One penny in Amazon marketplace.

Many picked up items as expensive as mobile phones for just 1 penny.

This glitch was attributed to a bug in amazon price comparison software

Cost up to $100,000

Page 11: Learn why use selenium with 3 million dollar bugs!

Slide 11Slide 11Slide 11 www.edureka.co/testing-with-selenium-webdriver

How Do These Bugs Creep In

Human factor Communication failure

Unrealistic development

timeframe

Poor design logic Poor coding practices

Lack of version control

Buggy third-party tools

Lack of skilled testing

Last minute changes

Page 12: Learn why use selenium with 3 million dollar bugs!

Slide 12Slide 12Slide 12 www.edureka.co/testing-with-selenium-webdriver

Impacts

Huge monetary loss Damage to brand reputation

Employee Dissatisfaction/churn

Shutdown of a particular service/company

Customer Dissatisfaction/churn Legal issues

Page 13: Learn why use selenium with 3 million dollar bugs!

Slide 13Slide 13Slide 13 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Page 14: Learn why use selenium with 3 million dollar bugs!

Slide 14Slide 14Slide 14 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Use available libraries

Page 15: Learn why use selenium with 3 million dollar bugs!

Slide 15Slide 15Slide 15 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Use available libraries

For existing code, learn how to refactor

Page 16: Learn why use selenium with 3 million dollar bugs!

Slide 16Slide 16Slide 16 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standardsUse available librariesFor existing code, learn how to refactorDon't do anything too quickly

Page 17: Learn why use selenium with 3 million dollar bugs!

Slide 17Slide 17Slide 17 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Use available libraries

For existing code, learn how to refactor

Don't do anything too quickly.

Follow Test driven development approach

Page 18: Learn why use selenium with 3 million dollar bugs!

Slide 18Slide 18Slide 18 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Use available libraries

For existing code, learn how to refactor

Don't do anything too quickly.

Follow Test driven development approach

Write unit tests and integration testsTest

ing

Page 19: Learn why use selenium with 3 million dollar bugs!

Slide 19Slide 19Slide 19 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Use available librariesFor existing code, learn how to refactorDon't do anything too quickly.Follow Test driven development approachWrite unit tests and integration testsGet somebody else to look at the code

Test

ing

Page 20: Learn why use selenium with 3 million dollar bugs!

Slide 20Slide 20Slide 20 www.edureka.co/testing-with-selenium-webdriver

Best Practices to Avoid Bugs

Avoid fancy coding, Follow standards

Use available libraries

For existing code, learn how to refactor

Don't do anything too quickly.

Get somebody else to look at the codeTest your code, then have it tested by someone elseWrite unit tests and integration tests

Involve your testers as early as you canTry to automate test cases for any complex platform

Test

ing

Page 21: Learn why use selenium with 3 million dollar bugs!

Slide 21Slide 21Slide 21 www.edureka.co/testing-with-selenium-webdriver

Why Rigorous Testing is Mandatory

To point out the defects and errors that may cause million dollar loss to a system

To ensure that what we create does what it’s supposed to do

To ensure the delivery of best product and experience

To ensure that the something works on every intended machine

To have effective performance of software application or product.

To stay in the business

Page 22: Learn why use selenium with 3 million dollar bugs!

Slide 22Slide 22Slide 22 www.edureka.co/testing-with-selenium-webdriver

Ways of Software Testing

Page 23: Learn why use selenium with 3 million dollar bugs!

Slide 23Slide 23Slide 23 www.edureka.co/testing-with-selenium-webdriver

Manual Vs Automation

Page 24: Learn why use selenium with 3 million dollar bugs!

Slide 24Slide 24Slide 24 www.edureka.co/testing-with-selenium-webdriver

Manual Vs Automation

Page 25: Learn why use selenium with 3 million dollar bugs!

Slide 25Slide 25Slide 25 www.edureka.co/testing-with-selenium-webdriver

High Risk - Business Critical test cases

Test cases that are executed repeatedly

Test Cases that are very tedious or difficult to perform manually

Test Cases which are time consuming

Which Test Cases To Automate And Which To Not?Test cases to be automated can be selected using the following criterion :

The following category of test cases are not suitable for automation :Test Cases that are newly designed and not executed manually at least once

Test Cases for which the requirements are changing frequently

Test cases which are executed on ad-hoc basis.

Page 26: Learn why use selenium with 3 million dollar bugs!

Slide 26Slide 26Slide 26 www.edureka.co/testing-with-selenium-webdriver

Selenium salient features

Open source – no extra cost to find bug Light weight (<100 MB)

Multiple languages support( java, C#, python, ruby etc…)

All browser support (chrome,mozilla,ie,safari

etc…)OS support

(linux,windows,ios etc…) Easy bug reporting

Wide ecosystem supportDevelop script once, run

the same on multiple browser

Special handling of ajax control

Page 27: Learn why use selenium with 3 million dollar bugs!

Slide 27Slide 27Slide 27 www.edureka.co/testing-with-selenium-webdriver

Real events in the browser• Webdriver object triggers real events in the browser: mouse clicks, button clicks,

entering text, and events from the keyboard

Drives a specific set of commands and check status• Drives a specific set of commands and check status—to see if the user is logged in, if the

book goes into the shopping cart, or if a transaction processes.

Report with the number of assertions

• Webdriver will kick out a report with the number of assertions, the ones passing and failing, and where the errors occur

Automate your actions in a web browser

• Automate your actions in a web browser and save them as automated tests that you can replay at a later time.

Selenium WebDriver salient features

Page 28: Learn why use selenium with 3 million dollar bugs!

Slide 28Slide 28Slide 28 www.edureka.co/testing-with-selenium-webdriver

Can we Eliminate every chances Million Dollar Bugs by following best practices ??

No one's perfect, and no matter what we do, we are going to produce code that has bugs in it from time to time

Can We Avoid Bugs Completely??

Page 29: Learn why use selenium with 3 million dollar bugs!
Page 30: Learn why use selenium with 3 million dollar bugs!

Questions

Slide 30

Page 31: Learn why use selenium with 3 million dollar bugs!

Slide 31

Your feedback is vital for us, be it a compliment, a suggestion or a complaint. It helps us to make your experience better!

Please spare few minutes to take the survey after the webinar.

Survey

Page 32: Learn why use selenium with 3 million dollar bugs!