softwaresaved / distance-consultancy

Open call collaboration with Distance project, University of St. Andrews. Reports and code. Contact: @mikej888
http://www.software.ac.uk/who-do-we-work/distance
3 stars 2 forks source link

Prototype automated GUI tests #12

Closed mikej888 closed 9 years ago

mikej888 commented 9 years ago

dill:

we have testing for R components but nothing so far for Windows code. Do you know of a way in which we can test the Windows GUI? Len mentioned an “open source button clicker”?

mikej888 commented 9 years ago

I checked http://en.wikipedia.org/wiki/List_of_GUI_testing_tools but the only open source automation or test tools were:

There is also:

All other considerations aside, AutoHotKey is preferable to Sikuli as it seems less dependant upon the position and appearence of GUI elements than Sikuli.

As an intermediate phase to adopting automated GUI testing, documenting a series of manual protocols to work though, that cover the key functionalities of Distance, would be useful.

mikej888 commented 9 years ago

Wrote scripts for Distance for Windows using AutoHotKey v1.1.16.0 - see autohotkey/ directory. There are three scripts: an example that starts and stops Distance, an example that creates a new project, and an example that implements Example 1 in the Distance for Windows 6.2 user's guide, plus a configuration and a utilities script.

To summarise my experiences:

Advantages:

Disadvantages:

To summarise, I was impressed by how quickly one can write AutoHotKey scripts and they do support a rich set of commands. The key question for their adoption would be balancing the trade-off between: