How to set the function parameters as optional.
Pls anybody can give the answer.. Thanks in advance...
Answer Posted / 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 |
Post New Answer View All Answers
How to execute a winrunner script in quicktest professional (qtp)?
What is quicktest professional?
hai, i completed my b.tech in 2010 with 62.3%. i having knowledge on manual testing and Qtp. i want Relavent experience in testing.watever may be d salary i dont bother..I just want to gain knowledge. i dont have good communication skills.
What is the extension of qtp local repository?
What are the common defects found in your project? (in qtp interview)
How many lines of code in each script of QTP?
In the website, the protocol has been changed http: to https what you will do? Tell me your approach?
Explain the types of object repositorys in qtp?
Hi could some one explan what is the use of the function Defination generator, And how to use the function defination generator.. Explan with the example..
What is the difference between a Function and Procedure in QTP?
How do you send email with attachment from outlook using qtp ?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
Limitations in QTP?
How do we analyze the checkpoint results?
How will you test a keyboard?