Tuesday, May 04, 2010

QTP QnA2

1. How do you do your reusable and shared process in your project?
By using shared ACTION s

2. What is TOProperty and ROperoperty

TO Property is a TEST OBJECT property which will have minimum no.of properties and methods where as RUNTIME OBJECT property will have all the possible properties and methods which would helpful in runtime.


3. I am running the script and at some point the pop up might appears on the screen. I would never know for sure when it might pop up. Is there any solution to this problem how to close it. If it's not closed, the script would not continue.

By Recovery scenario Manager we can handle the pop up exceptions.

4.How do you update your exisiting checkpoint properties?

Update Run option (Test > Update Run) on tests to update checkpoint property values.


5.Can you import Microsoft Excel files or sheets that contain merged cells into the Data Table.

You cannot import Microsoft Excel files or sheets that contain merged cells into the Data Table.

QTP QnA1

1. How do you handle exceptions in QTP?

By using Recovery Scenario Manager

2.What are the different kind of exceptions that can we handle?

1. pop Window
2. object State
3. Test run error
4. Application crash

3.What is Library file ?
Library of user defined functions that you want to call frequently from other test . When you load a script its functions are automatically compiled and remain in memory, you can call that directily. Extension of the LIBRARY file is file_name.VBS

4.How do you call Actions from main script?
In the Expert View, an action called by another action is displayed within the parent action with the following syntax:

Call RunAction (ActionName, Run_Setting, FromRow - ToRow)

For example:

Call RunAction("Select Flight", 0, "1 - 1")

5. How do you call function in the library file?

First execute the library file Using EXECUTEFILE method then call the function which is in that library.


6. What the getROProperty and getTOProperty method will do?

Gets the value of RUN-TIME OBJECT property value

Example:getROproperty(background) this would give you the background color of the object

getTOProperty : - Gets the value of Test OBJECT property value

QTP QnA

1.What is the main difference between win runner and Quicktestprofessional?

1.Data Table integration is much easier and simpler with Quick Test Pro.
2. Shared Object Repository
3.Detailed Report
4.Quick learning objects.
5.Data Driven Testing is easier with more options in Quick Test Pro.
6. Parameterization is much easier in Quick Test Pro and basically anything in Quick Test Pro can be parameterized (statements, checkpoints and the Object Repository).

2. What is object repository?

Object Repository is place which will have all the information about the object such as logical name and physical description of objects with tree view to see the hierarchy of the object.

3.What is the default wait time in QTP?
2 seconds

4.How do declare gloabal variable?
Environment(Variable_name)

5.Is block of comments is possible in QTP?
NO.

6. How many check points are there ?What are they?
1. Standard Check points
2. Text Checkpoints
3. Text Area Checkpoints
4. Bitmap Checkpoints
5. Database Checkpoints
6. Accessbility Checkpoints
7. XML Checkpoints


7. What is extension of Library files?
Filename.VBS

8. What is extension of Object Repository files?
Filename.TSR

9. What is extension of Recovery files?
Filename.QRS

10.What do you run your library files in QTP?
By using EXECUTEFILE (PATH)

11.What are the recording modes available in QTP?
Analog Recording , Low level recording.

12.How do you integrate with Test Director?
By using Testdirector connection wizard


13.What are the different types of Object repository?
1.Pre-action Repository
2. Shared Repository

14.What are the content of Result summary window?

1.Name of the Test
2.Test
3.Result name
4.Run Started
5.Run Ended
6.Itration
7.Status

15.Different types of View?
1. Tree view
2. Expert View

16.What are all the run modes available in QTP
1.Normal mode 2.Update mode

17.What is synchronization point?
synchronization points enable you to solve anticipated timing problems between the test and your application. For example , if you create a test that opens a database application you can put a synchronization point that cause the test to wait until the database records are loaded.

18.What is the use of WAIT method?
It stops the test for certain time limits.
Syntax : wait(time in seconds)

19. What is the difference between wait and synchronization point ?
synchronization point will wait for certain process to complete but the wait method will stop the test for specified time limit only.

20.what is Assistive properties ?
When the object has not been identified by mandatory properties then the Assistive properties are take place to identify the object.

21. How does the QTP recognize objects in the application?
By using Object Repository.

22.How do you select your choice from the list box?
Object.Select “Choice”