Answer Posted / sunil reddy
We will defeinitely pass the parameters to Function
Try with this Example
First parameterize the Agent name with invalid data like sun
Dialog("Login").Einedit("AgentName").Set datatable.Value
("Agent")
Call the function
Function Login(Sunny)
Dialog("Login").Einedit("AgentName").Set datatable.Value
("Agent1")
End Function
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What Folder Structure following in Keyword Driven Frame work?
How will internal and external links be validated and updated? how often?
Is it possible to call from one action to another action in qtp?
What is the syntax to call one script from another?
What are parameterizing tests?
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
Explain features of the latest version of qtp/ uft 12.1?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
What is TOM in QTP?
how to know no.of mails in our g mail by using vb-script
write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading
What is the diff between image and bitmap check point?
diff between qtp versions from 8.5
What is ObjectParamater?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.