May 2019
Intermediate to advanced
546 pages
12h 41m
English
After the creation of your test data, you will describe your test scenario with a unit test. A unit test is a regular piece of code that executes a scenario, such as inserting a record or a user that pushes a button. In the upcoming chapters, we will see lots of typical scenarios. In our example, we will update the billing address of the account.
This part of your test is always included between the test commands. The Test.startTest() method is the point where your test actually starts. You can only call this method once per unit test. Any code that executes between the Test.startTest() and Test.stopTest() methods is assigned to a new set of governor limits.
The Test.stopTest() method is the point where your ...
Read now
Unlock full access