What is descriptive programming in QTP?
相关问题
- move from QTP to selenium , can anyone help me to
- UFT 12.01 “.click” and “FireEvent” doesn't wor
- UFT-API: How to write the output of a select data
- How to reference the mail which triggered the outl
- RPA Vs Traditional Automation Tools
相关文章
- How to reference the mail which triggered the outl
- RPA Vs Traditional Automation Tools
- QTP vs Selenium - Compare [closed]
- Calling C# dll in vbscript
- QTP/UFT - Close all browsers except QC/ALM
- Insert node in xml document using c#
- How does UFT perform the Click method when using t
- Can I invoke QTP test suits automatically from Mav
Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click is not a Descriptive programming, it is bad practise. Parameters should be separated from code, so you change them in 1 place, Object Repository file in this case.
What is Descriptive programming - when you use Description object:
So idea is to use description to get collection and search for your element in that collection.
Writing descriptive level programming for the qtp
Descriptive programming is used in many scenarios like -> When QTP is not able to identify objects from properties value stored in Object Repository. -> When user do not want to use object repository or bypass it. -> When user wants to write a piece of code that can run on more than one website. For eg.when we want to print the name of all link on Google or yahoo, we can use same piece of code using common property value
It is used in two ways 1. Static Descriptive programming Here we use properties and values directly in test script to access an object.For eg. Browser("micClass:=.....").Page("micClass:=...").Link("micClass:=...")
Regards Dheeraj
Mindfire Solutions, India
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
Read More
Check out this extensive article about the topic
http://www.learnqtp.com/descriptive-programming-simplified/