How to make arguments optional in a function?
Answers were Sorted based on User's Feedback
Answer / ashwin
Ramya you are wrong.
We can make arguments optional by writing it as two square
brackets [].
ex: Function Test(ival,sval,[<optional>])
'logic here
end function
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ramyab.mca@gmail.com
Hai.....
this is not possible as default VBS doesn't support this.
Instead you can pass a blank scring and have a default
value if arguments r not required.
K,Byeee...
Thanks & Regards
B.Ramyasri
Is This Answer Correct ? | 2 Yes | 2 No |
How to export data in excelsheet to qtp without using datatable.
How cookies can be tested in QTP?
How to retrive data from a data table which is in 3rd row,4th column and place it in main script..like retrive name,date from data table..write script for this.
11 Answers Thatavarti Technologies,
Hi, I am learning QTP. can someone please tell me a site from where i can learn QTP scripting Thanks in advance
Can we do Load Teting with QTP?
normally by going through the object properties in object spy we write descriptive programming(correct me if i am wrong). But how or from where can we get the object properties in the object spy?plzzzzzz do answer
Which scripting language used by quicktest professional (qtp)?
Distinguish between manual testing and automation testing
Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?
What is fragmentation and paging?
How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.
whaht is the difference between CLASS & OBJECT?