My experience with fixing and refactoring of Test Automation.
Nowadays we all accumulated quite a lot of Automated Testing solutions and have issues managing it.
Automation extensively v Worked on a number of great projects with Test Automation v Coaching and Teaching v Co-organiser of Riga Test Automation Club 1
top-tier gaming brands than any other provider v Business is actively growing v 3 Development Centres with ~400 engineers v Riga v Tallinn v Amsterdam Evolution Gaming 3
2011 v Plain Java scenarios with Page Objects v Lots of different builds v On application code PUSH to GIT v Scheduled v Runs for Flash, HTML5, Mobile platforms 7
v Tests are difficult to understand v Testers reporting never-ending ‘fixing tests’ v People find issues not found by automation The problem Automation state
supervision v Push - progress quick! v People taking shortcuts v Quick and dirty… v Copy-Paste v Skip discussions -implement ‘own wheel’ v Lost Vision and Goals 14
Some defence line is in place! v Contains recorded knowledge of our features v Reused across several Teams v Testing of different solutions v Various environments Does a lot of stuff we can’t accomplish manually!
ability to avoid wasting materials, energy, effort, money, and time in doing something or in producing a desired result. https://en.wikipedia.org/wiki/Efficiency 18
that a new auto- test solution will be better? v I am still at the exploration phase v Many great things in place v Infrastructure, pipelines, builds v Preconditions for tests v Lots of ready tests 22
into libraries and helpers! 30 https://upload.wikimedia.org/wikipedia/commons/3/32/National_Library_of_Greece_in_Athens.jpg Libraries - sign of civilisation!
final variables 2. Extracted code into @Step and helper functions 3. Reduced some duplication 4. Moved last ACT step to the @Before method 5. Various Code Style fixes 31
of going into Legacy Code swamp v And start refactoring! 52 https://blog.intracto.com/paying-technical-debt-how-to-rescue-legacy-code-through-refactoring
v How do we define Good Test Automation? v Effective analysis of automated test results v Test Automation Architecture v Tests in the pipeline, CI/CD v Performance testing bots v … v Internal hackathon to play with technologies 59