Invoke a shape event

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
A.Demkovic
Posts:7
Joined: Fri Sep 06, 2019 3:36 pm

Invoke a shape event

Post by A.Demkovic »

Hallo everyone,

I am investigating if there might be a way to raise a shape event or invoke shape action.
Example: A button event Clicked <-- can this be raised from an another script?

There is of course an invokeMethod call which, as far as I know, can only invoke a function defined within a panel/shape, but not a predefined event.

The initial reason for this request is a design of a kind of automated testing framework which will then systematically go through certain panel hierarchy and perform user actions - so, if someone knows a better, more robust, or already implemented similar framework, I look forward to investigate further (btw. as far as I know, WOA testframework is basically related to unittesting, rather then automated testing of the app functionality overall?)

Thank you all for some good tips in advance!

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: Invoke a shape event

Post by adaneau »

Hi,

For automatized UI testing you can use Squish.

https://www.froglogic.com/squish/

Best regards
Alexandre

A.Demkovic
Posts:7
Joined: Fri Sep 06, 2019 3:36 pm

Re: Invoke a shape event

Post by A.Demkovic »

Thanks Alexandre.
What I am looking for is more an incorporated solution where tests would also have to check model as well as some core processing results.
Squish is indeed a good tool, but only GUI related.

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Invoke a shape event

Post by gschijndel »

Currently there are the functions 'sendMouseEvent' and 'sendKey', which could be used to perform the simulated user actions in automatic GUI tests. Going systematically thru panels is also possible.
The test framework is not limited to unit tests, but could also be used for other non-GUI automatic tests.

But perhaps the 3.18 version will provide more for automatic GUI tests without needing external tools.

A.Demkovic
Posts:7
Joined: Fri Sep 06, 2019 3:36 pm

Re: Invoke a shape event

Post by A.Demkovic »

Thanks Schijndel.
We still use 3.16 and those functions are most likely from 3.17.
But, that gave me an idea to try with setInputFocus and sendKeyClick, and so far it works fine.
In case I can invoke all the needed events by sending a key or a key combination, it should work.

5 posts • Page 1 of 1