We're here to help
The Test Builder is confusing when a setup test case runs before my test
Why are setup test cases helpful?
They save you time! Setup test cases are basically like mini test templates that you can use over and over again. While you likely create and manage many test cases that cover many different scenarios, you may find that portions of those tests are built similarly.
For example, if you need to create 20 tests related to creating a new opportunity in Salesforce, you can create a setup test case that maps out the first few steps of that scenario. Then, you can build one setup test case and quickly insert it before building out those tests.
How do I overcome the visibility issue in Test Builder?
When running a setup test case and associated normal test cases in the Test Builder, the normal test case steps are not visible. We are aware of this issue and are planning to update the system to make the setup test case and normal test case steps visible.
In the meantime, you can view all of the setup and normal test case steps in the Test Builder by clicking the Resume button after the setup test case completes running. You can also view setup and normal test cases in the test runner.