Explain Types of Descriptive Programming?

Answer

You can use Descriptive programming in two ways

1) Static

2) Dynamic

In Static Method , for object identification  you specify an objects property in the following format

property:=values,

This format is called property value pair and is enclosed in inverted commas>

If your object uses multiple descriptions for identification, you can specify those using commas>

So in our case the description for Agent Name becomes

"nativeclass:=Edit", "attached text:=Agent Name:"

The second method of doing the same action is using Dynamic Descriptive programming

In case your script uses the descriptive programming object candidate multiple times, it will be very tiresome to specify all the property value pairs for each statement

In such cases you can make use of Description Class provided by QTP Syntax for creating an description object is

Set MyDescription = Description.Create();
MyDescription("property").Value = "property-value";

This is the Dynamic Method

All qtp Questions

Ask your interview questions on qtp

Write Your comment or Questions if you want the answers on qtp from qtp Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---