How it works...
Most of the code we wrote is relatively straightforward. The interesting part is how the system discovers the tests and executes them.
The first part was that we referenced ApplicationFramework and TestEssentials when we created the project. The discovery works by looking for a class in the current project that extends SysTestCase and for methods that have the SysTestMethod attribute. The test method must be public, return void, and have no parameters. They should start with (or at least contain) the word test, and reference the method in the class we are testing.
Finally, what about the data we created? The test framework will automatically tear down any data we create during the testing session. This occurs between tests, ...
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