User defined function in QTP

Answer Posted / sani

User defined 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

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where you get the run time data table?

789


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1892


What is the use of running the scripts in Hidden-mode in UFT?

953


How do I lauch my test website using code from qtp in different environmet, uat and PPTE?

1739


Explain measuring transaction.

824


What is the file extension of the code file in qtp?

778


Could i know how how to explain keyword driven framework in interview? If any body knows plz send the explanation.

1890


When you open QTP, how many sheets you can see?

859


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

1735


What are the trigger events in qtp?

829


I need Major Help with a Script I recorded in QTP 9.5. I am recording scripts for a Web-based application(s) I have all the URLs for each application in Excel spreadhsheet so that QTP can pull that particular application from the spreadsheet and run it. The problem is QTP isn't recognizing one particular URL so when I hit run in QTP to run this script it opens the internet Explorer but isn't open the URL I have in the Excel spreadsheet. I've retyped the URL and still QTP won't open this Particular one for some reason. The site its self is working fine but for whatever reason QTP won't open it. How do I resolve this? I have a deadline of next Friday the 7th to complete this task so please help me in any way you can. Thanks in advance

1928


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3599


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

954


Describe function procedure in vbscript.

821


What are the views available in qtp?

825