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

How you debug your script?

650


How to export quicktest professional results to an .xls file?

670


HOW AUTOMATE TEST SCRIPT ? what time it will do? after gneration of basic script or Any , Plz explain detailed?

1805


how to post xml data from QTP scripts to any application?

1590


How to use parameterization in qtp?

716






1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?

1096


How many types of parameters are available in quicktest professional (qtp)?

674


Hi, my requirement is to make a query in SQL using QTP. And i have to get the results of that query and i have to use those results for future testing. I created a driver but i dont know the code for using this Driver. please help me by providing the solution for y requorement

1736


banking project description for software tester

7108


after click on compose mail how can we attached a file in qtp with vbscript code

1724


Explain the difference between call to action and copy action?

611


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1594


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

2991


How to use actions in qtp ?

672


What are the general steps involved in the data driven framework?

637