09-08-2009, 02:26 PM
Hi,
Static Descriptive programming: This is quick and short but it may cause the problem when your scripts are maturing at a level that you might require same object in different screen of the same test script......This syntax has the benefit of being shot and quick, but may cause problems if we’ll use the object again somewhere else. In this case we’ll have to rewrite the all the description strings, making the code less readable, and harder to maintain (i.e., if one of the properties were to change, we’ll be forced to make several repairs in different places throughout the code).
Dynamic Descriptive Programming: The main reason I guess this is used is for sometime an object will appear under a different parent each time (e.g. – a pop-up which appears under the initiating sub-window). In some applications, the only way to work with such objects is with DP. Apart from that there are some dynamic objects like list box for which content keeps on changing so at that moment this dynamic descriptive will be more efficient and flexible enough.
one more advantage is According to this, instead of working with a single object at a time, we can gather all the objects in an array which answer to our identification properties, and work with them as a collection, and resize the array whenever we need it.
Hope this clears your query.
Static Descriptive programming: This is quick and short but it may cause the problem when your scripts are maturing at a level that you might require same object in different screen of the same test script......This syntax has the benefit of being shot and quick, but may cause problems if we’ll use the object again somewhere else. In this case we’ll have to rewrite the all the description strings, making the code less readable, and harder to maintain (i.e., if one of the properties were to change, we’ll be forced to make several repairs in different places throughout the code).
Dynamic Descriptive Programming: The main reason I guess this is used is for sometime an object will appear under a different parent each time (e.g. – a pop-up which appears under the initiating sub-window). In some applications, the only way to work with such objects is with DP. Apart from that there are some dynamic objects like list box for which content keeps on changing so at that moment this dynamic descriptive will be more efficient and flexible enough.
one more advantage is According to this, instead of working with a single object at a time, we can gather all the objects in an array which answer to our identification properties, and work with them as a collection, and resize the array whenever we need it.
Hope this clears your query.