Speed up your Tests - Devi Sridharan, ThoughtWorks

12
Speed up your tests Devi Sridharan

Transcript of Speed up your Tests - Devi Sridharan, ThoughtWorks

Page 1: Speed up your Tests - Devi Sridharan, ThoughtWorks

Speed up your tests

Devi Sridharan

Page 2: Speed up your Tests - Devi Sridharan, ThoughtWorks

Long test suite….

Page 3: Speed up your Tests - Devi Sridharan, ThoughtWorks

Identify flaky tests

Never heard of it!!!

Page 4: Speed up your Tests - Devi Sridharan, ThoughtWorks

Flaky Test contd…

Isolate flaky test

AnalyseFix the

flakiness

Monitor it continuousl

y

Page 5: Speed up your Tests - Devi Sridharan, ThoughtWorks

Parallelisation

Independent testsMultiple Virtual machinesParallel execution tools (selenium Grid,Test Load Balancer etc )

Page 6: Speed up your Tests - Devi Sridharan, ThoughtWorks

Break the Tests

Smoke Test SuiteRegression Test Suite

Page 7: Speed up your Tests - Devi Sridharan, ThoughtWorks

Create smart test data

A wise QA once said:

Page 8: Speed up your Tests - Devi Sridharan, ThoughtWorks

Create smart test data[Contd…]

Create test data via database or API

fastReliable

Page 9: Speed up your Tests - Devi Sridharan, ThoughtWorks

Fan of xpaths??

To identify objects

Use direct attributes like id,name

Avoid generic locators like //table/tr[2]/td

Page 10: Speed up your Tests - Devi Sridharan, ThoughtWorks

More caffeine to tests…

say ‘NO’ to generic waitsConditional waits

Page 11: Speed up your Tests - Devi Sridharan, ThoughtWorks

Unit test is no more Dev’s Territory… :)

Page 12: Speed up your Tests - Devi Sridharan, ThoughtWorks

Questions???