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
Hi,All How to create a link in excel sheet using qtp
How do client side image and server side image work?
Should have experience in framework means?
What is an optional step in qtp ?
Why we load add-ins in qtp?
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
How to record a qtp script ?
Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay
Does QTP10 supports Windows 7OS +IE 9 combination? Which is the preffered combination ,Plz let me know?
Step 3&4 are repeated until an the object in recognised uniquely.
What ate the Technologies supported by QTP?
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
Explain the terms test and business component?
What are the disadvantages of recording test cases in qtp?
What are the steps involved in recovery scenario wizard?