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
Explain advantages and disadvantages of ddf?
Name the properties you would use for identifying a browser and page when using descriptive programming?
Mention the test steps of qtp.
what is the diff between manual test plan document and automation test plan doc.can u explain indetail.
write script for bitmap image?
how can we do the frame work in qtp
How you can make an action as re-usable action?
Connect to QC using AOM.
Explain the new feature of UFT regarding the export of test results?
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
What are the advantages of qtp?
What are the differences between qtp and winrunner?
Explain the concept of how quicktest professional identifies object?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
How do Parameterization and Data-Driving relate to each other in QTP?