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..??

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com

1762


Explain about business process component? types and usage?

1564


Explain how you can replace string in qtp?

605


What is recovery scenario manager? When you go for recovery scenario manager?

595


Object repositories types, which and when to use?

579






Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4144


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1443


How to upload excel files into Quality Center using QTP Script and how to delete excel files from Quality?

614


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3703


Differentiate the type of test cases which can be automated and which cannot be automated?

567


How to interact tool & application build in QTP?

1462


How to indentify MS-Word objects like Menubar, Toolbar, table/columns/rows/cells etc within Word document, using QTP?

1809


What is the difference between qtp and selenium?

549


Why qtp the best testing tool?

566


How to use setroproperty?

575