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


Please Help Members By Posting Answers For Below Questions

whow much strong on VB and C?

1482


How u will do versioning in QTP?

1456


Is qtp supports uni-code?

612


What is quicktest professional window?

560


Explain how to use QTP to check broken links on a page?

585






Explain the difference between call to action and copy action?

521


how to download mercury qtp9.2 ny internet ?

2964


if numbers are always changing write a script for that

3396


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

1806


What is a quick test professional?

627


What is quick test pro?

590


Which functionalities of QTP used in banking project?

1924


iam working in QTP for 2+ of exp if i attend the interview what r questions asked in perfomence testing{loadrunner} ? pls any one can say answer to this question?

1604


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field will reflects and so on.if total psngrs=100 then will we capture all the fields for the psngrs to Automate the app how we can handle this scenerio thru Descriptive programming?

1453


What is recovery scenario manager? When you go for recovery scenario manager?

591