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

Is qtp supports uni-code?

610


What will be happen if i load object repository at run time, but it has already associated.

1255


What is RTM (require ment tracebulity marix) fromate?

1525


after click on compose mail how can we attached a file in qtp with vbscript code

1609


Which scripting language used by quicktest professional?

526






What are the methods used in UFT to handle exceptions or run-time errors?

642


Is it possible to use two instances of UFT on the same machine? If not why?

595


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1675


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1498


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1500


How can I change object description or check point values in qtp?

552


How can we retrieve the Bug Ids which are open&Reopen in status through QTP scrit?Please find the script which i tried... Dim objBugFactory, objBug Dim BugId Set TDConnection = QCUtil.TDConnection Set objBug = TDConnection.BugFactory If QCUtil.IsConnected then Reporter.ReportEvent 0, "Connected", "Connected to server: " + QCUtil.TDConnection.ServerName + chr (13) +"Project: " + QCUtil.TDConnection.ProjectName + chr (13) + "Domain: " + QCUtil.TDConnection.DomainName Reporter.ReportEvent 0, "Current time on server is","==>" & TDConnection.ServerTime Else Reporter.ReportEvent 1, "Not connected", "Not connected to Quality Center" End If If mybug.Status="Open" Then BugId=mybug.DefectId MsgBox BugId End If 'OR**********************************--------------------- -----********************************** If Bug_Fields("BG_STATUS").Value ="Open" Or "Re Open"Then BugId=Bug_Fields("BG_BUG_ID").Value MsgBox BugId End If

2565


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4135


How you can replace string in qtp?

570


For example you are checking bit map check point before coming to the results. How can you say it is passed? Or failed? Anyways?

612