How to make arguments optional in a function?

Answer Posted / ramchandra patil

Hi Narendra,

Good question!

See basically QTP does not support optional arguments but u
can achieve this with following ways-

1. You can pass NULL or Empty values
2. By using dictionary object


I am agree with Subbu...
@Meenu we use optional in front of statement if we wanted
to execute the statement at some criteria..we never use
Optional keyword while passing arguments to function...n I
think narendras question is related to function...

hey guys let me know if I am wrong with valid solution and
please do post if u know any other way..


Thanks in Advance..

Ramchandra
9699851282

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is vmodel?advantages and disadvantages of vmodel?

1607


How to build scripts that access data from external sources?

1590


What is the virtual object?

631


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

572


Does any one worked on JIL Emulator , Testing with QTP(automation). Trail Version of QTP is not identifying the child objects of JIL emulator, Can any one help me out ,

1374






Where to use function or action?

661


Explain how you can find the absolute value of the number in qtp?

635


How many types of Automation frameworks are there in UFT? Describe them.

548


How to check which add-ins are associated with a test in qtp?

573


How do you synchronization point through DP?

584


explain abt dyanamic changing object with example?

1891


How many lines of code in each script of QTP?

4024


Explain the features and benefits of quick test pro(qtp)?

506


What is different command used in command Prompt while using QTP?

1735


Have you faced any problems with object repository?

583