anyone can explain Diff B/w Actions and Functions

Answers were Sorted based on User's Feedback



anyone can explain Diff B/w Actions and Functions..

Answer / anil

1.Action is a thing specific to QTP while functions are a
generic thing which is a feature of VB Scripting.

2.Action have a object repository, Data table etc
associated with it while a function can't.

3.A function is just lines of code with some/none
parameters and a single return value while an action can
have more than one output parameters.

4.We can write a function in an Action...But in Function we
can't..

5. We can't call an Action in a function, But we can call a
function in an Action.

Is This Answer Correct ?    4 Yes 0 No

anyone can explain Diff B/w Actions and Functions..

Answer / aruna

we can pass values in functions ,but not in actions

functions are faster than actiions

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More QTP Interview Questions

Which object model ur used in ur project

2 Answers   Cap Gemini,


what is virtual object?

2 Answers  


How should i find out whether the cursor is moving horizantally. when tabbing continuously

2 Answers   Livetek,


How to automate the windows dialog box which is coming in the run mode? Whenever I run my scripts,I am getting dialog box ( for ex: Pls enter zipcode" eventhough I already entered the value,the dialog box pops up).I need to click it. Pls give some idea-How to automate the dialog box which is pop up in the runtime.

2 Answers  


After geting the modules where we generate the script ie in qtp or notpad ?

1 Answers  






What is Regular Expressions?

2 Answers  


How do u write a regular expression for date (dd/mm/yyyy) field ?

4 Answers   Semantic Space,


Hi Recently I Attend one interview .The intervier ask on Question in QC 9.2 . The Qus was while ruuning the Batch RUNS scripts in test lab if defect will comes .The defect automaticly wants to genate . How to Configure in QC . Thank You Balaji

0 Answers  


four browser are open same application i want to enter 3browser how?

3 Answers   IBM,


What is data driver in qtp? Where we use it?

0 Answers  


How can we count the no of rows are available in a data table ?

9 Answers   Kanbay,


Hi How to retrieve data from web element line by line?

0 Answers  


Categories