It's important when writing automated tests to remember that the code you write should be up to production standards, meaning any conventions that you have in place should be adhered to and that it should follow good design patterns. Too many people often say why does it have to be as good as production code, it's "Only" a test, so long as it passes then that's fine... To answer this we need to look at why we want our tests to be written in such a structured and efficient manner: - Maintainability - by making the test code structured and efficient, it becomes far easier to maintain and in doing so changes in the future can happen quickly as the test isn't linked to anything that it shouldn't be and it's easy to understand for a new set of eyes. - Durability - Again by making the tests structured they should be resistant to changes, if you change a variable name for instance then it shouldn't effect the unit test unless it absolutely has to....
Documenting my thoughts on life in the world of Testing
If you don't build your automation logs well - this will become:
ReplyDelete"I have to spend 3 days investigating a failed automated test, rather than spending a whole day running manual tests."
Drill-down logs infrastructure is highly required, yet, hardly any common tools for that.
@halperinko - Kobi Halperin
We've set up our automated tests to give us as much information as possible when they fail, a screenshot is captured and the assertions all have pretty descriptive error messages. When debugging we'll see the stack trace as much as possible, so it's not all doom and gloom.
DeleteAll too often however, tests don't have informative errors or it's difficult to find out why a test failed, then you'll get your 3 days investigating!!!
BitTorrent enables folks to share substantial information with one another using a peer-to-peer network, which indicates they share portions of the file with one another, rather then downloading the whole file from a central site (such as iTunes).
ReplyDeleteMacGIC - Get all Mac Tools at One Place!
Thank you for sharing your article. Great efforts put it to find the list of articles which is very useful to know, Definitely will share the same to other forums.
ReplyDeleterunkeeper