How to set the function parameters as optional.
Pls anybody can give the answer.. Thanks in advance...
Answers were Sorted based on User's Feedback
Answer / uday kumar_anem
As far as i am aware, there is no keyword for optional
parameters in VBScripts.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saroj
In function parameter you can't use optional option. But
you can mark the statements inside the function as optional
by putting keyword "OptionalStep" before the statement.
ex:
Function login(name,passwd)
OptionalStep.Brw("login").Webedit("name").set name
Brw("login").Webedit("passwd").set passwd
Brw("login").Webbutton("ok").click
End Function
This may help you.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why qtp the best testing tool?
What is a Dictionary object in QTP.?
Diff b/w WEB TESTING AND Client server testing?
waht is puirpose of accesbility Check point? waht is the use of Page and XML check points?
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
Interviwer asked, How many years exper.. on QTP? I said, total 2 yrs exp in manual and QTP. QTP only current project arround 3 months. then interviewer ask , HOW BOLD YOU QTP? What you say?
After running scripts how you report results ,there is any specific report form
How to enter table check points?
Hi,All How to create a link in excel sheet using qtp
what are the cases in which we use XML and accessibility check points.
How can we display the names of the buttons in the toolbar of a webpage
Diff between Test Stratergy and Test Plan? Diff b/w Test design ansd test case design?