Test Automation Frameworks- Then & Now!

Test Automation Frameworks- Then & Now!

Implementing automated tests is something that everybody wants to do. If you ask any tester – they aim to be an automation tester. Implemented well, automated testing not only complements agile development processes, it reduces cost of test execution, enables developers to focus on core operations by automating repetitive tasks, and eventually it increases testing accuracy as well as helps to deliver a better solution faster. It is the golden target that every tester aims for, but only a few of them take pains to assess the required knowledge. Over the years, test automation tools and processes have matured to simplify the process of developing test automation and creating reliable test scripts.

This blog will give you an insight on test automation frameworks and revisit why they faded into oblivion.

Record and Playback

Even though this involves either no or minimal code writing, manageability of automation code makes Record/Playback only viable on small scale. The fundamental problem of this approach is literally the problem of scale. If we want another automated test, we’ll record another script which eventually results in two scripts to be maintained as the AUT’s interface has changed with time. The more tests we record, the more automation code needs to be maintained – which will become too much of a burden on testing budget. In record and playback each automated test case is a sequence of actions with test data hard coded in to it. This, firstly is not a good approach as per the software engineering principles. Secondly, payback in automation starts when we playback the same automation to test the subsequent versions of the application. But, in this approach each test is run once per release and is not used repeatedly to increase the test coverage. Therefore, to manage such automation code makes this approach impractical for large scale automation. Therefore, it is only due to the cost of maintenance, test automation has moved past Record and Playback.

Data-Driven tests

Data-driven tests focus on data and inputs/outputs. Usually, there is a test case defined and set of test data that will be passed into it as arguments. This way we can execute one scenario with different inputs or outputs for example when testing some sort of calculations or algorithms. Test data can be defined in external file – in this way we separate test data from test code. But this is not necessary. The TestNG framework, allowing implementation of unit tests  (and not only) for Java applications, comes with the Data Provider feature letting us to create data sets that can be used and shared among the test method. Using this framework let us remove redundancy from tests when we have many similar tests differing with data only. Moving the data to external source facilitates users, customer, business to create tests and a better collaboration.

Keyword Driven

This takes test automation to the next level. It is not the script now that directs testing but it is the test data itself. The test data with use of keywords sequences out the actions to be followed. When the automated test case runs, it will read through the test data and call for the relevant script specified by the keyword, passing AUT the data for that line. Hence, keywords are scripts written by test specialists to perform all necessary actions to test the business/functional task for which this script was written. With this approach, the testers have the full control over what to do and in which order. But, development of automation code is still AUT specific. The rate and the amount at which the UI of AUT undergoes change so will the maintenance of the scripts. Therefore, for large scale test automation, we still need to find ways to decrease the need to regularly maintain scripts.

The concept of the keyword-driven framework may seem to be complicated especially to implement. Fortunately there are tools/frameworks already implemented that can be integrated with yours. For example Google’s Robot Framework can be easily integrated with Selenium/Webdriver. Also commercial tools have such capabilities. If not, they provide sets of helper objects that can facilitate this task. But still the tester needs to demonstrate development skills in order to get all of these working.

UI Object Map Based

In pursuit to make test automation better, UI Object Map framework solves all the three challenges of test automation. It resolves the maintainability, reliability, and the ease of development of test scripts. This framework takes instruction from test data, recognizes the class of object to be acted upon, and then performs the specified action on that object by calling a script for that particular object class, passing actions and data to it. This means the scripts are no more AUT specific but are UI object class specific. No script for specific instance of an object but for class of the object. Once the script for a class of UI object is written, it can be reused in any automation project where this class of UI object is being used. Through this framework scripts automate the class of UI object. And whenever the AUT undergoes change, you need to only change object map and the data, not the scripts for the UI object class. The only time this needs to be changed is when new UI objects are introduced or when the behavior of existing UI-object-class changes. A UI Object Map lists the objects in each window/page. Each UI object is given a logical name and also contains the information that the test tool needs to identify that object uniquely. The test tool script uses the logical name in scripts when performing actions on UI Objects.


Get A Free Quote

2 thoughts on “Test Automation Frameworks- Then & Now!

  1. Opponents argue that smoking bans cause job losses in restaurants and bars. As a compromise, some bans exclude these establishments. But new research rejects this argument. nike free runs Near the historic Old Church Tower is a statue of the Indian woman, Pocahontas. She was the daughter of Chief Powhatan. She married English colonist John Rolfe in sixteen fourteen. This marriage began an eight-year period of peace between the settlers and the Powhatan Indians. cheap nba jerseys tiffany singer The missions begin with San Diego de Alcala in the south. They end with San Francisco Solano about one thousand fifty kilometers to the north. In time, the road from mission San Diego de Alcala to mission San Francisco Solano was given a name. To prevent trouble, the British sent thousands of soldiers to Boston, the largest city in Massachusetts.
    The real addiction may be emotional. Many people claim they cannot start their day unless they get their “fix,” which is, in many cases, a cup or two of coffee. Some people drink coffee throughout the day. Even young people who may not touch tea or coffee are still putting caffeine into their bodies when they have energy drinks, which have high amounts of caffeine. uggs on sale We see Jennie in the bedroom awaiting the birth of her third child. We also see the clothing shop as it looked after the workers had gone home at the end of the day. We hear stories about the many immigrants who have worked in the clothing industry in New York City. tiffany lamps custom baseball jerseys Mister Lowell published his first book about Mars in eighteen ninety-five. In it, he developed a theory that intelligent life had created waterways all over the surface of Mars. His theory was that Martians were trying to bring water to the warm areas near the equator of the planet. air jordan Voyager’s long wings moved up and down as the winds changed. It seemed to sail on waves of air, just like a sailboat on ocean waves. This motion meant the flight was extremely rough.
    Another rule helped the delegates speak freely. They used a method of debate known as the committee of the whole. It was useful then and it is still used today in legislatures. Votes taken in the committee are not recorded as final votes. The committee of the whole provides a way for people to discuss ideas and vote, but also to change their minds. uggs boots Mercedes Pascual is a scientist at the University of Michigan. She and her team studied areas in northern India where irrigation systems were built over a number of years. They compared how malaria progressed with the spread of irrigation. tiffany jewelry But publishing companies did not want to publish her book. Their agents felt it was too sad. They said people would not buy it. jordans for sale Some activists in Kenya fear a nuclear plant could increase the possibility of a Fukushima-like disaster. And they are worried that it could become a target for terrorists.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.