O'Reilly logo

Agile Automation and Unified Funtional Testing by Rajeev Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required