LOrban
11 years agoOccasional Contributor
Best practices for Scripting
Hi All, Being new with TC scripting technologies (however long time programmer), I’m trying to clarify the best practice to test web applications with JScripts. Consequently I woul...
- 11 years agoHi László, using a combination of JScript Constructors and the Test Complete Page Object, it is possible to approximate the Selenium Page Object pattern.
This provides the benefits of:
Single point of contact to Page elements, if an element on a page changes, only a single point in the code needs changing to reflect the change.
Abstracting Page and Element interaction away from Test Scripts, Test Scripts need only know how to use a Page Object, the detail of addressing a Page element is hidden away making simplifying Test Scripts.
Promotes re-usability
For mine, this is the minimum standard to adhere to when writing automated Test Scripts for Browser applications. In fact, I use similar patterns for testing Windows forms applications.
Regards,
Phil Baird