software testing genius

Rehearsal of QTP in 1 Hr-Interview Questions 71-80

Welcome to “Software Testing Genius”. Subscribe to my RSS feed for latest content on Software Testing.

Rehearsal of QTP in 1 Hr: Interview Questions 71 80

While appearing in an interview for a position on HP QuickTest Professional, do a quick rehearsal of your knowledge on this tool.

Here is a collection of 180 short questions, QTP Managers commonly use while interviewing new aspirants for their organization.

The entire rehearsal of these questions can take less than an hour.

Set of Ten Questions

Q. 71: What can be the Syntax to call one script from another? And what can be the Syntax to call one "Action" in another?

RunAction ActionName, [IterationMode , IterationRange , Parameters]

Here the action becomes reusable on making this call to any Action.

IterationRange String Not always

required. Indicates the rows for which action iterations will be performed. Valid only when the IterationMode is rngIterations. Enter the row range (i.e. "1-7"), or enter rngAll to run iterations on all rows.

If the action called by the RunAction statement includes an ExitAction statement, the RunAction statement can return the value of the ExitAction's RetVal argument.

<<<<<< =================== >>>>>>

Q. 72: How to export QTP results to an ".xls" file?

By default it creates an "XML" file and displays the results

<<<<<< =================== >>>>>>

Q. 73: How the exception handling can be done using QTP

It can be done by using the Recovery Scenario Manager which provides a wizard that guides you through the process of defining a recovery scenario.

The wizard could be accessed in QTP> Tools-> Recovery Scenario Manager .......

<<<<<< =================== >>>>>>

Q. 74: How many types of Actions are there in QTP?

There are three kinds of actions:

1) Non-reusable action: an action that can be called only in the test with which it is stored, and can be called only once.

2) Reusable action: an action that can be called multiple times by the test with which it is stored (the local test) as well as by other tests.

3) External action: a reusable action stored with another test. External actions are read-only in the calling test, but you can choose to use a local, editable copy of the Data Table information for the external action.

<<<<<< =================== >>>>>>

Q. 75: How do we analyze the Checkpoint results?

By adding standard checkpoints to your tests or components, you can compare the expected values of object properties to the object's current values during a run session. If the results do not match, the checkpoint fails.

<<<<<< =================== >>>>>>

Q. 76: How do we handle Run-time errors?

On Error Resume Next: causes execution to continue with the statement immediately following the statement that caused the run-time error, or with the statement immediately following the most recent call out of the procedure containing the "On Error Resume Next" statement.

This allows execution to continue despite a run-time error.

You can then build the error-handling routine inline within the procedure.

Using "Err" object msgbox "Error no: " & " " & Err.Number & " " & Err.description & " " & Err.Source & Err.HelpContext

<<<<<< =================== >>>>>>

Q. 77: What are the different scripting languages you could use when working with QTP ?

Visual Basic (VB),XML, JavaScript, Java, HTML

<<<<<< =================== >>>>>>

Q. 78: How to handle dynamic objects in QTP?

QTP has a unique feature called Smart Object Identification/recognition. QTP generally identifies an object by matching its test object and run time object properties. QTP may fail to recognize the dynamic objects whose properties change during run time. Hence it has an option of enabling Smart Identification, wherein it can identify the objects even if their properties changes during run time.

Check this out - If QTP is unable to find any object that matches the recorded object description, or if it finds more than one object that fits the description, then QTP ignores the recorded description, and uses the Smart Identification mechanism to try to identify the object. While the Smart Identification mechanism is more complex, it is more flexible, and thus, if configured logically, a Smart Identification definition can probably help QTP identify an object, if it is present, even when the recorded description fails.

The Smart Identification mechanism uses two types of properties:

Base filter properties: The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object.

For example, if a Web link's tag was changed from to any other value, you could no longer call it the same object.

Optional filter properties: Other properties that can help identify objects of a particular class as they are unlikely to change on a regular basis, but which can be ignored if they are no longer applicable.

<<<<<< =================== >>>>>>

Q. 79: Explain the keyword createobject with an example?

Creates and returns a reference to an Automation object

syntax: CreateObject(servername.typename [, location])

Arguments

servername:Required. The name of the application providing the object.

typename : Required. The type or class of the object to create.

location : Optional. The name of the network server where the object is to be created.

<<<<<< =================== >>>>>>

Q. 80: What is a Run-Time Data Table? Where can I find and view this table?

# In QTP, there is data table that is at runtime.

# In QTP, select the option View->Data table.

# This is an excel file, which is stored in the folder of the test created, its name is Default.xls by default.

Continue to Next Set of QTP Rehearsal Questions 81 - 90

Study Material - HP QTP & QC Certification Exam

Study Material - HP LoadRunner Certification Exam

Study Material - IBM RFT Certification Exam

What Successful Testers say about the Quality of this website

If you want to keep track of further articles on Software Testing,
I suggest you to subscribe my
RSS feed
.

You can also Subscribe by E-mail
and get All New articles delivered directly to your Inbox.

Full Study Material for Popular Certification Exams:

Largest Database of Sample Papers - 1000+ Unique Questions for ISTQB Foundation Exam

ISTQB Foundation Exam - Full Crash Course for Download

ISTQB Advanced CTAL Test Analysts Exam - Full Crash Course for Download


ISTQB Advanced CTAL Test Manager Exam - Full Crash Course for Download


Study Material - ISTQB Certification Exam

Consolidated Study Material - Testing & QA


Most Popular Topics in Demand:

Practical Roadmap to QTP Certification

Practical Roadmap to CSTE Certification

General HR Interview Questions Common For All 

Tricky HR Interview Questions Common For All
 

Rehearsal of LoadRunner in 1 Hr. -  Interview Questions

 

Comments :

0 comments ↓


Leave Your Comments: (*) Marked Fields are Mandatory

You can apply basic formatting to the text

Name *
 
Email Address *
 
Website
 
Speak your mind
characters
sex hikayeleri