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



How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in adva..

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

How to set the function parameters as optional. Pls anybody can give the answer.. Thanks in adva..

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

Post New Answer

More QTP Interview Questions

How many regression test suits in your appliction?

2 Answers   CTS,


Hello Everyone, In QTP we have one option Data Driver wizard that comes in Tools -> Data Driver. so, please tell me abtout the use of Add Value and Parameterize options available in Data Driver wizard. And also the concept of value, constants, Parameterized displayed in the wizard. Please explain by giving the example. Thanks in advance, Gaytri

2 Answers  


why can't you use excel directly in qtp. why we want to import excel data into Datatable.

1 Answers   BoA,


what is the diffrence bw qtp architectute and qtp framework?

0 Answers  


how to reverse a string with out using string or predefined function,ex:string is " i love india". the output should be like this "i evol aidni"

3 Answers   Aspire,






How to identify the child window. In my case while recording, When i open new window and give checkpoint for some control and when i run that script QTP give error like" can not identify the object" Is there any method or solution to handle child window issue Note: In my apllication i have to check child window of child window also ( multiple windows open )

2 Answers   Infovision,


can any one say that where we can download the QTP trail version ??????????

0 Answers  


What is the limitations of BVA?

1 Answers   IBM,


How to handle dynamic objects in QTP?

4 Answers   Infosys,


What is the recovery scenario in qtp?

0 Answers  


what is Entry Criteria and Exit Criteria?

2 Answers  


I Scheduled a QTP Script on remote desktop. Script is going to failure,when remote desktop connection fails.I have to open my remote desktop untile the scripts exection completes. If I disconnect my remote desktop connection, script is going to fail.?

1 Answers   TCS,


Categories