Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - What is User defined function in QTP?




243
views
asked marvit August 18, 2014 11:59 PM  

What is User defined function in QTP?


           

1 Answers



 
answered By Dharma   0  
Here is the Example of User defined Function
Set obj_WebEdit = Description.Create()
obj_WebEdit ("Class Name").value = "WebEdit"
obj_WebEdit ("name").value= strWebEdit1
obj_WebEdit ("html tag").value="INPUT"
Browser(strBrow1).Page(strPage1).WebEdit(obj_WebEdit).Set strInValue1

1. You should convert the above script as a function.
2. Save the above script with .vbs extension
3. Attach the function in the File->Settings ->Resources
4. Then call the function where ever necessary.
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