Automation Testing Interview Questions and Answers: Frameworks and Tools

Introduction to automation testing framework

  1. What is a framework?
    A framework defines a set of rules or best practices which can be followed in a systematic way to achieve the desired results.
  2. What are the advantages of using automation testing framework?
    • It saves time and money
    • Reusability of code
    • Easy reporting
    • Easy for compatibility testing
    • Low-cost maintenance
    • Automated testing is more reliable
    • Automated testing is more powerful and versatile
    • It is mostly used for regression testing
    • Minimal manual intervention
    • Maximum coverage
  3. How to create any framework?
    Beginner:
    No, I didn’t get any chance to create a framework. I have used the framework which is already using the project.
    Experienced:
    Yes, I have created a framework.
    (or)
    No, but I have involved in the creation of a framework.
  4. Some popular Test Automation Frameworks?
    In a test automation project, we do perform different tasks by using different types of files. To organize and manage all the files and to finish all the tasks in a systematic approach we use a framework.
  5. Mention the name of the framework which you are currently using or which you have hands-on experience?
    Already the organization which I am working for is using a hybrid framework.
    (or)
    I have an experience on hybrid framework and we are using that.
    (or)
    It’s easy to handle all my scripts to execute and generate logs and reports and also to capture screenshots by using the hybrid framework. So I have selected the hybrid framework and using it in my project.
  6. Can you explain the framework which you used in your project?
    Please check the link: How To Explain Selenium Test Automation Framework In The Interview

The uses of automation testing tools

  1. What is Automation Testing?
    Automation testing is the process of testing the software using an automation tool to find the defects.
    In the 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
    – Selenium Webdriver
  2. What are the most popular testing tools for functional testing?
    – Selenium
    – HP QTP/UFT
  3. Why do you prefer Selenium Automation Tool?
    • It is a free and open-source tool
    • It has a large user base and helping communities
    • It supports cross-browser compatibility
    • It supports platform compatibility
    • It supports multiple programming languages

Handling automation test cases

  1. What type of test cases do you pick up to automate?
    I focus on the test cases which should be executed in a repetitive manner such as regression test cases, smoke test cases, and sanity test cases
    Read more: Do We Really Write Test Cases For All Testing Types
  2. What type of test cases you won’t pick up to automate?
    Before picking up the test case to automate, I do check whether the application is stable or not. So based on this,
    – I don’t pick up test cases when the AUT changes frequently.
    – I don’t pick up the test cases which I run rarely.
    – I don’t pick up the test cases which I run only one time.
    – I don’t automate when I do usability and exploratory testing.
  3. How many test cases you have automated per day?
    It depends on test case scenario complexity and length. I did automate 2 to 5 test scenarios per day when the complexity is limited. Sometimes just 1 or fewer test scenarios in a day when the complexity is high
  4. How you build Object Repository in your project?
    There is no default Object Repository concept in Selenium.
    In Selenium, we call objects as locators such as ID, Name, Class Name. Tag Name, Link Text, Partial Link Text, XPath, and CSS.
    Object Repository is a collection of objects. One of the ways to create Object Repository is to place all the locators in a separate file that is a properties file.
    The best way is to use Page Object Model. In the Page Object Model Design Pattern, each web page is represented as a class. All the objects related to a particular page of a web application are stored in a class.

Note: This video is contributed by Software Testing Materials

Leave a Reply