Automation tests question

20 views
Skip to first unread message

Jelena Mehmedovic

unread,
Nov 21, 2022, 6:21:52 PM11/21/22
to Specification by Example
Hello Gojko,

I am currently thinking about test automation strategy on a project, and not quite sure which approach would make more sense in this situation... so I thought I could ask for help.

The situation on the project is like this:
- Project started 5 years ago
- There are no automated tests on UI or integration/api/contract
- Writing of unit tests started a couple of months ago (backwards)
- It is a microservices architecture and there are many clients and each one of them is using different combination of assembly versions

I am thinking about prioritization of automated UI and api tests (api tests which could be done by QA - for example, testing of internal endpoints through Postman - tests which do not communicate directly with developers code).

Would it be better to start with UI automation (e.g. Selenium tests), or first to do automated tests in Postman (e.g. calling internal endpoints and verification of status codes, schema, functional tests, etc).

Thank you in advance.

Kind regards,
Jelena


Gojko Adzic

unread,
Nov 22, 2022, 1:51:24 AM11/22/22
to specificati...@googlegroups.com
Hi Jelena,

The question I'd probably ask is where is the biggest value from automated testing - what user capabilities are worth covering with such tests first? Usually this is some combination of how frequently things change, and what's the damage if the related user capability is disrupted. Find an area that at the same time changes a lot (so there's a solid risk of bugs being introduced) and that supports critical user capabilities (so catching bugs potentially has a big impact). 

You can then decide for each use case if the best way to test it is through the UI, API or even something lower, depending on where the risk is and how easy/difficult it is to automate different layers.

--
You received this message because you are subscribed to the Google Groups "Specification by Example" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specificationbyex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/specificationbyexample/31296c4d-1b29-4ee2-ac1b-42de4948b1afn%40googlegroups.com.

Chris

unread,
Nov 22, 2022, 2:29:21 AM11/22/22
to specificati...@googlegroups.com
Great answer Gojko

Hi Jelena

Building on Gojko’s response… You most likely to encounter a bug in the code that has just been changed. So having tests around code you just changed is valuable. You can prepare the automated tests in advance of the code change by working closely with the product owner to identify where they next want to change the systems. A developer can help translate where a change the PO wants Is likely to land in the code base. I hear you name this approach three Amigos. ;-)

Regards

Chris
(Sent from my iphone.) 

On 22 Nov 2022, at 6:51 am, Gojko Adzic <goj...@gmail.com> wrote:



Jelena Mehmedovic

unread,
Nov 22, 2022, 12:15:47 PM11/22/22
to specificati...@googlegroups.com
Thank you Gojko for the quick and valuable response. I will drive the discussion around the things you've mentioned and collect feedback and then proceed.

Chris, thanks for the advice, I agree with you. Spec by example and TDD/BDD and automation which resonates with the automation testing pyramid is something that I'd always choose if someone asks me. :) 

Kind regards,
Jelena

Reply all
Reply to author
Forward
0 new messages