The setUp() Method

What does setUp() do in a test case?

The setUp() function makes test code more efficient and ensures consistency across many tests.

How can you use setUp() to make your testing code more efficient?

Before each test, place initial test requirements in the setUp() method to run automatically.