| Recipe 25 | Drive a Windows App Using White |
Problem
You want to drive a Windows application through its user interface. You have a battery of integration-level tests that bypass the GUI (I hope!) but also want a quick smoke test to exercise the entire program on your continuous integration server whenever someone makes a change.
Ingredients
-
The White library for GUI testing[159]
-
UIA Verify for exploring the structure of your GUI[160]
-
The setup and code from Recipe 24, Test .NET Code with SpecFlow, including the following:
-
Microsoft Visual Studio Professional
-
SpecFlow
-
SpecRun
-
Solution
In Recipe 24, Test .NET Code with SpecFlow, we used the SpecFlow test framework to write step definitions in C# and drive .NET code. By itself, SpecFlow ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access