What is the difference between Action and Function.? when
both has the same functionaltiy, when do we choose Action
and when do we choose Function..??
Answers were Sorted based on User's Feedback
Answer / pratap h s
Actions are more specific to tool Example QTP
Functions are generic and part of programing language.
Actions in QTP are used to divide the test into different
logical units .
Within actions we can write functions .
but witin functions we cant use actions
we call functions in actions .
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / bfakruddin
Hi Folks,
Here I am giving an efficient data about Actions and
Functions... and when we use specifically...
click here
http://qtptesters.blogspot.com/2009/03/actions-vs-functions.html
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nath t
Major Differences:
Functions: Function returns only one value. it doesn't has
Object repository.
Actions: Actions has Object repository. It returns more
than one value (i.e Output parameters). We can declare
more than one Output parameter.
we can call Function in any Actions in QTP test. But Action
is not like that we have to mention that as reusable action
in Action Properties.
we can store Functions in .VBS file. but Action we cann't
store like this way.
| Is This Answer Correct ? | 1 Yes | 4 No |
In this bellow script QTP is not able to getting no. of Links from my Browser. Set desc=description.create desc("micclass").value="Link" Set obj=Browser("creationtime:=0").page("title:=.*").childobjects(desc) msgbox obj.count I am getting "General Run Error".Why QTP is not supporting my Browser,but its running fine in other system.Please help me to overcome this problem.
Should have experience in framework means?
In QTP 8.2 there are lot of check points is this same in latest version QTP 9.5 ?
How to make arguments optional in a function?
What are "Ordinal Identifiers" and where it is used in QTP. AS FAR AS i KNOW, its is used to identify the object. but i want clarity regarding this.
How can we close all webbrowsers which are opened in out desktop?
What is the use of Debug Viewer?
Explain the Different types of QTP test assets and their extensions?
Mention the different actions types of qtp.
I have java based application on my computer. Can I install QTP on it? What are system requirements for installing QTP?
How do you start automating/ writing your QTP scripts ?
How can you write the scripts that operate on different objects depending on run-time information?