Test Automation Framework Interview Questions & Answers

  1. Question 1. What Is Automation Framework?

    Answer :

    A set of guidelines, assumptions and process developed by experts in order to perform a task(s) in an effective, efficient and optimized way.

  2. Question 2. Why Automation Framework?

    Answer :

    In one project test automation we create and use different types of files and we perform different types of tasks, in order to organize and manage them all, a systematic approach (Automation Framework) is required.

  3. QTP Interview Questions

  4. Question 3. What Are The Different Types Of Files To Be Created And Executed During Test Automation Using Qtp Tool?

    Answer :

    Files to be used:

    • Flat files (.txt),
    • Excel files (.xls)
    • Object repository files (.tsr)
    • XML files (.xml)
    • Library files (.vbs/.qfl)
    • Test Scripts (.mts)
    • Test Batch Files (.mtb) 
    • Recovery scenario files (.qrs)
    • Test Result file (.XML)   Etc…
  5. Question 4. What Are The Different Types Of Automation Frameworks Available In The Industry?

    Answer :

    Automation Framework is not a QTP Tool feature, it’s a 3rd party concept. And this is purely local concept.(framework may vary from one company to another and One project to another)

    • Record/Playback or Linear Framework (1st generation framework).
    • Modular Framework.
    • Data Driven Framework
    • Keyword Driven framework
    • Hybrid Framework Etc..
  6. QTP Tutorial

  7. Question 5. What Is Record/playback Or Linear Framework?

    Answer :


    In this approach tests can be created and executed using recording feature.


    • Easy to create and takes less time
    • Scripting knowledge is optional
    • Recommended for small scale projects 
    • Recommended for dynamically changing requirements   


    • No centralized maintenance of test objects
    • Low in performance due to duplicate objects
    • Less or no concentration on complex functionality testing
    • Less or no concentration on data driven testing
    • No centralized maintenance of resources
  8. Selenium Interview Questions

  9. Question 6. What Is Modular Framework?

    Answer :


    In this approach tests can be created and executed using reusable components.


    • Centralized maintenance of resources 
    • High in performance
    • Modifications are easy
    • Concentration on complex functionality testing


    • Scripting knowledge is mandatory
    • Less or no concentration on data driven testing
    • Takes more time to create
  10. Question 7. What Is Data Driven Framework?

    Answer :


    In this approach tests can be executed using multiple sets of test data


    • Positive and negative testing can be performed
    • Checking the reliability of system (AUT)


    • Maintaining resources is difficult
    • Less or no concentration on complex functionality testing
  11. Selenium Tutorial
    Microsoft Entity Framework Interview Questions

  12. Question 8. What Is Keyword Driven Framework?

    Answer :

    In this approach tests can be created and executed using keywords

  13. Question 9. What Is Hybrid Framework?

    Answer :

    It is a combination of 2 or more approaches


    Modular framework and Data driven framework                  


    • Scope is very high as we mix different approaches.
    • Flexible for performing all types of tasks.


    • Organizing and managing resources are difficult
    • Complex architecture.
    • Low in performance.
  14. Framework7 Interview Questions

  15. Question 10. What Are The Different Types Of Tasks To Be Performed During Test Automation?

    Answer :

    Tasks to be performed:

    a) Analyzing the application in terms of Object Identification:

    we have to analyze the AUT in terms of Object Identification.

    Basically, QTP is an Object based test tool, here first we have to confirm 

    if the QTP is recognizing all the objects in our application or not.

    To do this, we can follow one or more below given methods…

    • Record and playback some End to End Scenarios.
    • Using Object Spy
    • Using Object Repository Manager

     We can segregate Software Objects in 3 categories…

    • Static Objects(Properties information is constant)
    • Dynamic Objects(Properties info changes dynamically)
    • Duplicate Objects(Having Similar property info.)

    Note: We can handle dynamic Objects using Regular expressions and handle duplicate

    Objects using “Index” property. 

    b) Selecting Areas/Test Cases for Automation 


    100% test automation is not possible, we can go for maximum automation.

    Generally we select below type of Tests for Automation:

    • Tests that we have to execute on every build (Ex: Sanity Tests)
    • Tests that we have to execute on every modified build (Ex: Regression Tests)
    • Tests that we have to execute with multiple sets of test data.(Ex: Data Driven Tests) 
    • Tests having complex functionality 

    c) Planning (Effort estimation, Schedule, Work allocation and Automation Framework implementation)


    After selecting some areas for Automation, we have to estimate the efforts     

    in terms of Scope of the Project, time and resources(Environmental and Human)

    To estimate efforts, we can follow an one of the below given methods:

    • Using Expert based techniques.
    • Experienced based techniques.
    • Function point analysis.
    1. Identifying End to End Scenarios.
    2. Identifying verification points.
    3. Identifying General and Alternate Flows.
    4. Identifying the modularity.
    5. Identifying the complex functionality. 

    d) Creating Generic and project specific functions.

    e) Creating required Automation resources(Functions, Object repository Files, Environment variable files—etc)

    f) Creating Tests(Using Object Repository or     Descriptive Programming)

    g) Enhancing Tests(Inserting Checkpoints, Output Values, Transaction points, Flow Control Statements, Synchronization, Parametrization—etc )

    h) Debugging and running tests(Individual test execution, Test Batch execution –etc)

    i) Defining and exporting test results

    j) Analyzing results

    k) Defect Reporting using Our Company defect   management system.

    l) Modifying resources and tests (if required)

    m) Performing Re and regression testing 

    n) Maintaining Automation Resources 

  16. Microsoft Entity Framework Tutorial

  17. Question 11. What Is Keyword Driven Approach?

    Answer :

    In this approach keywords can be used for creating and executing tests.

  18. Automation Testing Interview Questions

  19. Question 12. What Is Keyword?

    Answer :

    Any word used as the key to a code A reserved word used to identify a specific command or function or method or statement or operator or object etc.

  20. QTP Interview Questions

  21. Question 13. What Are The Important Keywords That We Use In Qtp?

    Answer :

    • Test Objects (EX: Browser, page, webEdit, WinButton—etc)
    • Functions (Built-In and User defined)
    • Methods (Ex: Set, Select, Activate, Navigate—etc)
    • Statements (EX:Dim ,If, For, Exit, wait, option explicit —etc)
    • Operators (EX: +,/,*,and, or, not—etc
  22. Framework7 Tutorial

  23. Question 14. What Are The Key Elements Of Automation Framework?

    Answer :

    • Well defined folder structure
    • Initialization script
    • Driver script
    • Organizer spreadsheet
    • Process guidelines document
  24. Question 15. What Is Folder Structure?

    Answer :

    In order to create, store, organize and manage files, a well defined folder structure is required. Folder structure is a mandatory element of any framework, but folder names may vary from one framework to another and company to another.

  25. Jenkins Interview Questions

  26. Question 16. Give An Example For Folder Structure?

    Answer :

    Folder Structure:

    1. ObjectRepository
    2. Environment
    3. FunctionLibrary

    • Company
    • ProjectSpecific

    4. TestData
    5. TestResult
    6. RecoveryScenarios
    7. Organizer
    8. Drivers
    9. Miscellaneous

  27. Jenkins Tutorial

  28. Question 17. What Is A Keyword ?

    Answer :

    Keyword is an Action that can be performed on a GUI Component. Ex . For GUI Component Textbox some Keywords ( Action) would be InputText, VerifyValue, VerifyProperty and so on.

  29. Java collections framework Interview Questions

  30. Question 18. What Is Application Map?

    Answer :

    An Application Map Provides Named References for GUI Components. Application Maps are nothing but “Object Repositry”

  31. Selenium Interview Questions