Skip to Content

TheBlogReaders.com

Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces

QTP Latest Interview Questions and Answers Part-4

Be First!

qtp31) What are the different types of Test Automation Frameworks ?

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.

Learn more about Test Automation Frameworks.

32) How will you check a web application for broken links using QTP?

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

33) What is a Run-Time Data Table? Where can I find and view this table?

Data like parameterized output , checkpoint values , output values are stored in the Run-time Table. It is an xls file which is stored in the Test Results Folder. It can also be accessed in the Test Fusion Report.

34) What is the difference between check point and output value.

Check point is a verification point that compares a current value for a specified property with the expected value for that property. Based on this comparison, it will generate a PASS or FAIL status.

An output value is a value captured during the test run and can be stored in a specified location like the Datable or even a variable. Unlike Checkpoints, no PASS/FAIL status is generated.

35) How would you connect to database using vbscript ?

To connect to the database you must know

a) connection string of your server

b) username

c) password

d) DNS name

You can code the database connectivity command directly or you can use the SQL Query tool provided by QTP.

36) What is QTP batch testing tool?

You can use the Batch testing tool to run multiple scripts. Once the scripts are added in the tool , it will automatically open the scripts and start executing them one after the other.

37) What are the drawbacks of QTP?

As of QTP version 10

1) Huge Tests in QTP consume lots of memory and increase CPU utilization.

2) Since QTP stores results in HTML file (and not txt) the result folder sometimes becomes big.

38) What is an Optional Step ?

A step when declared optional is not mandatory to be executed. If the corresponding GUI object is present, QTP performs the operation on it. If the GUI object is not present, QTP bypasses the optional step and proceeds to execute the next step.

39) What is Reporter.ReportEvent ?

Reporter.Reportvent is standard method provided by QTP to send custom messages to the test results window.

Syntax

Reporter.ReportEvent EventStatus, ReportStepName, Details [, ImageFilePath]

where

EventStatus = 0 or micPass

1 or micFail

2 or micDone

3 or micWarning

Results can assume any status like Pass , Fail , Warning etc. You can also send screenshot to the test results window.

40) How will you declare a variable in QTP ?

You declare using a DIM keyword. You assign value to the variable using the SET keyword.

Ex.

Dim temp ‘Will declare the temp variable

Set temp = 20 ‘ Will assign a value 20 to temp.

(41)

Previous
Next

Leave a Reply