# Advice on test automation approach

**URL:** <https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836>\
**Category:** Archive\
**Tags:** automation\
**Created:** [17 July 2020 10:17 UTC](https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836 "2020-07-17T10:17:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay\_p1](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/jay_p1/32/7555_2.png) [@jay\_p1](https://club.ministryoftesting.com/u/jay_p1)\
**Post date:** [17 July 2020 10:17 UTC](https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836/1 "2020-07-17T10:17:00Z")

</div>

Hey all,  
I needed some advice on my teams test automated approach.

Some context, our UK based web application is going to be pushed out to Italy and Portugal over the next 6-8 months.

It will be the same code base across multiple regions with translations configured via locale and feature toggles.

Our test automation effort is in it’s early days with 5 core flows in our uk app, what would you advise on as to best approaches structuring the framework to run across different regions, with different features enabled/disabled via feature toggles.

---

<div class="post-metadata">

**Author:** ![priti\_testrig](https://avatars.discourse-cdn.com/v4/letter/p/edb3f5/32.png) [@priti\_testrig](https://club.ministryoftesting.com/u/priti_testrig)\
**Post date:** [17 July 2020 11:00 UTC](https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836/2 "2020-07-17T11:00:54Z")

</div>

Hello,

The question is very Wider and deeper to explain but I would like to explain you in short term. The main purpose of test automation is improve test coverage and the value of test process which automatically improve the software quality.

**So Before start with automation testing, You can consider below points to improve your result.**

1- Identify the test cases which are helpful for automation testing  
2- Consider test automation for better quality not for better or faster product delivery.  
3- Don’t Mix up Automation and Manual testing teams  
4-Ensure your User Interface is Fixed  
5-Simulating a Large Number of Users  
6- and the most important focus on Test Requirement

Wait, For further details You can also refer this article: [Things to Know Before Performing Automation Testing](https://www.testrigtechnologies.com/test-automationtop-10-things-to-know-before-perform-automation-testing/)

---

<div class="post-metadata">

**Author:** ![joaofarias](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/joaofarias/32/11709_2.png) [@joaofarias](https://club.ministryoftesting.com/u/joaofarias)\
**Post date:** [18 July 2020 07:20 UTC](https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836/3 "2020-07-18T07:20:49Z")

</div>

Localization is usually determined by flags in the back calls:

- On the URL: [site.uk](http://site.uk) / site.it / …
- A query parameter: [site.com?lang=it](http://site.com?lang=it) / [site.com?lang=en](http://site.com?lang=en)
- On the body of the PUT and POST requests

That being said, you can:

- On the frontend automated checks:

- On the backend automated checks:

On both sides, simple unit tests (and contract tests for integration) should do the job; you probably won’t need a complete system for these checks.

Note: If your frontend is making decisions regarding localization, I would suggest reconsidering your architecture, because the [web is a detail](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/ministryoftesting/original/2X/4/4509316eadad77d869d4a5f8bf1b83e5f907cf87.jpeg)

---

<div class="post-metadata">

**Author:** ![debroy](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@debroy](https://club.ministryoftesting.com/u/debroy)\
**Post date:** [11 August 2020 13:58 UTC](https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836/4 "2020-08-11T13:58:51Z")

</div>

As you are clear about the target segment for your product and where all your end users are located. Then the very first step should be to prioritize testing your product on devices and OS used in those places. For instance, if a product is launched in US, then I will check my device’s compatibility on iPhones and then on a handful of Androids. Then for browsers, I will test my product on which versions are supported by the devices I prioritized before.

In this way, you can ensure that you are testing on right devices.

---

<div class="post-metadata">

**Author:** ![amillionbugs](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/amillionbugs/32/8082_2.png) [@amillionbugs](https://club.ministryoftesting.com/u/amillionbugs)\
**Post date:** [28 August 2020 10:08 UTC](https://club.ministryoftesting.com/t/advice-on-test-automation-approach/40836/5 "2020-08-28T10:08:00Z")

</div>

Hi @jay_p1

> [@jay\_p1](#):
>
> structuring the framework to run across different regions

What does this mean? Do you mean that Automated Tests need to be run locally in the countries like Italy and Portugal? As @joaofarias mentions “If your frontend is making decisions regarding localization, I would suggest reconsidering your architecture”. This will make it difficult to test and could end up making your tests brittle and flaky (eg if you used a VPN or cloud infrastructure for run tests)

You could just test by changing your IP to a different country everytime the Automated Tests are run. You can put this in setup scripts that run with your tests. I’m guessing that if it is your front-end making decisions about the location then you can probably just spoof it, by injecting headers to trigger that specific language too, using something like Cypress or Playwright. They have some great stubbing/mocking of network requests.
