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

What is reusable action?

807


Why bpt?

809


one screen page,that contains file , browse , update and cancel buttons.when we browse a file it should get update otherwise it should go to previous page.write negative test case for that.

1719


What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?

801


How does you test a weblink which is changing dynamically?

790


What is the purpose of loading qtp add-ins?

848


Pls can anybody send me the Recent Technical and Interview Questions Which were asked in IBM(QTP)Automation PLZZZZZZZZZ

1794


Can any one send me the QTP Basic Coding Samples?

1845


How to get the particular property value?

817


When we r doing data driven test with chkpts, i want to insert formulae in data sheet but i didn't get. How we wil do that plz. explain in detail.

1850


What is the limitation to XML Checkpoints?

1849


Explain the concept of object repository and how quicktest professional recognises objects?

780


What is the pros and cons between QTP and Rational Robot

3514


Define Environment Variable in UFT and its uses?

810


How you can delete excel file in qtp?

830