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

What are the Application Functions available in QTP?

1 Answers  


unable to get item from the combobox using descriptive programing. can any one give me the peice of code to schedule the booking from one place to another using DESCRIPTIVE PROGRAMING.

1 Answers  


unique properties of button,edit box, radio button,check box?

2 Answers   IBM,


Give me some real time point of way where exactly we can conduct audits?

1 Answers   CTS,


How should I get results when I run scripts in a Batch mode

1 Answers   TCS,


WHAT IS PARAMITARIZATION?

8 Answers  


explian qtp frame work and what is the use of it? what is the neceecity of this? explian detail?

2 Answers  


How to use descriptive programming?

1 Answers  


What is a Run-Time Data Table? Where can I find and view this table?

4 Answers  


I came across Good question ..... Write a script to only download pdf's if there are 20 links on a page. Kindly reply these type of questions are pretty challenging..

4 Answers   Keane India Ltd,


actually how many hours per one day we will work on automation(qtp) in real time

1 Answers   Synechron,


How we can add actions in the test using QTP?

5 Answers  


Categories