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 |
Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???
How to find if given number is prime or not
your doing one project testing then how u know itis wheather web based application or windows based application?
hi all QTP recognizing objects as "string_1","string_2","string_3","string_4" like that but when using FOR LOOP for these.QTP not proceeding further can i declare these _1,_2,_3,_4 as a single variable
how can i replace any text from the qtp script with some anothere text
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
In smart identification, explain about 1. Base filter properties 2. optional filter properties with examples?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
suppose i opened 6browsers and i want re-open the 4browser what is code for this..pls help me..
What are the main features we have to compulsory test by using qtp in an web based application
What are the points to be taken into consideration while doing desktop testing?
How will you handle java tree in qtp?