Friday, August 8, 2008

1.How to make arguments optional in a function?

A.Suppose there is alogin window in the user name we can type Any thing but while running its giving som eerror we can avoid tht error actually so, we can make tht tsl as an optional so tht if an error occurs it countinues but not stop for exampleOptional.Dialog("Login").WinEdit("Name:").Set "ssss" these line make an optional now

2.Synchronization methods?

A.1.Object/Window Property
2.Object/Window Bitmap
3.Screen Area Bitmap

3.What is the difference between image and bitmap check point

A.Image check point - It will capture your whole image.
Bitmap Check point- Using this you can capture desired area
of image or other portion

4.When the Low Level Recording is used in QTP

A.1. if fails to record in Contact Sensitative
2. if it fails to record in analog recording
3. When the Object is not identified4. Not use

5.How to add a runtime parameter to a data sheet?

A.Example:
Datatable.GetSheet ("Global").Add Parameter ("NewColumn_Name")

This adds a new column called NewColumn_Name in the
data table under Global Sheet

6.How to suppress warnings from the "Test results page"?

A.i am unable to understand your question clearly anyway i will give some input to you I hope it's useful to you if you want Pass result in the Result page reporter.reportevent micPass,if you want fail result in the Result page reporter.reportevent micFail, if you want Warning result in the Result page
Reporter.reportevent micWarning if you don't want any result symbol only u want text in the Result page reporter.reportevent micDone,

7.Can we do Load Testing with QTP?

A.Yes but we can do in Module Level
You can not create a load in QTP. QTP is a functional regression testing tool. QTP can only act like 1 user. You need a tool like Load Runner to actually create a load.

8.Can we directly automate test scripts according to requirements?

A.No, we cannot automate test scripts using requirements

9.what is TOM in qtp?

A.think its a test object model

10.How to retrive the property of an object?

A.Spy the object a dialog box comes with the properites and the associated
methods

11.What is runtime objects and test objects? What is the difference between them?

A.TEST OBJECT:A test object is an object that QuickTest creates in the test to represent the actual object in the application.QTP stores information about the object that will help to identify and check the object during the test
run. RUNTIME OBJECT:Is an actual object in the application on
which methods are performed during the test run.

12.Tell about automation object model(Aom) in qtp

A.aom IS THE CONCEPT OF "TO AUTOMATE THE QTP ITSELF"

13.How to open any application during Scripting in QTP?

A.you can launch any exe files using following code
systemUtil.Run "PATH\Filename.EXE"
ex:
systemUtil.Run "C:\Calc.exe

14.what is descriptive.create()in qtp?

A.to create properties collection and we can create propertie bject(MYDescription).once we have filled properties collection with a set of properties objects(properties,values) we can specify properties object in place of an obj name

15.What is test object model in QTP ?

A.Test Object Model in QTP, is the combination of Test Object
and Run Object information of the objects used.

16.How to export QTP results to an .xls file?

A.Datatable.Export("C:\Results\Actuals.xls")

17.what is Unicoad Compatibility ???? HOw does this makes a diffrence from Winrunner.?

A.As far as my knowledge Unicode compatibility is nothing but
u can Test Applns which are developed in other than English Language also. i.e QTP Supports Japanise,chinese language appls also. where as winrunner doesn't support unicode compatibility

18.we are submitting data one form to another form.defaultly it is time period set as 5sec. but it is taken 15sec what to do?

A.using sychornization point we can sychornize both or we can call Callwait() funtion and set particular period of time
syncronization is the best way to do that perticular task wait() function sends wr in sleepmode,it's wastage of the time

19.what is batch run ?

A.Batch run is nothing but running all the scripts at 1 time.usually we create a file called GLOBAL and store all the scripts.all the GUI's(in case of wr) will be stored here.we have to call all the scripts in that gui file and run it.very imp : all the scripts should be executed first and then put into batch.next very imp : we have to change the settings as RUN IN
BATCH MODE

20.Can u call winRunner scripts from QTP?

A.Yes We can Call the Win Runner scripts from QTP using following function:
TSLTest.RunTestEx from the Expert view or Call to Win Runner test Dialog box