Forum Discussion

mgroen2's avatar
mgroen2
Super Contributor
9 years ago

Framework to handle flexible UI in webapps

I want to test all controls on a application with is on a webportal / website. These controls can be of different type (button, entry field). Because our application is very agile all controls can differ after each release (we have release every day).

 

I want TestComplete to be acting as a framework so that when tests are run, it does an inventory on the application (inventory which controls are available), after the inventory is done perform some basic validations on them (click on button, enter text).

 

How can such a dynamic approach (changing of the controls on each release) be best implemented in a framework in TestComplete?

 

 

1 Reply

  • baxatob's avatar
    baxatob
    Community Hero

    Hi,

     

    What about the FindAll() method?
    You can collect an arrays of all required elements: buttons, textboxes etc, and then perform some actions with those of them, which are enabled or visible, or something else.