software testing genius

HP QTP Question Bank-Q 181 to 190

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

HP QTP Question Bank: Q. 181 to 190

Q. 181: What is the purpose of Expert View in QTP?

In QTP, tests are composed of statements coded in the Microsoft VBScript programming language. The Expert View provides an alternative to the Keyword View for testers who are familiar with VBScript.

In the Expert View, we can view an action in VBScript. If we are familiar with VBScript, we can add and update statements and enhance our tests and function libraries with programming. This enables us to increase a testís power and flexibility.

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

Q. 182: What is the main difference between Keyword View & The Expert View in QTP?

1) In the Keyword View, QTP displays information

about each step and shows the object hierarchy in an icon-based table.

2) In the Expert View, QTP displays each step as a VBScript line or statement. In object-based steps, the VBScript statement defines the object hierarchy. In the Expert View, an objectís description is displayed in parentheses following the object type.

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

Q. 183: How can we insert a checkpoint or output value statement in Expert View Manually?

Because the statement displayed in the Expert View is a reference to the stored information, hence we cannot insert a checkpoint or output value statement in the Expert View manually and we cannot copy a Checkpoint or Output statement from the Expert View to another test.

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

Q. 184: What are the various ways of generating Statements in Expert View?

We can generate statements in the following ways:

1) We can use the Step Generator to add steps that use methods and functions.

2) We can manually insert VBScript statements that use methods to perform operations.

3) When we start to type a VBScript keyword in the Expert View or a function library, QTP automatically adds the relevant syntax or blocks to our script, if the Auto-expand VBScript syntax option is enabled.

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

Q. 185: What is IntelliSense in QTP?

IntelliSense is a statement completion feature of QTP which helps us in selecting the test object, method, property, or collection for our statement and to view the relevant syntax as we type in the Expert View or a function library.

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

Q. 186: What is the purpose of Auto-expand VBScript syntax option in QTP?

Auto-expand VBScript syntax is an option avaailable in QTP. When this option is enabled and we start to type a VBScript keyword in the Expert View or a function library, QTP automatically recognizes the first two characters of the keyword and adds the relevant VBScript syntax or blocks to the script. For example, if we enter the letters if and then enter a space at the beginning of a line, QTP automatically enters:

If Then

End If

The Auto-expand VBScript syntax option is enabled by default.

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

Q. 187: What is the purpose of bookmarks in our Test Actions?

We can use bookmarks to mark important sections in our action or function library so that we can navigate between the various parts more easily. In tests, bookmarks apply only within a specific action; they are not preserved when we navigate between actions and they are not saved with the test or function library.

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

Q. 188: What is the meaning of error message "Expected end of statement" while running a test?

When we receive an "Expected end of statement" error message while running a step in our test or function library, it may indicate that we need to add parentheses around the arguments of the step's method.

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

Q. 189: What are the types of Programmatic Descriptions?

1) Static Programmatic Description: Here we list the set of properties and values that describe the object directly in a VBScript statement. Using the Static type to enter programmatic descriptions directly into our statements may be easier for basic object description needs.

2) Dynamic Programmatic Description: Here we add a collection of properties and values to a Description object, and then enter the Description object name in the statement. In most cases, using the Dynamic type provides more power, efficiency, and flexibility.

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

Q. 190: How can we retrieve all objects located inside a Parent Object?

We use the ChildObjects method to retrieve all objects located inside a specified parent object, or only those child objects that fit a certain programmatic description.

To retrieve this subset of child objects, we first create a description object and add the set of properties and values that we want our child object collection to match using the Description object.

Continue to Next Part : Q 191 to 200 

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.

Get your Absolutely Free Copy of Several MS PowerPoint Presentations & E-Books related to ISTQB, HP Load Runner, IBM RFT, HP QTP & QC Certification Exams, prepared by Popular Writers & Trainers, by writing to:

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 QTP in 1 Hr. -  Interview Questions


Comments :


Leave Your Comments: (*) Marked Fields are Mandatory

You can apply basic formatting to the text

Name *
Email Address *
Speak your mind
sex hikayeleri