QTP Interview Questions-I

QTP Basic Features


1) What are the advantages in Test Automation using a Tool?

a) Fast: Test Tool runs tests significantly faster than human users.

b) Reliable: Automation tool can perform the same operation each time, if we repeated multiple times, so that we can eliminate human errors.

c) Repeatable: We can check how application or website reacts after repeated the same operation with multiple times.

d) Reusable: Automation scripts are reusable on different version of the application of websites even if the user interfaces changes.

e) Comprehensive: In automation testing we can build a suit of tests that covers every feature in the application or website.

f) Programmable: We can program sophisticated Tests that bring out hidden information from the application

2) What are the drawbacks in Test Automation?

a) It is expensive.

b) We cannot automate all areas.

c) Lack of Skill.

d) It has some limitations (It cannot test every thing).

3) What type of test tools available in the industry?

We can segregate Test tools in 2 categories

1) Business Classification

a) Vendor Tools

b) Open Source Tools

c) In-house Tools

2) Technical Classification

a) Functional and Regression Test Tools

b) Load/Stress/Performance Test Tools

c) Security Test Tools

d) Test Management Tools

e) Unit Test Tools

f) Requirement Management Tools Etc...

4) What are the important factors in test tool selection?

1. Technical factors:


a) Nature of the AUT (Application Under Test)

b) Tool Features (Facilities available)

c) Availability of Skilled professionals

d) Organizations experience

e) Technical support from vendor

2. Business factors:

a) Budget

b) Vendor’s Reputation

c) Client’s Interest

5) What test cases can be automated?

Test cases that we want to execute on number of versions of the software. Ex: Regression test cases

Test cases that we want to execute with multiple sets of data. Ex: Data driven test cases

Test cases having complex functionality

6) What test cases cannot be automated?

Dynamically changing functionality

Test cases that require more Human interaction.

CUI (command user interface) based test cases.

7) Explain about the Testing process in QTP?

Planning:

• Analyzing the Application

• Automation Framework Implementation

• Selecting/Generating Test cases for Automation

• Collecting Test Data

• Configuring Tool Settings

Generating the basic tests

Using Object Repository method or using Descriptive Programming, we can generate Tests

Enhancing Tests

With respect to our project requirements, we have to enhance our tests. For enhancing tests QTP is providing various features like:

Inserting Transaction points

Synchronization

Parameterization

Inserting VB script Flow Control statements

Adding comments

Calling Functions/ calling Actions

Using Environment variables

Entering Regular Expressions

Inserting Checkpoints

Inserting Output values

Note: For any Test all enhancement methods not required.

Debugging Tests (if required)

It is optional; basically scripting languages are Light weight languages, no need to compile them separately. During execution Scripts can be compiled and Run.

If we have any doubts about some scripts, then we can execute them step by step with the support of VBScript Debug commands and Break points.

Running tests

Generally, many companies are using Framework feature for Running Tests.

QTP Supports many kinds of test execution like Individual Test execution, Batch execution which means you can run many scripts by forming a batch, Tests execution through AOM Scripting, and Scheduled execution i.e setting up a certain time or configuring the test with the support of Windows Operating system to set up time when the script should execute.

Analyzing Results

It is not the Responsibility of QTP; Test engineer has to do this manually.

QTP is providing Result window in XML format.

QTP is providing Result deletion tool also.

QTP is providing Test results exporting facility. It supports HTML, Word document and PDF (portable document format) formats.

Reporting Defects

Reporting defects of a Application under Test is not a QTP responsibility. Reporting of defects should be done manually after analyzing the test results, but if Quality Center is used then from the QTP result window the defects can be send directly..

8) What types of License available for QTP?

a) Seat License or Node locked

Fixed for one System (Machine), we can use from that System only

b) Concurrent License or Floating License

This License, we can use from different Systems but one at a time

9) What are the QTP supported environments?

QTP Supports Software Applications based on Add-ins only. Add-in means Technology supporting files. QTP Add ins available for following technologies:

a) Default Add ins

1) Activex

2) Visual Basic

3) Web

b) Other Add-ins

1) Delphi

2) Java

3) .NET Web forms

4) .NET Windows forms

5) WPF (Windows Presentation Foundation)

6) Oracle

7) People Soft

8) Power Builder

9) SAP for Web

10) SAP GUI for windows environment

11) Siebel Environment

12) Standard Windows

13) Terminal Emulator (TE)

14) Visual Age Smalltalk Environment

15) Web Services Environment

10) Does QTP Support UNIX Environment?

No, QTP doesn’t support UNIX/Linux Environment, Supports Windows Operating Environment only, but LoadRunner and Quality Center have support both Windows and UNIX Operating Environments.

11) What scripting language is used in QTP to applying programming logic?

Micro Soft Visual Basic Scripting edition (VBScript) engine embedded with QTP.

12) Does QTP Support Database Testing and Data driven Testing?

Yes, SQL Engine embedded with QTP Tool, so we use SQL Statements directly in QTP Test Pane as well as in Function Library. QTP has an integrated Spread sheet(Excel like) for Performing Data Driven Testing, otherwise we can fetch test data directly from external files and databases using VB Script.

Post a Comment

/* Tynt Insight tracker ----------------------------------------------- */