Frequently asked Automation Testing interview questions and answers for freshers and 1-5 year experienced testers on prerequisites and procedure followed in Automation Testing, Advantages, Disadvantages, test cases, tools used, automation Framework etc.
- Tests conducted by testers manually is called Manual Testing, wherein they compare the expected and actual functionality are in accordance with the test cases.
- Tests conducted by using software tool is called Automation Testing, wherein the expected results are fed into the tool to be compared with the actual output of software being tested.
- Stable build
- List of repeated functionality
- List of Test Data
- iAutomation Framework
3. Explain the procedure followed in Automation Testing?
- Tool Selection – List down the automation tools compatible, depending on whether the application is Desktop / Web based, language used for software development etc
- Scope of Automation – List down the scenarios and functionality which are repetitive and automatable
- Planning – Design a framework, Schedule the scripting and execution of the same
- iDevelopment – Scripting the scenarios to be tested with inputs(Test Data) and expected output
- Execution – Running/Executing the scripts and reporting the results
- vMaintenance – Update the scripts in accordance to the latest changes with the software under test
4. What are the different types of Automation Testing?
- Unit tests, GUI tests and Functional tests
- Unit tests – Done at development phase which helps reduce the bugs
- GUI tests – Done at testing level, which focuses its scripts to test user interface of application under test
- Functional tests – Done at testing level, which simulates the functional scenarios to test the application with provided input and expected results
NOTE : Other automation test include Webservice testing
5. What are the Advantages of Automation Testing
- Reduced test execution time
- Can be executed in cross platforms test cases (different OS, browsers, environment, etc)
- Simplifies complex functional tests
- Automating repetitive tasks
6. What are the Disadvantages of Automation Testing
- Continuous script maintenance/updation is necessary
- Basic programming knowledge is a must for better automation test
- Skilled resources required for scripting
7. Why use a particular tool for automation testing ?
Tool selection should be done considering -
- Platform to be tested - like supported OS, scripting languages supported by tool and testing
- Debugging facility
- Support for object identification
- Frameworks supported
8. What are the aspects considered while shortlisting test cases for Automation?
Following cases should be automated :
- GUI cases
- Regression cases
- Most repeated scenarios
- Tests with multiple data sets
9. What are the factors to prove the maximum usage of automation testing?
Following are the criteria considered to prove maximum usage of automation testing :
- Number of test cases to defect detected ratio
- Execution time and time required to release the product
- Reduction in manual interference
- Complexity of Maintenance
- Test coverage
10. What are the Popular tools used for automation testing?
- HP UFT(Formerly QTP)
- Rational Robot
- IBM Rational Functional Tester
- Ever changing requirements
- Documentation required is exhaustive
- Only suitable for continuous integration
- One time test cases
- Adhoc : Random testing
12. What is Automation Framework?
It is a set of standard rules followed by a company to structure the test automation of an application. Wherein the supporting scripts, data sheets and reports are organized and put together for easier access and maintenance.
13. What are the different types of Automation Frameworks?
Most popular and used Automation frameworks are :
- Data Driven Testing Testing Framework
- Keyword Driven Testing Framework
- Hybrid Driven Testing Framework
- Behavior Driven Development Framework
14. What are the Advantages of Automation Framework?
- Ease of maintenance
- Simplifying the process followed
- Adherence to standard
- Complete coverage
- vEasier future enhancements
15. What is Data Driven Testing Framework?
Major usage of automation testing is to simplify the testing process involving complex and huge data sets by documenting the same, which will be used as input to testing tools.
In Data Driven Testing Framework, the test data which includes input, expected output and a result field are listed in files like CSV files, excel files, text files, XML files etc. These files are fed to automation tool for execution, which in turn compares the expected and actual data. Logs the result of each test data into result field. For Example :
|Sl. No.||Input Data||Expected Data||Result|
16. What is Keyword Driven Testing Framework?
The keywords and locators required to locate an element by automation tool are listed in files like CSV files, excel files, text files, XML files etc. These files act as input to automation tool for element detection. Keywords and locators are updated regularly to keep up with application changes, hence the maintenance becomes difficult with unstable applications.
17. What is Hybrid Driven Testing?
Hybrid Driven is combination of both Data Driven and Keyword Driven Testing Framework, most of the company adopt Hybrid Driven Testing Framework for better utilization automation tool. Related data sets and element keywords are documented and fed as input to automation tool.
18. What are the Standards followed for scripting?
Following are the standards considered while scripting,
- Uniformity in naming convention.
- Commenting the functionality whenever and wherever necessary
- Adequate indentation.
- Robust error handling and ability to recovery
- Use of Frameworks
19. Have you used any customized automation testing tool?
There are many companies which develop in-house testing tools for in-depth testing of applications, list out some if your company uses any. An example of same is customized Selenium for load testing. It should be able to explain basic flow or framework used to implement the customized tool effectively.
20. Is documentation required in Test Automation?
Documentation plays a critical role in Test Automation. Practices should be documented, so that they are repeatable. Specifications, designs, configurations, code changes, automation plan, test cases listed for automation, bug reports, user manuals should all be documented.