Sunteți pe pagina 1din 2

http://softwaretestinginterviewfaqs.wordpress.

com/category/test-metrics/

Function Library:
Functional library is a collection of multiple functions
A Functional library needs to be associated with the ‘Test’, for test the
function You need to follow 3 simple steps to use a function from a library
in your test Create a new function library in QTP
• Associate the library with your test
• Use function in ur test
(For pass argument: Function definition generator)
Debugging:
Debugging is the process of identifying the mistakes in our scripts
Rectifying errors in our scripts (Note: Logical error not Syntax Error)
Options of Debugging:
• Step
• Watch
• Break Point
Step:
• Step into (F11): Line by line execution, It is used for going line by line
executing either main function or library function
• Step Out (F10): Used for moving the control from the function library
back into main function with executing functions automatically
• Step Over (Shift F11): Jumping over the function with executing by
automatically
• Run to step (Ctl F10): Running the specific line by executing the
above lines of code automatically, when we want to debug lower Part
of Program to come till that part and debug from the run to step
(Remaining lines also Execute)
• Debug From Step: Running the specific step without executing the
above lines of code automatically, (Give control over the step).If output
of the before lines are needed for execution, then we can use Run to
step, If output is not required use Debug from step
Ni discussion forum-look their
Watch: It is used for identifying the current value possessed by a variable
(ctlT)
Break Point: is used for Halting the script Execution at a specific line
(F9), It can be placed Still we kept Display
Return Statement: Pass control from Library function to main Function ,
Use Middle of the Function, It not used for pass value
Return()=Return(0),Return One argument only Return(Str)
User defined functions are encapsulation of segments of code which is used
several times in the script. They can be either within the QTP script or can be
maintained in external .VBS or .TXT files.
When you test your applications, you may want to check how the application
performs the same operations with multiple sets of data. For example,
suppose you want to check how your Web site responds to ten separate sets
of data. You could record ten separate tests, each with its own set of data.
Alternatively, you can create Data Table parameters so that your test runs
ten times, each time using a different set of data. This way of setting
parameters is called parameterization.

S-ar putea să vă placă și