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
Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris
What is smart identification in QTP?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek
Sql questions to find second max salary and how to use joins
What are the trigger events in qtp?
How to find the path of folder in which the test is saved in qtp?
What is the meaning Work bench?
Explain how you can find length of array in qtp?
what is supply chain management?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
is it possible to add sheets to excel at runtime
What is the registration process and examination fees?
Explain the benefits of quick test pro(qtp)?
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma