Blog

Test automation framework: why you should have one

In software development it’s hard to find anyone who considers software architecture useless, the same applies to automated tests. By test architecture I mean all code that will support and facilitate test cases development and execution (e.g. test framework), the project structure and any management that will take place (e.g. test data management and documentation).
27 February 2014
Test automation
The article by a1qa
a1qa

In software development it’s hard to find anyone who considers software architecture useless, the same applies to automation testing. By test architecture I mean all code that will support and facilitate test cases development and execution (e.g. test framework), the project structure and any management that will take place (e.g. test data management and documentation).

First of all there are 3 key points that reveal test automation framework uses:

  • Code support
  • Test support
  • Analysis

Analysis plays an important role for code support as well as test support – it is the most customer-oriented part, tightly connected with framework. Now let’s take a look at automation project architecture where test framework takes place.

  • System under test is processed with test tools through application interfaces (GUI/API)
  • Test tools actions and test libraries methods are invoked through its API by test framework.
  • Test framework uses test data, usually specially formatted for it.

This is the most common architecture. But is test framework really helpful?
First of all – forget about linear tests. Implementing test libraries makes your code reusable. Why doing same things over and over again when you can simply implement it once and use several times?

Main idea of test framework: a little bit more efforts once – much less efforts each time later. A common solution for this is design patterns. With design patterns we can improve some tests capabilities.

For example Page Object pattern reduces the maintenance impact, helps to implement similar tests much easier. In web testing Singleton can be used to provide a driver instance to tests instead of inheritance. If you need to verify a database, the Entity can be used to reduce the quantity of database connections.

However using design patterns along with test framework is recommended, but not obligatory.

When you need to decide what architecture to choose and answer the question “Should we have test automation framework?” try first to answer on this questions:

  • Who will develop the tests and analyze results?
  • Does this person have the right technical skills and domain knowledge?
  • Do you need to separate test description and/or data from low-level code?
  • How many third-party tools you use to access SUT?
  • Do you have time and budget to implement it internally or it would be better to get a professional help?

The article is prepared by Yan Gabis

More Posts

ai-ml-test-automation-mini
29 October 2021,
by a1qa
4 min read
4 key QA activities to solve test automation challenges via AI and ML
How to address the difficulties caused by implementing test automation? Learn how to do it via applying AI and ML.
Test automation
13 May 2021,
by a1qa
4 min read
How to attain in-sprint test automation to reinforce development processes
Learn how in-sprint test automation improves business workflows. Consider the top 5 essential steps to introduce it smoothly.
Test automation
12 April 2021,
by a1qa
5 min read
Watch out for 6 telecom trends and QA tips to implement them
In our article, we unleash the upcoming telecom trends and reveal how to be certain in introducing them correctly by applying QA practices.
Agile
Test automation
31 March 2021,
by a1qa
4 min read
QA scenario to introduce 6 eCommerce trends in 2021
Discover what trends will rule the eCommerce industry in 2021 and how QA can help implement them with confidence and ease.
Cybersecurity testing
Test automation
25 February 2021,
by a1qa
4 min read
9 QA points for delivering high-quality SaaS-based solutions
In the article, we’ve gathered 9 QA factors relying on the SaaS specifics that may help to perform SaaS testing with ease.
Cloud-based testing
Cybersecurity testing
Functional testing
Performance testing
Test automation
29 January 2021,
by a1qa
4 min read
3 do’s and 3 don’ts in BFSI software testing
Considering BFSI to be a fast-paced industry, how to keep up with such velocity? We’ve prepared 3 do’s and 3 don’ts that help sustain the rush and high software quality.
Functional testing
Mobile app testing
Test automation
18 December 2020,
by a1qa
4 min read
Top 5 QA and software testing trends in 2021: responding to a global situation with ease
Rapidly approaching 2021, a1qa proposes to have a closer look at the most influential trends empowering QA teams to perform even more effectively.
Agile
QA trends
Test automation
30 November 2020,
by a1qa
5 min read
Acumatica: ensuring sound business operations with well-tested ERP system
Internal business activities are advancing, while ERP systems’ usage is growing rapidly. Explore how to ascertain their accurate work through timely applying QA.
Big data testing
Cybersecurity testing
ERP testing
Functional testing
Performance testing
Test automation
13 November 2020,
by a1qa
5 min read
QA for media and entertainment
Read the article to explore why QA is a must for the media and entertainment sector and how to perform software testing effectively.
Functional testing
Mobile app testing
Performance testing
Test automation
Usability testing

Get in touch

Please fill in the required field.
Email address seems invalid.
Please fill in the required field.
We use cookies on our website to improve its functionality and to enhance your user experience. We also use cookies for analytics. If you continue to browse this website, we will assume you agree that we can place cookies on your device. For more details, please read our Privacy and Cookies Policy.