Most Popular Test Automation Framework Interview Questions

Test Automation Framework Interview Questions And Answers:

In this post, we will list out the most frequently asked test automation framework interview questions and answers. You can also find Advanced Selenium Interview Questions and TestNG Interview Questions.

Here is a video tutorial:

Check the below video to watch “Test Automation Framework Interview Questions And Answers”

Please be patient. The video will load in some time.

1. What is a Framework?

framework defines a set of rules or best practices which we can follow in a systematic way to achieve the desired results.

2. Tell me some popular Test Automation Frameworks?

There are different types of test automation frameworks and the most common ones are:

  • Modular Testing Framework
  • Data Driven Testing Framework
  • Keyword Driven Testing Framework
  • Hybrid Testing Framework
  • Behavior Driven Development Framework

Detailed Post on Types of Automation Frameworks

3. Why Framework?

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.

4. Have you created any Framework?

If you are a beginner: No, I didn’t get a chance to create a framework. I have used the framework which is already available.
If you are an experienced tester: Yes, I have created a framework (Or) No, but I have involved in the creation of the framework.

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

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

6. Which Test Automation Framework you are using and why?

Some of the Test Automation Frameworks are:

  • Data Driven Testing Framework
  • Keyword Driven Testing Framework
  • Hybrid Testing Framework

7. Mention the name of the framework which ‘you are currently using’ or which ‘you have hands on experience’.

Example: 
Answers should be, Already the organization which I am working for is using that particular framework or I have an experience on that particular framework or It’s easy to handle all my scripts to execute and generate logs, screenshots and reports by using this framework.

8. Can you explain the Framework which you have used in your Selenium Project?

Check this link for detailed answer

9. Where you have applied OOPs in your Automation Framework?

Check this link for detailed answer

10. What is Automation testing? What are the advantages of 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.,

For advantages refer to question 5 of this post “Test Automation Framework Interview Questions”

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

  1. Selenium
  2. QTP(Quick Test Professional) / UFT(Unified Functional Testing)

12. Why do you prefer Selenium Automation Tool?

  1. Free and open source
  2. Have large user base and helping communities
  3. Cross-browser compatibility
  4. Platform compatibility
  5. Multiple programming languages support

13. 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 and sanity test cases

14. What type of test cases you won’t pick up to automate?

Before picking up the test cases to automate, I do check whether the application is stable or not. So based on this, I don’t pickup test cases when the AUT changes frequently and the test cases which I run rarely and run only one time. When I do usability and exploratory testing.

15. How many test cases you have automated per day?

It depends on Test case scenario complexity and length. I did automate 2-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.

16. How you build Object Repository in your project? 

In QTP, there is an Object Repository concept. When a user records a test, the objects and its properties are captured by default in an Object Repository. QTP uses this Object Repository to play back the scripts. Coming to Selenium, there is no default Object Repository concept. It doesn’t mean that there is no Object Repository in Selenium. Even though there is no default one still we could create our own. 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 (i.e., properties file). But 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.

If you have any other questions related to Test Automation Framework Interview Questions, please post it in the comments box below and we will include those in this post.

Here I have hand-picked few posts which will help you to learn more interview related stuff:

If you have any more question, feel free to ask via comments. If you find this post useful, do share it with your friends on Social Networking.

Test Automation Framework Interview Questions

Rajkumar SM is a founder of SoftwareTestingMaterial. He is a certified Software Test Engineer by profession and blogger & youtuber by choice. He has an extensive experience in the field of Software Testing. He writes here about Software Testing which includes both Manual and Automation Testing. He loves to be with his wife and cute little kid 'Freedom'.

