Friday, August 8, 2008

1.Difference between image checkpoint and bitmap checkpoint?

A.In Bitmap checkpoint, we can compare the exact images, means the source image(in Build1) with the destination image(in build2). So it compare the exact image between both the builds. Here, even we can check the part of images between
source and destination.

where as in Image check point, we can check all the values and properties of an image. Ex. The destination address once we click on the image, image type etc.

2.give me descriptive programing code sample flight application in qtp?

A.Browser(name:=Mercury \FlightApplications).Page
(title:=FlightApplications).Exist

3.How to execute a WinRunner Script in QTP?

A.insert->callto winRunner->select test or function

4.what does it mean when a check point is in red color? what do u do?

A.red is symbol for failure

5.Explain the check points in QTP?

A.A checkpoint verifies that expected information is displayed in a Application while the test is running. You can add eight types of checkpoints to your test for
standard web objects using QTP.
•A page checkpoint checks the characteristics of a Application
•A text checkpoint checks that a text string is displayed in the appropriate place on a Application.
•An object checkpoint (Standard) checks the values of an object on a Application.
•An image checkpoint checks the values of an image on a Application.
•A table checkpoint checks information within a table on a Application
•An Accessiblity checkpoint checks the web page for Section 508 compliance.
•An XML checkpoint checks the contents of individual XML data files or XML documents that are part of your Web application.
•A database checkpoint checks the contents of databases accessed by your web site

6.How to Import data from a ".xls" file to Data table during Runtime?

A.datatable.Import("file path")
datatable.Importsheet("file path",sheetid)

7.what is the Command used to start the QTp from Run.(start-> Run?

A.systemutil.run"path of the file"

8.In qtp,how to interact tool & application build?

A.by using descriptive programing

9.How many ways we can parameterize data in QTP?

A.There are four types of parameters.
1.Test, action or component parameters.
2.Data Table parameters.
3.Environment variable parameters.
4.Random number paramete

10.HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

A.invoke_record (path of the record)

11.I have recorded a test over web application(with IE6.0) in analog mode. But, while running it my test gets failed. Why? (Note: my systray has 3 ope

A.QTP provides an option to enter the url on which you are going to run the script. If u dont provide this, the script might NOT recognize the url as u've saind u opened 3 IE
windows.

12.What are the file extensions for per-action, shared object repository files and what is the extension for library files?

A.Per-Action OR : .mtr
Shared OR : .tsr
Library files : .vbs, .txt

13.Tell me few important difference Between QTP and WinRunner?

A.qtp:To compare static and dyanmic images through qtp

winrunner: to conduct testing on static images only.

qtp: In this three types recording is possible
they are 1)GENERAL RECORDING 2)ANALOG RECORDING 3)LOW LEVEL
RECORDING

WINRUNNER: In this two types of recoring is possible
they are 1)CONTEXT SENSITIVE RECORDING 2)ANALOG RECORDING

14.What is API?

A.Application program interface

15.What is output value?

A.An Outputvalue is a step in which one or more values are captured at a specific point in Test and stores for the duration of Run.

An output value is a value retrived during the test run and entered into your data table. You can subsequently use this output value as input data in your test. This enables you to use data retrived during a test in other parts of the Test.

16.After running scripts how you report results ,there is any specific report form?

A.report.reportevent event status,stepname,details

17.how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into v

A.i can tell you the procedure to get the data of username if u can read properly then u might be getting the result. just declare a variable
x=browser(browser).page(pagename).setROproperty("innertext")
msgbox thats it

Any Application, it may be web or it may be window based applications, we usegetroproperty() method to get the data from the Editbox.Same way if u want to set the data to the editbox we use set()method.

for example:
Dim variable name
variable name = Browser(browser).page
(pagename).GetROproperty("Logical name")

if u want to print in dialogbox use msgbox()function OR
if u want to print in test result use reporter.reporter
event() function

18.Explain about reusable actions?

A.An action that can be called multiple times by the test in which it was created.(local test) as well as by other tests we eant to use the 'call to existing action' option, we
have to make an action as reusable action. for that we have to go for action properties and click the check button. let action1 is a reusable action then we call it to any other action. If we change the script in action1 it is affects in all actions in which we called action1.

19.How u perform Batch Program in QTP?

A.we can perform bacth programming in QTP using tool called Test Batch Runner which comes with QTP by adding the paths of all Tests which are need to be grouped and executing same.

20.What is the differnce between action & script?

A.A sequence of related statements are called "Action".But a script will contain more than one Action