what is the difference between action and function
Answer Posted / sailaja
Few of the key differences between reusable actions and
functions here.
Passing Data
Actions - can only accept primative data types as
parameters (strings, integers, etc)
Functions - can accept arrays, dictionary objects and test
objects (i.e. Pages, Frames, WebRadioGroups, etc.)
Resource Usage
Actions - For each action, there’s a folder, three separate
vbs files, a local Object Repository, a subfolder
containing snapshots, an Excel spreadsheet, and a few
seconds of load time.
Functions - There’s the code contained in the Function, and
that’s all
API
Actions - You cannot insert calls to Existing Actions
through the QTP API, you can only do it through the
interface
Functions - You can attach Function Libraries to Test
Scripts through the QTP API
Return Values
Actions - Return values are difficult to understand and
read in the syntax
Functions - Return values work like they do in other
languages (i.e. as lvalues)
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Can we run test with out adding object in object repository? How it is possible?
diff between qtp versions from 8.5
How to break the object spy ?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
What is the difference in testing a client-server application and a web application?
How can you give wait up to 10 seconds in qtp?
How QTP identify the system time that's changes every seconds?
How you can delete excel file in qtp?
HI Everybody, I am using QTP 9.2, I have a problem and hope everybody help me solve it. Now I need to use mouse wheel event to zoom in or zoom out in web client, but QTP can't catch this event. I look forward helping of everybody. Thank you very much.
Will there be any standards or requirements for page appearance and/or graphics throughout a site or parts of a site?
How to get popup error message.
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
what r the main attributes of test automation?
What is the difference between run time object and test object in QTP?
How to create scenario selector