Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Different Types Of Automated Tests

1,180 views

Published on

Let’s see the most used types of tests and understand how each one is useful. We will write live code, and we will discuss automated tests written.
The types of tests covered are:
Unit Tests = Tests in isolation, focused on methods and classes. White box tests.
Integration Tests = Tests about how two different modules integrate. Black box tests.
Integrated Tests = Big, large tests showing how many modules integrate, with a business purpose. Black box tests.
Acceptance Tests = Tests showing that an application features behaves well. Black box tests.
Contract Tests = Special type of tests, that verify polimorphism integration of multiple components or classes.
We will focus on clean code, good test names that can become executable specifications.

Published in: Software
  • Be the first to comment

  • Be the first to like this

Different Types Of Automated Tests

  1. 1. Different Types Of Automated Tests by Adrian Bolboacă www.mozaicworks.comTalk outline: https://eventrix.co/s/adrian-bolboaca-1/different-types-of-automated-tests-254
  2. 2. Me Adi Bolboacă Programmer, Trainer, Coach adrian.bolboaca@mozaicworks.com @adibolb www.mozaicworks.com
  3. 3. A story about: Programming Testing Business Product Development There will be code! www.mozaicworks.com
  4. 4. Let's see Some tests Let's have a dialogue I prefer discussions rather than me talking www.mozaicworks.com
  5. 5. Pyramid of Tests www.mozaicworks.com
  6. 6. Pyramid of Tests www.mozaicworks.com Can be different for each project The priority of tests is your decision You choose which tests to use The fast tests are at the bottom The slower tests are towards the top Changes depending on project stage
  7. 7. Manual Testing www.mozaicworks.com Create high level test plan Write detailed test cases Testers ruch each case manually Generate test report Black | White | Grey box testing Static | Dynamic testing
  8. 8. Automated Testing www.mozaicworks.com Use software to execute tests For repetitive testing tasks Needs testable architecture & design Faster feedback for product sanity Need good structure & clarity Testers, Programmers, Ops involved
  9. 9. Unit Tests www.mozaicworks.com White box Isolated, run in memory Focused on methods and classes Very fast, miliseconds Any slow system call not unit tests→ Written by programmers Technical purpose
  10. 10. Unit Tests www.mozaicworks.com A leukocite Many leukocites form the immune system Each leukocite is independent of the other All leukocites respect the same rules & have the same purpose
  11. 11. Integration Tests www.mozaicworks.com Black box Check how two modules integrate Focused on APIs Slow Test one API feature at a time Writen by programmers / testers Technical purpose
  12. 12. Integration Tests www.mozaicworks.com
  13. 13. Integration Tests www.mozaicworks.com A module is: Independent Replaceable Clear & Has a single responsibility
  14. 14. Integrated Tests www.mozaicworks.com Black box Big, tests showing how many modules integrate Written by programmers Business purpose
  15. 15. Acceptance Tests www.mozaicworks.com Black box Showing a features works well Focused on final user needs Automate happy paths mainly Written by testers Business purpose
  16. 16. Acceptance Tests www.mozaicworks.com Do you respect the medical acceptance criteria: • Blood pressure • Cholesterol • Blood sugar index • ...
  17. 17. Contract Tests www.mozaicworks.com White Box Verify polymorphic integration of multiple components Minimize number of tests Maximize system clarity at boundaries Technical & Business purpose Written by programmers
  18. 18. Contract Tests www.mozaicworks.com All the leukocites need to respect the same rules: contract Not respecting the contracts → disease
  19. 19. Contract Tests www.mozaicworks.com An automated way to check for systemic malfunctions on individuals respecting the same contract
  20. 20. Testing Strategy www.mozaicworks.com A structured focus on product testing Involves all the roles Boundaries between tests Audience for tests Precedence of tests Testablity metrics Expected tests performance
  21. 21. What’s Next www.mozaicworks.com Automated Tests Purposes http://blog.adrianbolboaca.ro/2017/01/automated-tests-purposes Writing Good Unit Tests https://www.infoq.com/news/2017/01/writing-good-unit-tests
  22. 22. What’s Next www.mozaicworks.com Let’s pair here at the conference OR Remote pairing with Teamviewer, Skype, etc http://blog.adrianbolboaca.ro/contact
  23. 23. What’s Next www.mozaicworks.com Un-conferences: SoCraTes Germany https://www.socrates-conference.de I T.A.K.E. Unconference Bucharest http://itakeunconf.com Code Freeze Finland (Lapland) http://www.codefreeze.fi
  24. 24. Contact Me Email: adrian.bolboaca@mozaicworks.com Twitter: @adibolb Eventrix: https://eventrix.co/s/adrian-bolboaca-1 LinkedIn: https://www.linkedin.com/in/adrianbolboaca Slideshare: http://www.slideshare.net/adibolb Blog: http://blog.adrianbolboaca.ro www.mozaicworks.com
  25. 25. Extend your mentoring & training capacity Accelerate learning through communities of practice Grow your functional leaders and top talents http://www.mozaicworks.com adrian.bolboaca@mozaicworks.com @adibolb
  26. 26. Thank you! www.mozaicworks.com

×