Saturday, January 5, 2008

QTP Questions - 17

what are recovery management techniques?

Recovery scenario manager is used to handle exception. exception is run time error, three steps to handle exceptions.
1. Trigger event: -pop-up window, object state, test run error and application crash
2.recovery operations: -select an operation to perform when the trigger event occurs they are 1.keyboard or mouse operation 2.close application process 3. Function call 
4.restart Microsoft windows 
3.post recovery: - select the last run operation you want to perform when the recovery operation is complete
 . Test run options:
1.      Repeat current step and continue
2.      Proceed to next step
3.      Proceed to next action or component
4.      Proceed to next iteration 
5.      Restart current test run
6.      Stop the test run

8.what is the difference between link and hyperlink?

The Hyperlink control immediately navigates to the target URL when the user clicks on the control. The form is not posted to the server.
The Link Button control first posts the form to the server, then navigates to the URL. If you need to do any server-side processing before going to the target URL, use a 
Link Button. 
On the other hand, if there is no server-side processing necessary, don't waste a round trip and use the Hyperlink control.

9.In qtp, how to interact tool & application build?
By using descriptive programming

10.HOW TO DO THE BATCH TESTING USING QTP?

GO to tools, options and select the test batch runner and select the scripting functions one by one by keeping it in wait mode and execute it.

11.WHAT IS THE USE OF "FUNCTION GENERATOR" IN QTP?

1) The use of functional generator in qtp is which lists out the all the built in functions in qtp and helps you to write the vb script for unknown objects.
2) It is also used to reduce the typing mistakes & syntax errors.

12.WHAT IS ENVIRONMENT VARIABLES?

The variable, which you have in one action cant, be used in some other action .so by using environment variables we can use the variables in one action in to another action.
Environment variables are 3 types,
1. User defined internal
2. User defined external
3. Built-in
 

13.what is the use of VIRTUAL OBJECTS? explain?

The use of virtual objects in qtp is identifies the objects including pixels (with co-ordinates.)

14.what is a test strategy & what is the difference between test strategy & test plan?

Test Plan is controlled document, which describes entire testing process. It includes
Scoping of the test, Test deliverables, Test schedule, Entry criteria, Exit criteria, Risks and contingencies and also Test strategy.
Test Strategy or Test Methodology is a set of guidelines that describes test design.

15.WHAT IS THE DESCRIPTIVE programming when it is useful? & When to use this?

1st
Descriptive Programming is all about identifying an object uniquely.
 
Descriptive programming in QTP means whenever qtp facing difficulty with object identification then we will go with regular exp or description programming it means identifying object unique prop from the script itself.ex:vbwindow("").vbedit("attached text:=username").set cdbjd

2nd answer

without using the objectrepository, and by using the object spy we will write the DESCRIPTIVE programming. when ever we will go to DESCRIPTIVE programming: -
1.when ever objects are dynamically changing.
2.when ever QTP is not going to recognize the objects.
3.when ever object repository size is huge automatically QTP 
Will get down slow.
4.when ever not yet develop the build then only we will use
  DESCRIPTIVE programming.

1 comment:

sas said...

We have mainframe terminal emulator as an add-in in QTP. We can record and playback scripts but cannot get pass/fail results. Both show 0. Any ideas?