• +91 9723535972
  • info@interviewmaterial.com

QTP Interview Questions and Answers

QTP Interview Questions and Answers

Question - 51 : - What is the difference between functions and actions in QTP?

Answer - 51 : -

Actions have their own Object Repository & Data Table. Actions help make your Test modular and increase reuse. Example: You can divide your script into Actions based on functionality like Login, Logout etc.

Functions is a VB Script programming concept and do not have their own Object Repository or Data Table. Functions help in re-use of your code. Ex: You can create a Function in your script to concatenate two strings.

Question - 52 : - What is the Difference between Bitmap Check point & Image Check point?

Answer - 52 : -

Bitmap checkpoint does a pixel to pixel comparison of an image or part of an image.

Image checkpoint does do a pixel to pixel comparison but instead compare image properties like alt text , destination url etc.

Question - 53 : - What are the types of environment variables in QTP?

Answer - 53 : -

Environment variables in QTP are of three types:

1) Built-in (Read only)

2) User-defined Internal (Read only)

3) User-defined External (Read/Write)

You Set the Environment Variable using the following syntax

Environment.Value( “name”) = “Name”

You can Retrieve the Environment Variable using following syntax

Environment.Value(“name”) — This will retrun name as Name

Environment.Value(“OS”) — This will return your system OS

Question - 54 : - How can you handle exceptions in QTP?

Answer - 54 : -

In QTP Exceptional handling is done by using

a. Recovery Scenarios.
b. Using “On Error” statement

In Recovery scenario you have to define.
1. Triggered Events.
2. Recovery steps.
3. Post Recovery Test-Run.

At Script Level you can use the On Error Resume Next and On Error Go to 0 statement.

Question - 55 : - What is Test Fusion Report?

Answer - 55 : -

Test Fusion Report , displays all aspects of a test run and is organized in a Tree format.

It gives details of each step executed for all iterations.

It also gives Run-time data table, Screen shots and movie of the test run if opted.

Question - 56 : - How to make QTP understand the difference amongst the same type of objects .Suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

Answer - 56 : -

You can use ordinal identifiers like index along with a little descriptive programming for object recognition.

Question - 57 : - What is Step Generator?

Answer - 57 : -

Step Generator enables use to Add Test Steps in your script. Using step generator you can add steps to your script without actually recording it.

Question - 58 : - What is the use of Text output value in QTP?

Answer - 58 : -

Text Output values enable you to capture text appearing on the application under test during run-time.

If parameterized, text output values will capture values appearing in each iteration which would be stored in the run-time data table for further analysis.

Question - 59 : - What are the different types of Test Automation Frameworks?

Answer - 59 : -

The types of Automation Frameworks are –

1) Linear Scripting – Record & Playback
2) The Test Library Architecture Framework.
3)The Data-Driven Testing Framework.
4)The Keyword-Driven or Table-Driven Testing Framework.

Question - 60 : - How will you check a web application for broken links using QTP?

Answer - 60 : -

You can use the Page Checkpoint which gives a count of valid/invalid links on a page.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners