A typical pattern is the MVP pattern. Testing will be performed against the mocking form.
I also experimented with mock input abstractions and showed forms during testing. It's easy enough to fill in the values ββon the form until the pop-ups work.
Ultimately, factoring code per unit of measure can be the most appropriate way, and simply using some UI testing infrastructure for the user interface.
source share