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

How to change the screen name while running the test.

3 Answers   TCS,


What is regular expression?

0 Answers  


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

0 Answers  


What's QuickTest Window?

1 Answers  


Write test cases for copy and past password in password field ?

0 Answers  


what is framework and types of framework? Need of framework in automation? write folder strucuture of framework.

3 Answers   HealthAsyst,


Suppose I want to use Index value of "WinEdit" in my script .But it is showing None in "Ordinal identifier" value of Testobject Details in the Object Repository.How to enable Ordinal Identifiers to capture the Index value of that particular WinEdit. I have selected "index" and clicked "OK" from Tools-> Object Identification Again I added same WinEdit to the Object repository But I did not get Index value..Please any one help me.How to enable Ordinal indentifiers

1 Answers  


who is the best faculty in HYD? Nageshwar rao or GC reddy?

3 Answers  


suppose by navigation i went from 1st page to 5th page write a script for coming from any page to the 1st page abd by executing where the page may be . it will come to 1st page give the code using gmail. give me mail id so that i can under this answer with out any doubt

1 Answers  


When I used random numbers(1 to 9) with regular expression and run the test, it runs only 5 iterations with passed result instead of running all 1 to 9. Please tell me what can be the reason

0 Answers  


How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

0 Answers  


what is recovery scenario in QTP? what is the need of the recovery scenario in QTP? what are the advantages of the recovery scenarios in QTP?

3 Answers   CTS,


Categories