speed up your tests - devi sridharan, thoughtworks
TRANSCRIPT
Speed up your tests
Devi Sridharan
Long test suite….
Identify flaky tests
Never heard of it!!!
Flaky Test contd…
Isolate flaky test
AnalyseFix the
flakiness
Monitor it continuousl
y
Parallelisation
Independent testsMultiple Virtual machinesParallel execution tools (selenium Grid,Test Load Balancer etc )
Break the Tests
Smoke Test SuiteRegression Test Suite
Create smart test data
A wise QA once said:
Create smart test data[Contd…]
Create test data via database or API
fastReliable
Fan of xpaths??
To identify objects
Use direct attributes like id,name
Avoid generic locators like //table/tr[2]/td
More caffeine to tests…
say ‘NO’ to generic waitsConditional waits
Unit test is no more Dev’s Territory… :)
Questions???