Raghavan Muthu wrote:2.What about the scope of automated workflow here?
Not quite sure what you refer to by the scope, but if you're curious about the possibilities for automated workflow, they're pretty good and getting better. JsTestDriver is a test runner that can automate unit tests with several testing frameworks (its default testing framework, QUnit, YUI Test and Jasmine currently) and works well from the command line, Eclipse and Idea as well as CI servers such as Hudson.
Raghavan Muthu wrote:3. What exactly is the term test stub meant here?
Raghavan Muthu wrote:4. By what means QA and testers would get benefitted out of these ? I am much interested in this aspect.
Well, unit testing and TDD is first and foremost a developer activity, but the benefit for QA and testers would be e.g. reduced number of defects.
Test stub is pretty interesting! It is something like Mock Objects I guess. Is nt it?
Joined: Oct 03, 2010
Test stubs are much like mocks in that they are fake, but unlike mocks, stubs aren't preprogrammed with expectations. So you use state verification as usual in tests that use stubs (either on the stubs or other objects). Martin Fowler has a great writeup on the difference: http://martinfowler.com/articles/mocksArentStubs.html