2
I am implementing Dunit in the company and my question is the following: there is some way to click the button of a "Showmessage", of a form I can, but I would like when the showmessage window appeared, I could schedule the click of this button automatically, with no user intervention. Does anyone know if it is possible to do it or has any different idea.
Thanks in advance for your cooperation.
leandro passion
What if instead of showmessage you create a form in the showmessage template?
– Guilherme Lima
You’re trying to use Dunit to test user interaction routines and it’s not meant to be. The xUnit concept and architecture is to test business code, routines with inputs (parameters, for example) that produce certain outputs (function return, data persistence, entity status change...). If you need to simulate user interaction because you just want to test the graphical interface, you need to find another tool. If what you want to test is the business code attached to this form, you first need to uncouple the code and then the Dunit maybe serve.
– Caffé