Tutorials
From the first test to a suite you can maintain, one lesson at a time. Each lesson builds on the one before it.
Every lesson adds to the same project and tests the practice pages, so everything you write runs as it is. The project at the end of each lesson is a tag in VAF-Tutorial on GitHub, if you want to compare or start from the middle. You need Visual Studio 2026 (or the .NET 10 SDK) and Google Chrome.
Sign in to keep track of your progress.
Lesson 1 · about 15 minutes
Your first test
Install Visual Studio, create a test project, add VAF and run a first test that opens a practice page and checks its title.
Start →
Lesson 2 · about 20 minutes
Map your first page
Describe the sign-up form as page objects — the app, its sections and their elements — and write a test that fills it in and checks what the server received.
Start →
Lesson 3 · about 25 minutes
Good and bad locators
Map one screen twice, with stable and with fragile locators, and see which of them survive a redesign.
Start →
Lesson 4 · about 30 minutes
More controls
Drop-down lists, check boxes, radio buttons, a date picker and a file upload, and the checks that go with them.
Start →
Lesson 5 · about 30 minutes
Shared steps and a test base
Move the chains out of the tests into steps named after what the user does, and the browser into a test base.
Start →
Lesson 6 · about 25 minutes
Waiting and reports
Let VAF wait for a spinner and for late content, and get an HTML report and a screenshot when a test fails.
Start →