Testing Frameworks

Testing frameworks are an essential part of any successful automated testing process. They can reduce maintenance costs and testing efforts and will provide a higher return on investment (ROI) for QA teams looking to optimize their agile processes. A testing framework is a set of guidelines or rules used for creating and designing test cases. A framework is comprised of a combination of practices and tools that are designed to help QA professionals test more efficiently.These guidelines could include coding standards, test-data handling methods, object repositories, processes for storing test results, or information on how to access external resources.

Top Testing Frameworks

1. Linear Automation Framework :With a linear test automation framework, also referred to as a record-and-playback framework, testers don’t need to write code to create functions and the steps are written in a sequential order. In this process, the tester records each step such as navigation, user input, or checkpoints, and then plays the script back automatically to conduct the test.
2. Modular Based Testing Framework :Implementing a modular framework will require testers to divide the application under test into separate units, functions, or sections, each of which will be tested in isolation. After breaking down the application into individual modules, a test script is created for each part and then combined to build larger tests in a hierarchical fashion. These larger sets of tests will begin to represent various test cases. A key strategy in using the modular framework is to build an abstraction layer, so that any changes made in individual sections won’t affect the overarching module.
3.Library Architecture Testing Framework : The library architecture framework for automated testing is based on the modular framework, but has some additional benefits. Instead of dividing the application under test into the various scripts that need to be run, similar tasks within the scripts are identified and later grouped by function, so the application is ultimately broken down by common objectives. These functions are kept in a library which can be called upon by the test scripts whenever needed.
4. Data-Driven Framework : Using a data-driven framework separates the test data from script logic, meaning testers can store data externally. Very frequently, testers find themselves in a situation where they need to test the same feature or function of an application multiple times with different sets of data. In these instances, it’s critical that the test data not be hard-coded in the script itself, which is what happens with a Linear or Modular-based testing framework. Setting up a data-driven test framework will allow the tester to store and pass the input/ output parameters to test scripts from an external data source, such as Excel Spreadsheets, Text Files, CSV files, SQL Tables, or ODBC repositories.
5. Keyword-Driven Framework :In a keyword-driven framework, each function of the application under test is laid out in a table with a series of instructions in consecutive order for each test that needs to be run. In a similar fashion to the data-driven framework, the test data and script logic are separated in a keyword-driven framework, but this approach takes it a step further.
6. Hybrid Testing Framework :As with most testing processes today, automated testing frameworks have started to become integrated and overlap with one another. As the name suggests, a hybrid framework is a combination of any of the previously mentioned testing frameworks set up to leverage the advantages of some and mitigate the weaknesses of others.

1. What is Automation testing?

Automation testing is the process of testing the software using an automation tool to find the defects. In this process, executing the test scripts and generating the results are performed automatically by automation tools. Some most popular tools to do automation testing are HP QTP/UFT, Selenium WebDriver, etc.,

2. Popular Test Automation Frameworks?

· Modular Testing Frameworks · ​​Data Driven Testing Frameworks · Keyword Driven Testing Frameworks · Hybrid Testing Frameworks · Behavior Driven Development Frameworks

3. What are the advantages of using Test Automation Framework?

· Saves time and money. Automation testing is faster in execution · Reusability of code. Create one time and execute multiple times with less or no maintenance · Easy reporting. It generates automatic reports after test execution · Easy for compatibility testing. It enables parallel execution in combination of different OS and browser environments · Low cost maintenance. It is cheaper compared to manual testing in a long run · Automated testing is more reliable · Automated testing is more powerful and versatile · It is mostly used for regression testing. Supports execution of repeated test cases · Minimal manual intervention. Test scripts can be run unattended · Maximum coverage. It helps to increase the test coverage​  

4. What are the most popular testing tools for functional testing?

· Selenium · QTP(Quick Test Professional) / UFT(Unified Functional Testing)

5. Why do you prefer Selenium Automation Tool?

· Free and open source · Have large user base and helping communities · Cross browser compatibility · Platform compatibility · Multiple programming languages support

6. Any kind of test which you thing should not be automated?

· Test which are seldom executed · Exploratory testing · Usability testing · Test which are executed fairly quickly when done manually

7. How do you select which automation tool is best suited for you?

Selecting the automation tool depends upon various factors like: · Scope of the application which we want to automate · Management overhead like cost and budget · Time to learn and implement the tool · Type of support available for the tool. · Limitation of the tool    
testing frameworks

For thousands of similar Testing Frameworks Questions, download EduThrill…

Experience the thrill of challenging people around the world on Testing Frameworks Questions!

App Store Google Play