What is the difference between Functions and Action ?
Answer / anshuman
functions are encapsulation of segments of code which is
used several times in the script.They can be either within
the QTP script or can be maintained in external .VBS or .TXT
files.
Action is a thing specific to QTP while functions are a
generic thing which is a feature of VB Scripting. Action can
have a object repository associated with it while a function
can’t. A function is just lines of code with some/none
parameters and a single return value while an action can
have more than one output parameters.
Is This Answer Correct ? | 3 Yes | 2 No |
How to call a function in QTP?
can test automation improve test effectiveness?
How to get line numbers in your editor in expert view?
Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.
What is object repository in qtp?
Can I import a excel sheet in Action1 datatable? How?
Explain the Different types of QTP test assets and their extensions?
suppose take one row in a row 16 columns is there.in 16 columns 16 numbers is there.but i want to get each 3 column number.o/p :5 columns get in 16 columns means. so can anybody write this function? plz send if u know the answer.
Hi all im having a pop up validation browser which is 20 in number, i want to close those similar pop browsers one after the other, is there any specific code for that? i tried by giving creation time & putting in a loop but it dint work? valid working answers will be greatly appreciated
hi, i am trying to capture "web element" names in a web page, and i written the code like this,, with Browser("title:=") with .page("") .webelement("htmltag:=...").getroproperty("innertext") end with end with //////////////////////////////////////////////////////////////////////////////////// QTP RETURN ERROR like this: " object's description matches more than one of the objects currently displayed in your application. Add additional properties to the object description in order to uniquely identify the object" ok fine , i need to search another property other than "index" i use all the properties like class,text,innerhtml,innertext,visible=true,x , y,abs x ,abs y...but qtp returns error ..... in this webpage index is difficult to find? how to solve
QTP in mumbai
IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp