31
Selenium as a trend in test automation - traps to avoid Nataliya Holodiuk

Selenium as a trend

Embed Size (px)

DESCRIPTION

Selenium as a trend

Citation preview

Page 1: Selenium as a trend

Selenium as a trend in test automation - traps

to avoid

Nataliya Holodiuk

Page 2: Selenium as a trend

1. Tool choice2. One project experience3. Traps to be aware of

Will talk about

Page 3: Selenium as a trend

CONFUSED?

Page 4: Selenium as a trend

What?

Page 5: Selenium as a trend

How?

Page 6: Selenium as a trend

Return of investments?

benefit

Page 7: Selenium as a trend
Page 8: Selenium as a trend

Got some trendy tools?

Page 9: Selenium as a trend

Selenium

+ many browsers & OS

+ directly in the browser

+ JAVA, Ruby, Python, etc

+ comprehensible docs

+ communities

Page 10: Selenium as a trend

One project story

Page 11: Selenium as a trend

ecommerce web application written in PHP

Given

tests in Java with Selenium IDE

+

Jenkins(Hudson) CI

Page 12: Selenium as a trend
Page 13: Selenium as a trend
Page 14: Selenium as a trend

RC

slow

Page 15: Selenium as a trend
Page 16: Selenium as a trend
Page 17: Selenium as a trend

Page Object Pattern

Page 18: Selenium as a trend

Trend victims

Page 19: Selenium as a trend

Fail

• 85% of time - test suite maintenance

• new feature breaks up to 50% of tests

• spent time and efforts != expected result

• QAs demoralized• big boss unhappy

?

Page 20: Selenium as a trend

Fail!

good tool = great results!

Classic mistake # 1

Page 21: Selenium as a trend

100% automation

Classic mistake # 2

complete coverage = bug free product

!

Page 22: Selenium as a trend

UI tests only

Classic mistake # 3

Page 23: Selenium as a trend

Automation as a way to find bugs

Another classic mistakes

Interdependent tests

Late automation

Page 24: Selenium as a trend
Page 25: Selenium as a trend
Page 26: Selenium as a trend

BDD Given I visit “http://google.com”When I type “DELL” in “SearchField”And I press “Search”Then I should see “www.dell.ua” in search results

Page 27: Selenium as a trend

Why better?

● clear aims, plan that is easy to follow● acceptance tests – user scenarios automated● tests on PHP – developers involved● using app methods to create preconditions

Page 28: Selenium as a trend

Even more better?

● new tests are written before feature committed● green build rule● more than 1000 effective stable maintainable

tests in 5 months● less time spent on suite support

Page 29: Selenium as a trend

One size doesn’t fit all

Page 30: Selenium as a trend

Any questions?

natali.holodiuk

[email protected]

Page 31: Selenium as a trend

Ever tried. Ever failed. No matter.

Try Again. Fail again. Fail better.

Samuel Beckett