All the software development rules apply when writing automated tests. Here are some of the best practices that one can apply for tests.