What is the difference between functions and actions in

QTP?

Answer Posted / ram balamuri

Action is internal to QTP whereas functions are generic and
are coded in VBscript. The main difference between an
action and a function is that "an actions contains an
Object repository." An action can also be shared; it can
also use different shared reposiroties. A function on the
other hand doesn't have an object repository and is just
merely a code that returns some desired value(s).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kinds of security (firewalls, encryptions, passwords, etc.) will be required and what is it expected to do? How can it be tested?

829


i can done the project with QTP in that time i can say how many members in my team size?

1603


What is the pros and cons between QTP and Rational Robot

3488


What is the recovery scenario in qtp?

754


what is the latest version of QTP? Main difference between 9.2 and 10 version

1751


How many add-ins comes by default with quicktest professional (qtp)?

749


Have you done batch testing in qtp? If yes how you are doing?

684


i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?

1745


The structure of keyword driven frame work is like a folder structure the different sub folder are 1-functional libray folder 2-object repository folder 3- database folder 4-appliction1.xls 5-initalzation vbs file 6-sequence file 7-driver script 8-test case list file My question is whether these are in a local server machine or in our pc.((whether It like Vss). can u give example of driver script(code)

3003


How you debug your script?

737


What is keyword driven framework?

820


Which functionalities of QTP used in banking project?

2149


I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }

1994


how to idetfy which test cases are automated?who will deside that plz tell me

1747


Hi Samrat, Thank u very much, what u said it is right.

1642