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

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

1465


How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?

1504


What is the parameterization?

577


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1899


what is error and fault in terms of software quality?

1505






What are the Disadvantages of shared object repository?

568


If I change the property value at runtime is it effect is object repository?

602


Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?

2141


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.

2891


what is the difference between IE & Netscape in web testing on a log in page

1788


what are the utilities and drivers

1840


How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one

1598


What is the basic concept of quicktest professional (qtp)?

577


What is action?

572


Can we record using all the modes in a single script? Explanation with example is appreciated

1384