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
what is vmodel?advantages and disadvantages of vmodel?
How to build scripts that access data from external sources?
What is the virtual object?
Explain how to use QTP to check broken links on a page?
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 ,
Where to use function or action?
Explain how you can find the absolute value of the number in qtp?
How many types of Automation frameworks are there in UFT? Describe them.
How to check which add-ins are associated with a test in qtp?
How do you synchronization point through DP?
explain abt dyanamic changing object with example?
How many lines of code in each script of QTP?
Explain the features and benefits of quick test pro(qtp)?
What is different command used in command Prompt while using QTP?
Have you faced any problems with object repository?