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 |
We stored into the objects OR and then write the scripting
What all challenges you have faced during automation and how you have resolved it?
Which line will be executed 1-B(DP).P(OR.link(DP) 2-B(OR).P(Or).Link(DP)
What is environment variable in qtp and why to use it?
Plz write the code, function will take the parameter as month number, i.e., numerical value, but it returns the last day of the month in string (weekday). example: input: function parameter: 3(march) output: thursday
IF there are seven browsers with same name open. I want to close one particular browser thru QTP. how can i do this?
Hi,All How to create a link in excel sheet using qtp
When to Insert transactions in QTP?
Analyzing the Checkpoint results ?
I want to run my qtp scipt on the system where qtp is not installed .I don't want to install qtp but i want that system should use the qtp from another system in lan just the qtp instance should be launched on that system without having qtp installed on it .I probably know the solution that it will be solved through RMI but how to get this problem solved plz help i anyone know the answer
For which type of projects the iterative model is not suitable?
How to handle run time errors?