Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to make arguments optional in a function?




231
views
asked marvit August 23, 2014 01:16 AM  

How to make arguments optional in a function?


           

1 Answers



 
answered By Dharma   0  
Suppose there is a login window in the user name we can type any thing but while running its giving some error we can avoid that error actually so, we can make that tsl as an optional so that if an error occurs it continues but not stop

Example
Optional.Dialog("Login").WinEdit("Name:").Set "ssss"
these line make an optional now 
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert