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

How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

1686


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1527


What is the use of Debug Viewer?

1652


What is difference between run time object and test object?

736


I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1883






What are the common defects found in your project? (in qtp interview)

1801


I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2436


please give me the code for doing retesting of gmail login page using functions so the function has to give the value

1726


Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....

1644


Why is action split used by qtp?

731


What is the difference between Keyword Driven test and Data Driven test?

1969


I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”

770


How many types of actions are there in quicktest professional (qtp)?

703


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1635


Hi Guys, I want to place all of my values which i am getting it from a loop in to a global shee. For that i had written the script like this For i = 1 to ECOs-1 ECO = List(i).GetROProperty("innertext") DataTable.AddSheet("ECOList") DataTable.GetSheet("ECOList").AddParameter "ECOList",ECO AbortECO = DataTable.GetSheet("ECOList").GetParameter ("ECOList").Value msgbox AbortECO DataTable.GetSheet("ECOList").SetNextRow Using the above script, whenever the loop iterates it is creating new column "ECOLIST" in the sheet called "ECOLIST". It means, the values are displaying in the column wise even though i added the script " DataTable.GetSheet("ECOList").SetNextRow" . The cursor is not moving to the next line. Anybody help me out how to pass the values from script to the excel(Global/Local) sheet. Pls let me know @ nbabu11@gmail.com if you are not clear about the question.

1629