Chapter 27
Descriptive Programming
Designing test scripts by explicitly defining object properties within the test script is called Descriptive Programming (DP). In DP code, object repository is not used, which means doing away with all the advantages associated with the Object Repository (OR) mechanism. This chapter examines the situations in which the advantage of object repository is outweighed by the flexibility that descriptive programming offers. One example where DP becomes necessary is clicking on the first ‘Transaction Id’ link of the WebTable shown in Fig. 27.1. The value of transaction id keeps on changing as more tickets are booked. This makes the link object a dynamic one. Here, the object repository method of automation will fail ...
Get Agile Automation and Unified Funtional Testing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.