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 |
What is object spy in quicktest professional?
1. What is extense of Result file in QTP?
What is difference between Recording time object identification and Run time (Execution) time.
QTP9.1 does not support to text checkpoint in Windows application? Is this correct? If this is correct, what is alternative for Text checkpoint?
How to capture screenshots of Exceptions/Errors during run- time?
Got job with 3 years fake Experience
How many types of object repository in qtp?
How will u test content of an web application with out using chechpoints in QTP 9.2?
give me the code for check point for validating application
How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..
Differentiate the type of test cases which can be automated and which cannot be automated?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?