How to simulate click on button when testing Solution?

Hi all,

I’m trying to write some better tests for one of my Servoy applications.
Let’s say I have a record with a delete button on it.

I can easily write a script which calls the script attached to the onAction of the button, problems begin if there are getMethodTriggerFormName() or similar functions used in the scripts I’m testing… the TriggerFormName is the form where I triggered my test script, not the script which I’m testing.

What I really want to do is:

forms.someformname.elements.delete_button.onAction();

This does not work.

Is there any other way of writing this?

I would like to know that too, for the analyzer :)

I think this is virtually impossible unless you test a complete scenario that really triggers a form or an element.

Maybe this will become possible within Servoy 4.0 since it looks like there is going to be more control…

Or I am completely wrong…