Desktop automation has always been dependent upon licensed tools like UFT, Coded-UI, etc. Only a handful of options are available when we look at opensource/freeware alternatives. For all those who are looking for a free option to automate desktop applications, Testmate can be of imminent help. Testmate is a VBScript based tool that simplifies the
Category: UI Automation
The below piece of code demonstrates the usage of advance methods for UI Automation. It invokes the sample application which is provided with the tool. This code also uses object repository which is attached in the post. Setup: Copy the below VBScript code in a text file with extension .jts In the same folder as
The code below demonstrates the usage of SetRoot method for UI automation. When a root is set, the Testmate engine accepts the newly set object as parent instead of the desktop. By doing this, the performance of the scripts can be improved as it reduces the time of object identification. 1 2 3 4 5
Below is the sample script for automating the calculator application on Windows 10. The script launches the calculator and clicks on 2, 3 and 4 number buttons. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 'Describe the object properties oWindow = "Window,Name::Calculator" oTwo = "Window,Name::Calculator>==>Button,Name::Two"