how can i pass parameters into function?

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


Please Help Members By Posting Answers For Below Questions

Explain data driven framework?

575


What is the difference between a Function and Procedure in QTP?

675


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

1607


what is profile tool?

1605


How to use setroproperty?

568






how to test load test and block box testing an a web based application pls give ans briefly

1352


What are the steps involved in recovery scenario wizard?

521


What is the extension of the recovery scenario file in qtp?

537


Explain how Selenium is different from UFT?

690


Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,

1342


When to use descriptive programming?

589


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1680


I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?

1763


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

642


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1484