Automation Interview Questions (Guru99) Flashcards ionicons-v5-c

What are the types of Object Repositories used by QTP?

Per-Action Object RepositoryShared Object Repository

Which environments are supported by HP QTP?

WebWeb ServicesActive XOracle.NetJavaVisual Basics

Can we call QTP test from another test using scripting? Suppose there are 4 test and I want to call these test in a main script. Is this Possible?

YES!First, ensure actions needed are REUSABLEThen, Call actions using CALL TO COPY or CALL TO EXISTING ACTION

What is Action Split and what is the Purpose of using this in QTP?

Action split is DIVIDING EXISTING ACTIONS into TWO PARTSIts Purpose is to DIVIDE actions based on FUNCTIONALITY and IMPROVE CODE RE-USE

How will you handle Java Tree in QTP?

First, apply the Java Add-in and start QTPThen, Record operations to Java TreeIf error occurs, refer to Object Identification In "OI", there you can make CHANGES to mandatory and assistive properties

Explain how QTP identifies objects

QTP identifies ANY GUI OBJECT by its PROPERTIESDuring RECORDING, QTP identifies unique property values and stores them into the Object RepositoryDuring Run-Time, QTP compares property values to on-screen values to identify the object

How many types of recording modes are in QTP?

There are 4 types of recording modes:Normal ModeLow-level ModeAnalog ModeInsight Mode

What is Normal Mode Recording?

The default recording mode of QTPRecords objects ANYWHERE on screenPreferred mode of recording for MOST automation activities

What is Low-level mode Recording

Records the X and Y coordinates of mouse operationshelpful in testing Hash MapsUsed to records objects that are not recognized by normal mode recording

What is Analog mode Recording

Records exact movements of mouse and keyboardUsed for:Drawing OperationsRecording SignaturesDrag & Drop Operations

What is Insight mode Recording?

Records the objects by Appearance and not by its Native PropertiesUsed to TEST environment controls that QTP does not support or even from a REMOTE computer running a non-Windows OS

How will you call from one action to another?

There are TWO WAYS:Call to copy:copies script and data to be used in scriptCall to existing:uses script and data as a reference for the source script

What are Virtual Objects

Objects that are not identified as a STANDARD OBJECT, but can be linked/set to a standard object

How to perform Cross platform testing and Cross Browser testing using QTP? Can you explain giving some examples?

First, ensure you split the actions based on the OS and BrowserCross Platform Testing:Use In-Built Environmental Variables to capture the information about the OS, then call actions based that specific platformCross Browser Testing:Use the method .GetROProperty to capture information on the Run-Time Objects property value, then call actions relevant to that specific browser

What is Logical Name of the object?

Unique name given by QTP when creating an object in the repository to identify this object from other objects

What is Descriptive Programming?

Writing a code to describe an Object using its property values in the scriptNot meant to BYPASS object repository, but to make an object MORE DYNAMIC

What properties would you use for identifying Browser & Page when using descriptive programming?

In my experience, I would use "title" as the property name and ".*" as the valueUsing dot asterisk as the value applies regular expression to the object allowing to be used in a dynamic way.

Can we record an application running on a remote machine using QTP?

YES!Recording an application can ONLY be done through LOCAL MACHINE and NOT channeled through a remoter such as, VMWARE or CITRIX

Explain the keyword "CreateObject" with an example.

CreateObject, creates and returns a reference to an Automation ObjectSyntax: CreateObject(servername.typename)servername: name of app providing objecttypename: type or class of the object to create

Can you switch between Per-Action and Shared Object Repository?

YES!Go to test -> settings -> resourceshere you can access the option to change between per-action or shared

What is Object Spy? How to use it?

Helps determine the run and test time objects AND methods of the application under testCan be accessed through UFT Toolbar or Object Repository Dialog BoxVERY useful for descriptive programming

When ordinal identifiers alone can make object unique then why they are not given TOP PRIORITY? Why is it Mandatory and next Assistive? Why can we not go for ordinal identifiers directly?

Well, if TWO objects are OVERLAPPED on each other than LOCATION based, object recognition will FAILIf ONLY Index is used, script will work at the COST of HIGHER execution time

What is the file extension of the code file in QTP?

Code file extension is "script.mts"

Explain in brief about QTP Automation Object Model?

Automation Object Model deals with Automation itselfALMOST ALL configuration and functionality provided by QTP is represented in AOMSuch as, ALMOST ALL dialog boxes in QTP have a corresponding automation object that can be SET or RETRIEVED using the corresponding PROPERTIES or METHODS in AOMAOM uses VB programming elements like FOR LOOPS or CONDITIONAL STATEMENTS