SaFi Bank Space : SaFi Standard of SaFi Automation Test(WIP)

It’s always good for everyone to follow same convention to write automation test, so we are about to establish a standard for SaFi automation test.

The standard should include:

  • What kind of tests we need

  • What is the boundary for each kind of test

  • How to write each kind of test

Test Pyramid

Write tests with different granularity.

The more high-level you get the fewer tests you should have.

- Mike Cohn (who came up with the concept test pyramid)

Principles

Writes just enough tests, avoid duplicating tests throughout the different layers of the pyramid.

Every single test in your test suite is additional baggage and doesn't come for free. Writing and maintaining tests takes time. Reading and understanding other people's test takes time. And of course, running tests takes time.

Standards

Unit Test

Component Test

Contract Test

User Journey Test/Regression Test

Performance Testing

Integration Test (POSTPONE)

API Test(POSTPONE)

References

https://martinfowler.com/articles/microservice-testing/

https://martinfowler.com/articles/practical-test-pyramid.html

https://martinfowler.com/testing/

https://martinfowler.com/tags/test%20categories.html

https://testing.googleblog.com/2015/04/just-say-no-to-more-end-to-end-tests.html

Attachments: