Automation - Do's & Don'ts

[Me]:- Guruji, On an average a majority of the cases in a given project are automated So what are the general best practices for the team?

[Guruji]:- Proper thought should be given to general practices involved with automation. Automation in the current infrastructure involves using a test case manager, a test harness, logging infrastructure and lab hardware. Good automation requires the above components be as robust as possible. It also requires test code developers to follow the best practices outlined here.

Don’ts:

·      Do not develop tests specific to the hardware.

·         Do not use custom harnesses unless approved by your lead.

·         Tests should not require a reboot of the machine.

·         Avoid restarting services.

·         Avoid sleep statements in test code.

·         Test Cases should not result in false failures or passes.

·         Do not implement the harness’s functionality in your test code.

·         No hard coded dependency on external resources.

Do’s:

·         Validate that the tests run on a typical lab machine.

·         Use the templates provided by the operations team for test development.

·         Develop with the harness provided by the operations team.

·         Use the layered approach. Driver and functionality components.

·         Cases should be self verifiable.

·         Cases should behave deterministically.

·         Cases should use setup and cleanup functions.

·         Random data generation should generate predictable/same values for the same seed.

·         Ensure that Setup function can be called consecutively without any side effects.

·         Tests should run on all supported hardware.

·         Tests should always return a result

author

Vinay Jagtap

A hard core Technocrat with over a decade of extensive experience in heading complex test projects coupled with real time experience of project management and thought leadership. Extensive experience in Performance, Security and Automation Testing and development of automation frameworks and ability to setup and execute Global service centers and Center of Excellences for testing.

Get Free Email Updates to your Inbox!

www.CodeNirvana.in

Powered by Blogger.

Translate

Total Pageviews

Copyright © T R I A G E D T E S T E R