What is the exact difference bet function and action in QTP
Anybody can explain it in detail..Thanks in advance..
Answer Posted / paresh patel
1. Action is a QTP Feature. Function is a VBScript/JScript
Feature.
2. Actions can return multiple outputs. Function can return
only one output.
3. Actions can have only basic data type (String, Number,
Boolean, Date, Password, Any) as input & output parameters.
Where 'Any' is a variable type data. Functions can have
basic Data Types, Object Data Types as well as Array
Variables as Input Arguments and Output value.
4. Function is a code block stored in a Text Type File.
Action is stored as a Folder and has many other entities
like data-table, object-repository associated with it.
Note:
1. Both Action and Functions are block of code.
2. You can call Function in an action, By associating its
file to QTP Script. You can aslo have QTP features called in
a Function, i.e. you can also call an Action in a function.
However, that Function can only used by QTP.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
What is the use of text output value in quicktest professional (qtp)?
How to find the length of the string in qtp?
What is the basic concept of quicktest professional?
What are the types of environment variables in qtp?
How to add verification steps to tests?
What are the different attribute used with regular expression?
Excel sheet having some datas and some datas present in the application (in table). How will you compare these two datas? Write code to fetch datas from Excel sheet.
What is the keyword view and expert view in qtp?
What are the features and benefits of quick test pro (qtp 8.0)?
Where we can use the synchronization?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
What is difference between design time and run time data table?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel