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

If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?

767


describe some problems that u had with automating testing tool?

1591


What is Curd testing?

2084


what is command for executing files?

1715


What is test object model in quicktest professional?

820


What is qtpro? What is quick test pro? What is a quick test professional?

807


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

1635


Explain how to use QTP to check broken links on a page?

771


How does QTP identify an object?

789


In QTP TEST DIRECTOR COMBINATION WHAT IS THE PURPOSE OF TEST DIRECTOR? In Somebody says to store test cases and design test cases.?ok fine , but In test director 5.0 , QTp not launching. what u do?

1712


Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)

3449


Hoe can we do retesting using functions please give the code for it using login page

1750


Could you please any one give code for the following ? Scenario : Suppose a excel file contains 10 records and earch have 5 fields. how can i input this excel file for datadrive wizard ? Please explain

1723


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

1742


What is 'sleep' in sync point?

829