At long last this is now a real world test case with assertions and GUI creation/initialisation in the application under test (AUT).
- Start of test suite execution
- In the setup() method a sample file is loaded by the application (will be closed in teardown() method afterwards): note that the GUI is faily complex with four 3D rendering windows among other things
- After the CppUnit setup() method the actual test case begins by looking up the menu item that is triggering the CAD file import
- The modal CAD file import dialog pops up
- First temporary interactivity (like the subsequent ones this mainly serves the purpose of easier demonstration)
- Name of CAD file to import is entered
- Second temporary interactivity
- Click on 'Ok' button is simulated
- CAD file import is therefore executed and ends up with a new green hip implant in the 3D views, as well as in the dataset browser's tree on the bottom left (Note: the architecture and design of the application allow to ignore multithreading or completion event notification issues)
- Third temporary interactivity
- Finally the successful import is checked/asserted
- Test suite completes successfully, again: awesome :-)