Thursday, December 30, 2010

Automation Testing v/s Manual Testing Guidelines:

I met with my team’s automation experts a few weeks back to get their input on when to automate and when to manually test. The general rule of thumb has always been to use common sense. If you’re only going to run the test one or two times or the test is really expensive to automation, it is most likely a manual test. But then again, what good is saying “use common sense” when you need to come up with deterministic set of guidelines on how and when to automate?
Pros of Automation
• If you have to run a set of tests repeatedly, automation is a huge win for you
• It gives you the ability to run automation against code that frequently changes to catch regressions in a timely manner
• It gives you the ability to run automation in mainstream scenarios to catch regressions in a timely manner (see What is a Nightly)
• Aids in testing a large test matrix (different languages on different OS platforms). Automated tests can be run at the same time on different machines, whereas the manual tests would have to be run sequentially.
Cons of Automation
• It costs more to automate. Writing the test cases and writing or configuring the automate framework you’re using costs more initially than running the test manually.
• Can’t automate visual references, for example, if you can’t tell the font colour via code or the automation tool, it is a manual test.
Pros of Manual
• If the test case only runs twice a coding milestone, it most likely should be a manual test. Less cost than automating it.
• It allows the tester to perform more ad-hoc (random testing). In my experiences, more bugs are found via ad-hoc than via automation. And, the more time a tester spends playing with the feature, the greater the odds of finding real user bugs.
Cons of Manual
• Running tests manually can be very time consuming
• Each time there is a new build, the tester must rerun all required tests - which after a while would become very mundane and tiresome.
Other deciding factors:
• What you automate depends on the tools you use. If the tools have any limitations, those tests are manual.
• Is the return on investment worth automating? Is what you get out of automation worth the cost of setting up and supporting the test cases, the automation framework, and the system that runs the test cases?

1 comment:

  1. شركة تنظيف مجالس بالدمام
    شركة دهانات بالدمام شركة دهانات بالدمام
    شركة تنظيف خزانات بالدمام شركة تنظيف خزانات بالدمام

    ___
    شركة تنظيف سجاد بمكة شركة تنظيف سجاد بمكة
    شركة تنظيف منازل بالاحساء شركة تنظيف منازل بالاحساء
    شركة مكافحة حشرات بالاحساء شركة مكافحة حشرات بالاحساء
    شركة تنظيف بالاحساء شركة تنظيف بالاحساء
    شركة تنظيف مجالس بالاحساء شركة تنظيف مجالس بالاحساء
    شركة تنظيف كنب بالاحساء شركة تنظيف كنب بالاحساء
    شركة تنظيف منازل بمكة شركة تنظيف منازل بمكة

    ReplyDelete