Getting to Continuous Testing

Getting to Continuous Testing

T2 Continuous Testing Thursday, October 3rd, 2019 9:45 AM Getting to Continuous Testing Presented by: Max Saperstone Coveros Brought to you by: 888---268---8770 ·· 904---278---0524 - [email protected] - http://www.starwest.techwell.com/ Max Saperstone Max Saperstone has been working as a software and test engineer for over a decade, with a focus on test automation within the CI/CD process. He specializes in open source tools, including the Selenium tool suite, JMeter, AutoIT, Cucumber, and Chef. Max has led several test automation efforts, including developing an automated suite focusing on web-based software to operate over several applications for Kronos Federal. He also headed a project with Delta Dental, developing an automated testing structure to run Cucumber tests over multiple test interfaces and environments, while also developing a system to keep test data "ageless." He currently heads up the development of Selenified, an open source testing framework to allow for testing of multiple interfaces, custom reporting, and minimal test upkeep. Getting to Continuous Testing A Greenfield Test Automation Story [email protected] maxsaperstone @Automate_Tests Max Saperstone @Automate_Tests 1 Max Saperstone @Automate_Tests Max Saperstone • Director of Testing and Automation at Coveros • Over a decade of test automation experience • Often Test Architect on consulting projects • Helped transform multiple organizations to test effectively within sprints • Mainly focuses on open source tools • Lover of the outdoors and cheap beer Max Saperstone @Automate_Tests 2 Max Saperstone 2 @Automate_Tests Coveros • Coveros helps organizations accelerate the delivery of secure, reliable software • Our consulting services: • Agile software development • Application security • Software quality assurance • Software process improvement • Our key markets: • Financial services • Healthcare • Defense • Critical Infrastructure Max Saperstone @Automate_Tests 3 Max Saperstone 3 @Automate_Tests What IS Continuous Testing? Max Saperstone @Automate_Tests 4 Max Saperstone 4 @Automate_Tests Continuous Testing • Continuous means testing is happening before, during, and after each software change is made • Enabling testing activities: • Collaborate on requirements (ex: BDD) • Validating change constantly (ex: regression testing) • Dev/Test Pairing (ex: exploratory testing, reviewing test cases) • Automated testing in CI (ex: unit testing, API testing, code analysis) • Continuous improvement of test approach, test suites, test scripts • Review of customer feedback and product ratings Max Saperstone @Automate_Tests 5 Max Saperstone 5 @Automate_Tests Seven Continuous Testing Enablers • Whole team quality • Production-like environments (cloud if possible!) • Build orchestration / Continuous integration • Automated testing below the UI • Service virtualization / emulation / simulation • Infrastructure as code and/or container orchestration • Test data management Max Saperstone @Automate_Tests 6 Max Saperstone 6 @Automate_Tests Background • Healthcare company aiming for continuous release process • No test automation • No test automation team • No continuous integration pipeline • No test data management • No test tooling or support Max Saperstone @Automate_Tests 7 Max Saperstone 7 @Automate_Tests Initial Investigation • Previous tries at test automation did not stick • ‘Agile’ organization with some waterfall practices • Complex application, with multiple levels of the application not being tested • Considerable time spent performing manual regression testing • Identified some low hanging fruit for initial automation Max Saperstone @Automate_Tests 8 Max Saperstone 8 @Automate_Tests Roadmap • Develop automation framework • Build CI pipeline • Build test automation pipeline • Integrate test automation • Determine quality thresholds • Implement quality gates • Setup feedback loops Max Saperstone @Automate_Tests 9 Max Saperstone 9 @Automate_Tests Develop Automation Framework • Utilized BDD framework due to • QA technical capabilities • Application breakdown • Went with separate framework repository • Created separate repositories for each application ‘flavor’ • Implemented Git and JIRA integrations • Created Docker test containers Max Saperstone @Automate_Tests 10 Max Saperstone 10 @Automate_Tests Build CI Pipeline • Created Jenkinsfiles for each source code repository • Compiles, unit tests, statically analyzes, and packages the application • Builds docker container • Successful builds have containers pushed to artifact repository • For dependent services, latest artifacts can just be pulled • Simple dependency system • Deploying application is then a matter of pulling all latest artifacts Max Saperstone @Automate_Tests 11 Max Saperstone @Automate_Tests Build Test Automation Pipeline • Ensures tests provided to Devs are stable • Added Jenkinsfiles for each test repository • Compiles, unit tests, and statically analyzes the test cases and test code • Builds docker container • Stands up new instance of application • Runs smoke tests against application • Successful runs have containers pushed to artifact repository Max Saperstone @Automate_Tests 12 Max Saperstone 12 @Automate_Tests Test Automation Pipeline Max Saperstone @Automate_Tests 13 Max Saperstone 13 @Automate_Tests Integrate Test Automation • Application architecture necessitated interdependent services • As a result, often an API change breaks the front end, and vice versa • Added step into CI pipelines to run functional tests • Similar to Test automation pipeline, latest version of application is stood up • Service under test has docker container deployed • Other services have latest pulled from artifact repository • Functional tests are run against latest deployed coded from all services • Passing tests indicate no major integration problems Max Saperstone @Automate_Tests 14 Max Saperstone 14 @Automate_Tests Quality Checks and Feedback Loops • Desired as much information back to developers as possible • Created software quality thresholds in Sonarqube • Used pull/merge requests (PR/MRs) as CI trigger • For PR to merge: • No failed unit tests • Certain code coverage required • No blocker or critical code issues • No failed functional tests • Green/passing pipeline Max Saperstone @Automate_Tests 15 Max Saperstone 15 @Automate_Tests Beyond Continuous Integration • Limited Continuous Deployment Capabilities • Currently working on expanding • Web smoke testing performed • Nightly testing occuring to fill in gaps • CI acts as gate for QA team receiving software • After CI, software testing follows traditional deployment testing processes Max Saperstone @Automate_Tests 16 Max Saperstone 16 @Automate_Tests Continuous Improvement • Further integrate manual and automated teams • Expand out CI testing capabilities • Incorporate testing into all application services • Extend parallelization of testing • Expand continuous delivery to continuous deployment • Aim for daily releases Max Saperstone @Automate_Tests 17 Max Saperstone 17 @Automate_Tests Some Lessons Learned Along The Way • Go with small iterative changes • No boiling the ocean • Fully understand testing and deployment pain-points • Manual and automated QA needs alignment to be successful • Siloed testing organizations will not be successful performing continuous testing • Whole team buy in is required to truly be successful • Identifying and implementing small wins will get the whole team on board Max Saperstone @Automate_Tests 18 Max Saperstone 18 @Automate_Tests Max Saperstone @Automate_Tests 19 Max Saperstone 19 @Automate_Tests.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    21 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us