Today’s Preview 1 brings to us a new test runner: UIARunner for testing Metro UI and Windows UI.
This version, even though not a release, already can run a script and display test results. The current version supports only test results, i.e., events generated by the Close-TMXTestResult cmdlet or closed automatically through the parameter [UIAutomation.Preferences]::EveryCmdletAsTestResult set to $true.
The figure below shows how it works:
The picture was taken when UIARunner was working on a performance test: it should calculate the results of expressions 1 + 1 and 2 + 2 a thousand times, and thousand times try to find the 10 button (it’s a flaw that Microsoft didn’t manage to find more space to put this useful button on the form).
To obtain such a visual report, you need no more than start the application with default settings, open a script through the File -> Open menu item (or by pressing Ctrl+O) and run the script by clicking on the menu item Script -> Run or by pressing F5.
The application is not smooth and cool for its first version. Nonetheless, it already can be used for gathering script results.
Speaking about future improvements, the features that are planned to implement are:
- supporting hierarchical reports based on test suites, test scenarios and test results and shown in a grouped list view
- probably, pausing the script
- maybe, some events or alerts on conditions like ‘too many failures’ or ‘global timeout interrupted the script’.