U can pass information between actions in several ways:
1. Using D new Action Parameters feature in Quick Test 8.0
2. Putting D variable in D data table and Dn accessing tis data table 4m D called action.
3. Defining D variable as an environment variable that can be accessed 4m D entire test.
Wednesday, December 19, 2007
How 2 pass parameters when calling actions?
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: actions, parameters, QTP, testing tools
What is the use of Actions and Functions in QTP? What do you know about Actions, functions in QTP?
Actions are specific to QTP. Normally a single or combination of multiple actions make a QTP script. Actions can associate with OR (object repository).
Functions are a piece of VB script code that has a variables and after execution will produce a return value that will be passed to the script back for further usage. Functionas can not associate with OR.
When we need to add some functionality to qtp script then we go for functions and call them in scripts.
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: actions, desctiptive programming, external functions, Functional testing, functions, mercury QTP, object repository, OR, QTP, script, testing tools
What do you know about Recovery scenario? What are the components of Recovery scenario? How do you use recovery scenario? When and where to use Recove
What do you know about Recovery scenario? What are the components of Recovery scenario? How do you use recovery scenario? When and where to use Recovery scenario?
As its name indicates, Recovery scenario gives us an option to recover from unexpected errors in QTP. It will recover from any type of errors whether it is a fatal error like object not found, path not found, system error etc… or a small error like pop up error, out of paper from printer etc…
The main components or steps that exist in a recovery scenario are:
Trigger:
A trigger is an even that initiates the recovery scenario to start working. These events can be fired by any action like ‘A sudden pop up’, ‘application error’, or change in the property of any object etc…
Action:
Action is a single or series of steps to be followed after the recovery scenario is triggered by an event. What to be done after recovery scenario is triggered? Any key board event, mouse event, calling any function to execute etc…
After these actions are executed, we can also set what to be done after this? Got o next executable step and go ahead from there? Etc…
In normal cases, recovery scenario is used when you are not able to find out the root of the error or place of the error. Because some errors may raise outside the QTP like ‘out of paper’ etc..
But if you know the line exactly where an error may raise in QTP, then you can use ‘Error resume next’ function instead of recovery scenario.
Posted by
QTP FAQ's Jobs interview questions
at
9:37 AM
0
comments
Labels: actions, error resume next, errorResumeNext(), event, Functional testing, mercury QTP, QTP, qtp recovery scenario, Recovery scenario, testing tools, trigger