Skip to Content
3
Jul 11, 2019 at 10:04 PM

How to unit test ALV based GUI components

574 Views

Hi Community,

i want to add unit tests to my GUI components (most ALV based) but i do not have any clue how to.

Basic structure of all classes which are responsible for (ALV) GUI handling

* generate ALV (public) -> Build ALV and display
* refresh ALV (protected / event) -> refresh ALV if surrounding GUI component notifies via event
* handle_click (private) -> handle component specific events like button clicks etc.

Are there any suggestion to unit test such objects. Code to cover is mostly within private methods for component specific events.

Thx Sebastian