45 thoughts on “Most Popular Test Automation Framework Interview Questions”

  1. hello rajkumar
    some times interviewer ask if you involved to devlope framework,
    Q:what is your role on that framework what you did?

    • Hi Ali, It depends on your years of experience. If you attend interviews as a fresher or 1 year exp in automation, just tell that I have involved in writing test scripts using the existing framework. If you are attending as an experienced automation tester, tell that you have involved in creating or modifying framework (if you really could face the upcoming questions related to automation).
      Check this post which guides you on how to handle answering about test automation framework in an interview.
      How to explain Test Automation Framework in the Interview
      Check this post it deals with test automation interview questions.
      Test Automation Interview Questions
      If you have any other queries, pls let me know.

  2. Hello Rajkumar,

    what should be the proper naming convention to be followed for packages, classes and variables with respect to real time project?

    • Hi Ramya, It varies from company to company. Example, if we are working for google.com then we name the package as com.google.tests. Something like this. There is no specific rule to name it.

      • naming convention is in camel case it should be good. for example (loginPage consider this name as any of the following packages, classes or variables )

  3. Some times interviewer ask for define the structure of the framework that you used so plz defines this question clearly what exactly we give answer for this.

    Should we write the structure in eclipse or some other answer?

    • Hi Neeraj, explain all the components of your framework as I mentioned in this post. Explain how your scripts run in real time. Right from triggering the scripts till reports generation.

  4. Where do u store your framework?

    • Hi Avinash, check this post for the answer..

  5. HI Rajkumar,
    What design pattern should be adopted to create Browser Instance in order to run Tests In Parallel using TestNG ?

    srinivas

    • Hi Srinivas, You could go with Page Object Model. Set parallel=”tests” in your testng.xml.

  6. Hello Sir,

    I want to an expert in selenium testing. Could you give some important tips to learn selenium very perfectly

    • Hi Shalini, are you a fresher or working as a manual tester? Are you learning selenium now?

  7. I want to an expert in selenium testing. Could you give some important tips to learn selenium very perfectly, I am currently working on Manual testing.

  8. What if HR asks what did you develop in framework development ?

    • If you created the complete framework then you could say that I have prepared the complete framework. Else you could say that you have prepared some custom functions related to the project.

  9. Do you have any video from scratch for simple data driven framework as per your video – https://www.youtube.com/watch?v=sPqf4ujbc0g ?

    Eg: Login to a page and enroll.
    1) First time its successful enrollment and in second time with same information, it wont be successful.
    Or Login to page with valid input and invalid input.

    • Hi, we will do it and upload ASAP.

  10. how i will explain if someone ask explain your project architecture?

  11. Can you please post few best automation coding standards done in your project

    • Sure we will try to do

  12. Hi
    Could u expain the differnece between implicit wait and explicit wait.In which condn which one is use.

    • Hi Sandeep, refer this
      If you still have queries, pls let me know.

      • Hi Rajkumar,
        Thnks, but i am confused when i have to use imlicit wait or when explicit.wait any specific condn .I know both wait for certain amount of time before throws a no such element exception error.Please reply

        • Keep implicit wait at starting and explicit wait on a specific condition. You could create explicit wait as a function and call whenever you want that explicit wait.

          Example:

          public static void waitUntilElementVisible(WebElement element) {
          WebDriverWait wait = new WebDriverWait(driver, 50);
          wait.until(ExpectedConditions.visibilityOf(element));
          }

      • if we have 10 staments in our class

        driver.finelements(By.xpath(“”)).sendkeys(“”);

        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

        driver.finelements(By.xpath(“”)).click();

        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS)

        ….
        we need to write driver.manage().timeouts().implicitlyWait(TimeOut, TimeUnit.SECONDS);
        after each statements ya define only its once.and will work after each command??

        • Hi Sandeep, I think mentioning implicit waits just once will work fine.

          • Yes Pia Nelson.

  13. i want answer of define the structure of framework ?

    • check this link

  14. Great effort! Very useful article. Thanks!

    • Thanks Abitha.

  15. Hi Raj,
    Sometimes interviewer ask…..suppose u have 200 test case and u have less time…..so how u execute that test cases…..do u add any component or any code in ur framework for this?
    plz tell me about that…..

    • Hi Rahul, we could execute the test cases in parallel. Check this link.

  16. Hi Raj,

    This is really great effort in helpin out people like us for fetching a job. Thank you ! By the way could you please list out the questions for Core Java interview questions for QA testers. This would be helpful for all of us.

    • Hi Jason,
      Thanks for your kind words. I am working on that. I will publish both Java Tutorial and Java Interview Questions for (Selenium) Software Testers.

  17. Hi Rajkumar,

    This is really great effort in helping out people like us for fetching a job. Thank you ! By the way could you please provide the BDD framework (Cucumber) interview questions and Complete framework structure. This would be helpful for all of us.

    • Thanks Muniraja. Will try to post ASAP.

  18. hai sir
    what are the activities that performed by automation tester with gihub and jenkinks who is having 2
    years experience

  19. Hi,

    Can you please provide answer to below interview question.

    Can you give me an example of best bug that you have found in Banking project?
    Also can you let me know what are the major challenges that you have faces during your testing project?

    Thanks

    • It depends on your experience. It varies from person to person.
      1. You can say anything like the first bug which you found in your first job is your favorite bug or you can say that I found a critical bug related to money transaction in an application which was already tested by other team members and said there are no bugs in the application… anything depends on your experience.
      2. You have to say the difficult situation you had faced and how you overcome that… say something like there is no proper documentation and team members used to do Adhoc way of testing… I raised this issue in team meetings and did set up a process to create and follow test artifacts…

  20. Hello,
    Can you tell us what are the total activities that performed by automation tester with gihub and jenkinks who is having 2
    years experience

    • Hi Vicky,
      It varies from team to team..Usually, on Github, we do create repositories, commit the code, push/pull the code..
      Jenkins part will be taken care by devs.. they keep your git repo path in the post build actions..

  21. Hi Rajkumar,

    I went through selenium course but I don’t have knowledge on TestNG, Maven and Jenkins since all these topics were missing on my course. I would like to learn these things from you. Do you provide online training? Please let me know. I am trying to change my domain to Automation Testing ASAP. Please help me.

Leave a Comment

Share via
Copy link
Powered by Social Snap