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 you are running a batch test of 5 scripts and in 2nd script appln crashed, what hpns then?

4 Answers   BirlaSoft,


Hi,EXCEL SHEET AND DATA TABLE . BOTH ARE SAME OR NOT?

3 Answers  


hi nani my doubt is how does qtp process metrix related to software process.

0 Answers  


We have 10 rows in datatable at runtime we get error at 3rd row ? what is the procedure for continuing same test from 4th row on wards?

10 Answers  


Hi What are re-usable actions in QTP? -Thank You

5 Answers   Siemens,


how to insert QTP to display errors and other description in the test results instead of halting execution by throwing error in the mid of executin due to an error (for object not found)?

1 Answers   Ordain Solutions,


What is Test Fusion Report in QTP?

0 Answers  


hello, i was install Q.T.P.8.2 in windows xp version .when i am running my programs all the desktop icons are disappear why so. please guide me anybody how can i come out side this problem.

3 Answers  


Basically why we need testing?

14 Answers  


How to open a new test using QTP?

1 Answers  


Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.

0 Answers  


Hi All As per the requirements i have to copy the data from word document to excel sheet using the QTP Note : Data in word document is in tabular format i.e there is 80 rows and 5 columns table Can any body provide code for this ? Thanks in advance Regards Test123Test

1 Answers  


Categories