Answer Posted / amarendra kothuru
Syntax to declare a function
Function functionname(parameter1, parameter2, etc...)
'statements....
End Function
E.g: Function Myfunc(a,b,c)
Calling the function in test script:
E.g:
1)Call Myfunc(a,b,c)
2)Myfunc a,b,c
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the use of running the scripts in Hidden-mode in UFT?
What are the ways you can synchronize?
What are the general steps involved in the data driven framework?
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
What are test settings and global settings?
hi nani my doubt is how does qtp process metrix related to software process.
What is quicktest professional (qtp window?
What is the new version of qtp which is recently released in the market?
Plz Explain AUTOMATION REFERENCE MODEL?
What is optional step in qtp? How you can add optional step in qtp?
how to idetfy which test cases are automated?who will deside that plz tell me
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
What are the features of quick test pro(qtp)?
In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?
What are the advantages of parameterization ?