How to make arguments optional in a function?

Answer Posted / subbu

In QTP we dont use "Optional" keyword just like in VB.
But work around is use Dictionary object. It is just like
multi dimension arrays.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?

911


How to use the object spy in quicktest professional (qtp) 8.0 version?

708


how to idetfy which test cases are automated?who will deside that plz tell me

1749


I want to capture data(using keyword) from msdos application using QTP?... Below is little work i could do on it... /* Set app=CreateObject("Wscript.shell") SystemUtil.run ("C:\Users\Agent\Desktop\pumpsim\PUMPSIM.EXE") Window(“PUMPSIM.EXE”).Activate wait(3) app.sendkeys "N" */ Thanks in advance...!!!

1608


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1804


What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)

1211


How many types of recording modes in qtp? Describe each type with an example where we use them?

806


What are the types of object repositories? Which one is you are using?

848


Does QTP record on Objects created on XWindows Environment?

1861


.have you ever written compiled module? if yes , tell me about some of the function that you wrote.

1910


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3256


What is the syntax to call one script from another?

769


What is the difference between Keyword Driven test and Data Driven test?

1981


Can QTP be used for GUI testing ?, We are using Java with MySQL and Operating system is Linux. We are NOT using the web.

2127


wt is the use of multiple questions in QTP

1883