Automation Testing Interview Questions

Do you have an important automation testing interview tomorrow? Are you also worried about what questions asked? Then do not fret. We have curated the top 25 frequently asked automation testing interview questions. These are quick 15 min read questions that will definitely help you and prep you to crack the interview.

Ques.1. What is automation?

Ans. Automation is a method of running repetitive tasks, with minimum or about zero human assistance. This process is adopted to reduce human efforts.

Ques.2. What is automation testing?

Ans. Automation testing is using automation tools to create and execute test cases. It helps in finding defects and test the overall working of the software. In automation testing, the test results are also generated automatically without the need for human intervention.

Ques.3. What is the need for automation testing?

Ans. Automation testing is important as-

  • It reduces human work/efforts.
  • It saves from boring and tiresome monotonous work.
  • No need to create new test cases each time software is to be tested.
  • Fewer chances of error.
  • Speeds up the process of testing.
  • Reduces the cost of testing.
  • Easier to maintain test cases of lengthy and large applications or projects.
  • When manual testing becomes impossible.

Ques.4. How to decide if automation testing is required?

Ans. The automation testing is required if-

  • For similar repetitive tasks.
  • When large data is involved.
  • Smoke and Sanity testing.
  • Regression test suite.

Ques.5. Is complete 100% automation possible?

Ans. There are cases when the webpage might have a captcha. Or, there are test cases that are run seldom so automating such cases won’t bring any advantage. Therefore, having 100% automation is not possible.

Ques.6. During what circumstances automation is not feasible?

Ans. Automation testing is not feasible-

  • During random testing.
  • When the project is small and can be handled manually.
  • When the application under test is dynamic i.e. changes frequently.

Ques.7. What are the steps involved in automation testing?

Ans. The steps involved are-

  • Selection of appropriate test tool.
  • Planning and design
  • Test execution
  • Maintenance

Ques.8. What are the pre-requisites before starting an automation project?

Ans. Some of the things to keep handy or have pre-requisite knowledge of are-

  • The Software Requirement specification document.
  • Choosing an appropriate tool for the testing phase.
  • Selection of framework(if required).
  • Deciding the type of test environment required.
  • Listing the test deliverables.
  • Preparation of a Gantt chart to keep the progress in check according to the timeline.

Ques.9. Are you aware of any common automation tools?

Ans. Yes. Some of the commonly used tools are Selenium, Jmeter, SilkTest, Load Runner, QTP, Win Runner.

Ques.10. How does one decide which automation tool is appropriate for their project?

Ans. Things to be considered to select a tool for any project are-

  • Should support the application and technology you are working on.
  • Accessibility
  • Fits the cost and budget
  • Availability of extra support like tutorials and videos.
  • Easy to use
  • Debugging facility
  • Features to test the database
  • Supports multiple frameworks

Ques.11. What is the difference between automation testing and manual testing?

Ans. In the Manual Testing, the test cases are written as well as executed by the tester itself. In Automation testing, specific automation tools are used to run the test scripts. This makes the testing process easier and faster.

Ques.12. What is a framework?

Ans. A framework is a set of rules or guidelines. These are followed to create a versatlie, robust and effective test suite (in case of automation).

Ques.13. What is the use of the framework?

Ans. Different files and tools are required during automation. A framework is a mix of practices and tools to ease automation. All of this is kept in an organized manner by the framework itself.

Ques.14. Is automation testing impossible without the framework?

Ans. We can do automation without a framework. But a good framework helps in creating a robust and standard way of writing scripts.

Ques.15. What are the different types of frameworks?

Ans. Different types of frameworks are-

  • Hybrid testing framework
  • Keyword-driven testing framework
  • Data-driven testing framework
  • Module-based testing framework
  • Library architecture testing framework

Ques.16. What is a general structure of a framework?

Ans. A framework depends from project to project. However, a general structure would include-

  1. A source folder with test scripts
  2. A library folder consisting of libraries
  3. A class folder consisting of the class name
  4. Log folder having log files
  5. A file with URL, environment, and login information

Ques. 17. What attributes declare a framework a good framework?

Ans. A good framework will be-

  1. Reusable – Methods written in a common file must be accessible to all the test scripts.
  2. Independent – This means if one test case fails it should not affect the rest of the test cases.
  3. Continuous – The test suite should be continuous or consistent.
  4. Modular – The framework should be flexible enough to adapt to changes.
  5. Reporting – This feature of the framework will mail our results and reports once the scripting is complete.

Ques. 18. Why are URLs, logins and, passwords kept in a separate file and not in the code?

Ans. These are very frequently used information. Thus if embedded in the code, we will have to keep updating them for each file they are referred to.

Ques.19. What are the reasons one will refrain from automation testing?

Ans. Some of the common disadvantages of automation testing are-

  1. Might prove expensive. The tools are sometimes quite pricey.
  2. The price of a QA professional for automation is higher than the manual one.
  3. One cannot have a real experience through it.
  4. Testing of UI or UX of the application is difficult.
  5. It is a bit longer to write all the software test scripts.
  6. Requires a team of professionally trained and skilled engineers.

Ques. 20. What are some of the advantages of automation testing?

Ans. Some of the advantages of automation testing are-

  1. Increases the scope of test coverage.
  2. The requirement of resources is far less than in manual testing.
  3. It is more reliable.
  4. Execution of test cases way faster and accurate.
  5. The team saves time for other levels in SDLC.
  6. More time to market the product.
  7. Reduction in maintenance cost.
  8. Improved product quality.

Ques.21. What will be your approach to a testing of a web application?

Ans. Whatever the application is it is important to choose the right automation tool. After this follow the following steps-

  1. UI testing of the website.
  2. The unique naming scheme for each web page.
  3. Grouping names for similar objects.
  4. Dynamic content should have an Xpath or ID.
  5. Cross-browser stability.
  6. Images should have the ALT attribute set.

Ques.22. What would be the automation strategy for agile software?

Ans. Some of the steps for effective automation will be

  1. Conduct parallel testing.
  2. Create quality test cases.
  3. Adopt DevOps integration.
  4. Choose the automation tool wisely.
  5. Cross-browser testing and cross-platform testing.
  6. Monitor the test environment regularly.

Ques.23. What will be your approach to automate a simple registration page?

Ans. To test basic functionality of a registration page-

  1. Verify the requirements i.e. username field, password field, and a register button.
  2. Verify the UI of the page.
  3. Automating test case scenarios like-
    • The fields should not be blank.
    • Login should be possible with the registered email id and password.
    • Do not accept invalid email id or passwords.
  4. Prepare data input according to the test scenarios.
  5. Run the test suite and report bugs, if any.

Ques. 24. What is a test script?

Ans. An automated test script is a short program written in any coding language to automate applications under test according to it. This program is then run. After that, the test cases are marked pass or fail accordingly.

Ques.25. What coding practices should be followed while automation?

Ans. Some of the good practices that should be followed while scripting are-

  • There should be a proper indentation.
  • At least 3 lines of comments for every 10 lines of code you write.
  • The naming convention should be uniform.
  • Maintain the test data systematically in different files.
  • Run your codes regularly.
  • The code should be robust enough to handle errors and recovery scenarios.

Conclusion

We have curated these questions independent of any specific coding language or automation tool. However, if you are to appear for an interview as an automation engineer, you should be well prepared with at least one coding language. At the same time, have hands-on experience with any automation tool. This will help you gain more brownie points. Keep learning!

These automation testing interview questions are compiled by ArtOfTesting team member – Kanika Rawat. She is a tech-enthusiast and loves coding.


Leave a Comment