Top 18 Test Automation Framework Interview Questions
Q1. What Is Modular Framework?
Description:
In this approach tests can be created and done the usage of reusable additives.
Advantages:
Centralized upkeep of sources
High in performance
Modifications are easy
Concentration on complicated capability checking out
Disadvantages:
Scripting expertise is obligatory
Less or no attention on facts driven checking out
Takes greater time to create
Q2. What Are The Key Elements Of Automation Framework?
Well defined folder structure
Initialization script
Driver script
Organizer spreadsheet
Process guidelines report
Q3. What Is Keyword Driven Framework?
In this approach checks can be created and completed using key phrases
Q4. What Are The Different Types Of Tasks To Be Performed During Test Automation?
Tasks to be executed:
a) Analyzing the utility in terms of Object Identification:
we've got to investigate the AUT in terms of Object Identification.
Basically, QTP is an Object based test tool, here first we have to verify
if the QTP is recognizing all the gadgets in our application or not.
To do that, we are able to observe one or extra below given techniques...
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 data is steady)
Dynamic Objects(Properties info modifications dynamically)
Duplicate Objects(Having Similar assets data.)
Note: We can take care of dynamic Objects the use of Regular expressions and cope with replica
Objects the usage of "Index" belongings.
B) Selecting Areas/Test Cases for Automation
Overview:
100% take a look at automation is not possible, we are able to cross for max automation.
Generally we choose under form of Tests for Automation:
Tests that we need to execute on every construct (Ex: Sanity Tests)
Tests that we should execute on every modified construct (Ex: Regression Tests)
Tests that we have to execute with a couple of sets of check facts.(Ex: Data Driven Tests)
Tests having complex functionality
c) Planning (Effort estimation, Schedule, Work allocation and Automation Framework implementation)
Overview:
After deciding on a few regions for Automation, we must estimate the efforts
in terms of Scope of the Project, time and resources(Environmental and Human)
To estimate efforts, we will observe an one of the underneath given strategies:
Using Expert based techniques.
Experienced based totally techniques.
Function factor analysis.
Identifying End to End Scenarios.
Identifying verification factors.
Identifying General and Alternate Flows.
Identifying the modularity.
Identifying the complex functionality.
D) Creating Generic and project precise capabilities.
E) Creating required Automation assets(Functions, Object repository Files, Environment variable files---and so forth)
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 going for walks tests(Individual take a look at execution, Test Batch execution --and many others)
i) Defining and exporting test results
j) Analyzing consequences
ok) Defect Reporting using Our Company illness control gadget.
L) Modifying resources and exams (if required)
m) Performing Re and regression checking out
n) Maintaining Automation Resources
Q5. What Is Automation Framework?
A set of recommendations, assumptions and method evolved by using specialists on the way to carry out a assignment(s) in an effective, efficient and optimized way.
Q6. What Is Hybrid Framework?
It is a mixture of two or more techniques
Ex:
Modular framework and Data driven framework
Advantages:
Scope may be very excessive as we blend specific processes.
Flexible for appearing all styles of tasks.
Drawbacks:
Organizing and dealing with assets are hard
Complex structure.
Low in overall performance.
Q7. What Is Keyword?
Any word used as the important thing to a code A reserved word used to discover a selected command or feature or method or statement or operator or item etc.
Q8. What Is Record/playback Or Linear Framework?
Description:
In this method tests can be created and achieved the use of recording feature.
Advantages:
Easy to create and takes much less time
Scripting knowledge is elective
Recommended for small scale projects
Recommended for dynamically converting necessities
Disadvantages:
No centralized maintenance of take a look at items
Low in performance because of duplicate items
Less or no attention on complex capability testing
Less or no awareness on statistics pushed testing
No centralized preservation of sources
Q9. Why Automation Framework?
In one mission check automation we create and use unique forms of files and we carry out unique styles of tasks, with a view to prepare and manage them all, a scientific method (Automation Framework) is needed.
Q10. What Is Folder Structure?
In order to create, store, organize and manipulate documents, a nicely defined folder shape is required. Folder shape is a obligatory element of any framework, but folder names may additionally range from one framework to every other and company to another.
Q11. What Is Keyword Driven Approach?
In this method keywords can be used for creating and executing assessments.
Q12. What Are The Important Keywords That We Use In Qtp?
Test Objects (EX: Browser, web page, webEdit, WinButton---and many others)
Functions (Built-In and User described)
Methods (Ex: Set, Select, Activate, Navigate---and so forth)
Statements (EX:Dim ,If, For, Exit, wait, alternative express ---and so forth)
Operators (EX: +,/,*,and, or, now not---and so on
Q13. What Is Data Driven Framework?
Description:
In this technique checks can be done using multiple sets of take a look at records
Advantages:
Positive and terrible trying out may be carried out
Checking the reliability of gadget (AUT)
Disadvantages:
Maintaining resources is hard
Less or no awareness on complex functionality checking out
Q14. Give An Example For Folder Structure?
Folder Structure:
@ObjectRepository
@Environment
@FunctionLibrary
Company
ProjectSpecific
@TestData
@TestResult
@RecoveryScenarios
@Organizer
@Drivers
@Miscellaneous
Q15. What Is A Keyword ?
Keyword is an Action that may be executed on a GUI Component. Ex . For GUI Component Textbox some Keywords ( Action) might be InputText, VerifyValue, VerifyProperty and so on.
Q16. What Are The Different Types Of Files To Be Created And Executed During Test Automation Using Qtp Tool?
Files for use:
Flat files (.Txt),
Excel files (.Xls)
Object repository documents (.Tsr)
XML documents (.Xml)
Library files (.Vbs/.Qfl)
Test Scripts (.Mts)
Test Batch Files (.Mtb)
Recovery state of affairs documents (.Qrs)
Test Result file (.XML) Etc...
Q17. What Are The Different Types Of Automation Frameworks Available In The Industry?
Automation Framework is not a QTP Tool function, it’s a 3rd celebration idea. And this is merely nearby concept.(framework may range from one organization to every other and One challenge to some other)
Record/Playback or Linear Framework (1st generation framework).
Modular Framework.
Data Driven Framework
Keyword Driven framework
Hybrid Framework Etc..
Q18. What Is Application Map?
An Application Map Provides Named References for GUI Components. Application Maps are nothing however "Object Repositry"
 
   
    
 
  
  
  
  
  
 