How to make arguments optional in a function?

Answer Posted / sushma

Suppose there is alogin window in the user name we can type
any thing but while running its giving som eerror we can
avoid tht error actually
so, we can make tht tsl as an optional so tht if an error
occurs it countinues but not stop
for example
Optional.Dialog("Login").WinEdit("Name:").Set "ssss"
these line make an optional now

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is qtpro? What is quick test pro?

551


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1349


How to sendKeys in QTP? Diff b/w sendkeys and device replay? Diff b/w function and Sub? Diff b/w Array and List Different Types of running Keys other than Fast, slow,Normal mode Regular expression for http://newtours.demoaut.com Difference between \w and \W How to generate script button Recording Types Different Types of Actions? Using DP performance degrades, If Yes why? How to close all the opened browsers? Diff b/w SystemUtil.Run and invoke application? If qtp not recognized the combo box How to select values from drop down?

3489


What is fragmentation and paging?

1582


How to handle the exceptions using the recovery scenario manager in qtp?

559






What is qtp window?

556


Write a script to verify font style and color of a windows object using descriptive programming

829


How you can find length of array in qtp?

536


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1533


What is the difference between qtp and selenium?

537


What is action?

567


how to compare two bitmaps( 1. clients requirement & 2. Designed by dev) in qtp 8.2 wann clear steps

1665


What is the architecture of your project? Can any one answer for this question plz........

1403


What is the difference between byref and byval in qtp?

577


what is ODC and GDC?

7327