Example UI testing project. The whole project is heavily documented to teach you how to write UI tests with the UI Testing Toolbox. It guides you through this process just like the Lombiq Training Demo for Orchard Core teaches Orchard Core and Orchard 1 development.
You can find further UI testing examples in the test project of Open-Source Orchard Core Extensions.
For general details about and on using the Toolbox see the root Readme.
- Be sure to read the root Readme first to understand how the UI Testing Toolbox works and how you can use it with an Orchard Core app.
- The web app under test also needs a bit of configuration. For an example of this, check out the
Program
class of Lombiq's Open-Source Orchard Core Extensions. This project assumes it's running in that solution, so it depends onLombiq.OSOCE.Web
to be present at the correct path to be able to build it. - Note that the project includes an xunit.runner.json file. This is xUnit's configuration file. You don't necessarily need to include one if you're OK with the default one.
- Now that we have the basics out of the way start the tutorial in the GlobalSuppressions.cs file.
- UI Testing Toolbox basics
- Basic Orchard features tests
- E-mail tests
- Accessibility tests
- Using SQL Server
- Using Azure Blob Storage
- Error handling
- Monkey tests
- Database snapshot tests
- Multi-browser tests
- Basic visual verification tests
- Testing in tenants
- Interactive mode
- Security scanning
- Testing remote apps
- Testing time-dependent functionality
- Test headless Orchard Core with a frontend subprocess
- Executing tests written in JavaScript
Follow the practices of the Lombiq Training Demo for Orchard Core.