Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - What is the descriptive programming when it is useful? & when to use this ?




270
views
asked marvit August 14, 2014 04:41 AM  

What is the descriptive programming when it is useful? & when to use this ?


           

1 Answers



 
answered By Dharma   0  
Creating a test without using the object repository is known as descriptive programming since you describe the objects as part of the script.

Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click
Note the := in the test objects' names, this is not a smiley it means that the property title has value Google (as a regular expression).

You can also use the Description object via Description.Create.

Descriptive programming is used when you want to perform an operation on an object that is not present in the object repository.
Setting the value of a Text Box
Browser(“Browser”).Page(“Page”).WebEdit(“Name:=textbox_name”,”html tag:=INPUT”).set “My New value”

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