Different Types Of Automated Tests

download Different Types Of Automated Tests

If you can't read please download the document

Transcript of Different Types Of Automated Tests

Different Types Of Automated TestsbyAdrian Bolboac

www.mozaicworks.com

Talk outline: https://eventrix.co/s/adrian-bolboaca-1/different-types-of-automated-tests-254

Me

Adi BolboacProgrammer, Trainer, [email protected]@adibolb

www.mozaicworks.com

A story about:

Programming

Testing

Business

Product Development

There will be code!

www.mozaicworks.com

Let's see Some tests

Let's have a dialogue

I prefer discussions rather than me talking

www.mozaicworks.com

Pyramid of Tests

www.mozaicworks.com

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

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

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

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

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

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

Integration Tests

www.mozaicworks.com

Integration Tests

www.mozaicworks.com

A module is:

Independent

Replaceable

Clear

&

Has a single responsibility

Integrated Tests

www.mozaicworks.com

Black box

Big, tests showing how many modules integrate

Written by programmers

Business purpose

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

Acceptance Tests

www.mozaicworks.com

Do you respect the medical acceptance criteria:

Blood pressure

Cholesterol

Blood sugar index

...

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

Contract Tests

www.mozaicworks.com

All the leukocites need to respect the same rules: contractNot respecting the contracts disease

Contract Tests

www.mozaicworks.com

An automated way to check for systemic malfunctions on individuals respecting the same contract

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

Whats 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

Whats Next

www.mozaicworks.com

Lets pair here at the conferenceOR

Remote pairing with Teamviewer, Skype, etc

http://blog.adrianbolboaca.ro/contact

Whats 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

Contact Me

Email: [email protected]: @adibolbEventrix: https://eventrix.co/s/adrian-bolboaca-1LinkedIn: https://www.linkedin.com/in/adrianbolboacaSlideshare: http://www.slideshare.net/adibolb Blog: http://blog.adrianbolboaca.ro

www.mozaicworks.com

Extend your mentoring & training capacityAccelerate learning through communities of practiceGrow your functional leaders and top talents

http://www.mozaicworks.com

[email protected]

@adibolb

Thank you!

www.mozaicworks.com