What is the difference between Action and Function.? when
both has the same functionaltiy, when do we choose Action
and when do we choose Function..??

Answers were Sorted based on User's Feedback



What is the difference between Action and Function.? when both has the same functionaltiy, when do..

Answer / pratap h s

Actions are more specific to tool Example QTP

Functions are generic and part of programing language.

Actions in QTP are used to divide the test into different
logical units .

Within actions we can write functions .

but witin functions we cant use actions

we call functions in actions .

Is This Answer Correct ?    6 Yes 0 No

What is the difference between Action and Function.? when both has the same functionaltiy, when do..

Answer / bfakruddin

Hi Folks,

Here I am giving an efficient data about Actions and
Functions... and when we use specifically...

click here

http://qtptesters.blogspot.com/2009/03/actions-vs-functions.html

Is This Answer Correct ?    0 Yes 0 No

What is the difference between Action and Function.? when both has the same functionaltiy, when do..

Answer / nath t

Major Differences:

Functions: Function returns only one value. it doesn't has
Object repository.

Actions: Actions has Object repository. It returns more
than one value (i.e Output parameters). We can declare
more than one Output parameter.

we can call Function in any Actions in QTP test. But Action
is not like that we have to mention that as reusable action
in Action Properties.

we can store Functions in .VBS file. but Action we cann't
store like this way.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More QTP Interview Questions

When to Insert transactions in QTP?

3 Answers   Siemens,


what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?

0 Answers  


How to find if given number is prime or not

1 Answers  


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

0 Answers  


Explain in brief about the QTP Automation Object Model.

1 Answers  






hi,i have a pblm in qtp,im testing an webappl in which different types of error pop up messages are displayed which qtp is not differentiating or it is not recognising. how do i make it recognise different popup errorm messages while writing script?

4 Answers  


Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.

1 Answers   scintel,


Hi, I have 50 test cases for automation, Based on which criteria we can decide for these test cases we have to use Descriptive programming and remaining for general coding? Thanks In Advance..Kavitha

2 Answers  


Through array we can execute the testcase how ? give me example

0 Answers   TCS,


What are the types of object repository in qtp?

0 Answers  


c language is thre but what is the purpose of c++, java is there but what is the purpose of Advanced java ....why these are all versions are coming...whta is the problem?

2 Answers   Accenture,


What is Regular Expressions?

2 Answers  


Categories