From the course: Learning Selenium

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Test suite organization

Test suite organization - Selenium Tutorial

From the course: Learning Selenium

Start my 1-month free trial

Test suite organization

- [Instructor] Test organization is important, as a Selenium test suite scales over time. No one wants to end up with a bunch of spaghetti code tests that are difficult to maintain. The goal is for anyone unfamiliar to the test suite to be able to see where the tests live, what they cover, and how to run them. There are a few best practices I follow to keep tests well-organized. First, make sure each class focuses on just one area of the application. For example, the test we have written is in a class called Sign Up. That means that other tests added in this class will only be related to Sign Up. Later, it could be a good idea to have classes for logging in or creating blog posts. This is beneficial because it allows for easy navigation and the ability to find specific tests quickly. It should also help to keep test classes shorter and more concise. Second, consider taking organization a step further by grouping tests into sub-suites based on feature. When a test suite has a large…

Contents