Sunday, 26 July 2015

QTP LIFECYCLE


QTP LIFE CYCLE
QTP life cycle contains six phases
I.             Test planning
II.           Generating the basic test
III.          Enhancing the test
IV.         Debugging the test
V.           Executing the test
VI.         Analysis the Results

I. Test Planning:
              In this phase the automation test lead will do the following
1.    Understanding the requirements
2.    Identifying all the areas to be automated
3.    Analyzing both the negative and positive flow of the application
4.    Preparing the automation test plan document based on the analysis
5.    Preparing the tool ready with all the pre configurationally settings for the further operations



  II. Generating the basic test:

                   In this phase the automation test engineer will generate the basic test engineer will generate the basic test for both the +ve and –ve flow of the application
IIII. Enhancing the Test:

                   One can enhance the script in the following ways

1.    Inserting the check points
2.    Synchronizing the test
3.    Parameterizing the test (Data Driven Testing)
4.    Inserting the output value statements
5.    Inserting the transactional points for measuring transactions
6.    Inserting the programmatic statements
7.    Adding comments
8.    Inserting the script statement manually

IV. Debugging the Test:

Debugging:
Debugging is a process of executing the script or a program in a user desired passion with some temporary breaks in order to identify the errors
To do the same QTP has provided step commands and break point feature.

Step commands: -
                   There are three step commands
                             1.Step into
                             2.Step Out
                             3.Step over

1.Step into:
                   Step into is used for executing a single statement then it will step in to the function or action and stops the execution.
2.Step Out:
                   Step out is used for executing all the remaining statements from the position of pointer in the function of the action and comes out of the function or action and stops execution
3.Step Over:
                   Step over is used for executing the single statement if that statement is a function call or action call then it will execute all the statements in side the function or action once and stops the execution

Break Point:
                   Break point is the feature provided by QTP, which is used for breaking the execution temporarily

Navigation:
·         Activate the menu item debug
·         Select the desired option


Example
          Function my func( )
          Msg box “Hai”
          Msg box “hellow”
          Msg box “How r u”
          End function

·         My func
Msg box “bye”
My func
Msgbox”see u”
My func
Msg “welcome”


Debug viewer Pane:
                             Debug viewer pane is used for viewing, modifying or setting the current value of the variables or expressions during the execution break with the help of three tabs by name
                                      1.watch expressions
                                      2.Variables
                                      3.Command
Dim a
                             A= 10
                             B= 20
·         Msg box a
·         Msg box b
·         Msg box a

We need give the values in the command and click on enter. Then u can get updated values
And go to watch just type a+b
And click

V. Executing the Test:
                   In this phase one will execute the test

VI. Analyzing the results:
                   In this phase one will analyze the results.








                  

No comments:

Post a Comment