{'fraction_non_alphanumeric': 0.02073365231259968, 'fraction_numerical': 0.0, 'mean_word_length': 5.275, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Test-driven development for graphical UIs: A multi-platform toolset

Test-driven development (TDD) is the practice of creating automated unit tests that exercise planned software functionality, before writing the software itself. TDD leads to higher quality software by encouraging developers to analyze individual units of behavior before coding and by allowing easy detection of problems introduced by software change. However, few tools effectively support TDD for graphical user interfaces. Those that do are platform-specific and require developers to express all tests as executable code for the target platform. This paper describes UIT (User Interface Tester), a toolset designed to support TDD for interactive applications. UIT addresses the weaknesses of existing solutions by using human-readable declarative test scripts and by generating skeleton GUIs from test scripts so that tests can be created first. It also supports driving GUIs that target different platforms. We present details of the scripting language, an overview of the UIT architecture with a focus on its multi-platform capabilities, and a discussion of current status and future plans. We believe that as UIT matures, it can assist developers in reaping the benefits of TDD.