what is diffrense between action and function

Answers were Sorted based on User's Feedback



what is diffrense between action and function..

Answer / kiran

1. Action is associated to object repository where as
function is not assocoiated to any repository and contains
only vb statements

2. Action can return multupla values where as function can
return single value

Is This Answer Correct ?    6 Yes 5 No

what is diffrense between action and function..

Answer / chandu

Actions are used to divide scripts into logically related
groups of QTP Statements . They are similar to functions but
with a few differences

Action are unique to QTP , While functions are supported by
both VB script and QTP.

Is This Answer Correct ?    0 Yes 0 No

what is diffrense between action and function..

Answer / mahaboob

Action is a qtp tool feature,we can use checkpoints in actions,As it is a qtp tool feature it may corrupt and Actions are slow execution.
Function is a vbscript feature,we canot use checkpoints in functios insted of functions we can use Loops and conditional statements,functions are fast execution compate with actions.

Is This Answer Correct ?    0 Yes 0 No

what is diffrense between action and function..

Answer / giridhar

1 Action is the Local source.its may hav small script
in action we can use only recorded identifiers.

2 Function is the Outer source.its may hav more script

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

can u tell me website address of VBscript with examples.

2 Answers  


Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)

2 Answers   Broadridge,


Can i get a simple example exercise for update run mode for sample flight application......... In qtp when i try to run the test in update mode.. Auotmation> update option is disabled............ Pls let me know ................. Thanks in advance.....

3 Answers  


Describe how Smart Identification is used

0 Answers  


when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..i am using qtp 9.2 could someone help with this

3 Answers  


what is framework and types of framework? Need of framework in automation? write folder strucuture of framework.

3 Answers   HealthAsyst,


What are the different scripting languages you could use when working with QTP ?

6 Answers  


what r the 3 basic factor on which we determine to perform automation

6 Answers   AppLabs,


A web table is having 3 columns(name, salary and checkbox) in qtp How to select a checkbox based on the highest salary of an employee in a webtable.

1 Answers  


How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.

11 Answers   Thatavarti Technologies,


In QTP I have a parameter in a datatable that is a sentence. I need to take the last word from the sentence and enter it into a field in a web application. How can I setup a parameter to enter in just a portion of the parameter (last word of the sentence) instead of the entire paramater (whole sentence).

2 Answers  


In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...

4 Answers   Indium Software,


Categories