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
requirement is for combo box your expected value is str= "Denver.Frankfurt.London.Los Angeles.Paris.Portland.San Francisco.Seattle.Sydney.Zurich" you must get the text in combo box and need to compare them how
Whar are the challenges do we face while testing web based applications using the automation tool QTP or any??
Differentiate the type of test cases which can be automated and which cannot be automated?
can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks
Explain about the test fusion report of quicktest professional (qtp)?
When using descriptive programming?
when a test case is written how u test using qtp
How to handle the exceptions using recovery secnario manager in quicktest professional?
Explain the parameter in qtp?
how did u use automating testing tools in ur job?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
explain keyword driven framework with banking domain?
How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?
Can we use index on view?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer