W3C home > Mailing lists > Public > www-qa@w3.org > May 2002

RE: QA Glossary

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Fri, 24 May 2002 13:26:15 -0600
Message-ID: <4D62A7266F41D611B92C00E018C1C19C0DD5B5@thor.aeathtl.com>
To: "'www-qa@w3.org'" <www-qa@w3.org>
David Marston wrote:
A test document should embody one test case, and that 
ought to be an atomic test case, or at least molecular 
if atomic is not possible. I could digress about
real-world considerations for the test documents, but I won't (for now).

I'll go ahead.  I'd be extremely careful about how this is worded so that
you don't discourage tests that attempt to reach one particular state and
then make multiple assertions on query operations on that state.

For example, a text node in the DOM should have a nodeValue of 3, a nodeName
of "#text" and attributes should be null.  If you equate "atomic test" with
"only one assertion" and you strongly encourage atomic tests, then you would
end up with 3 times the number of tests needed than if you allowed multiple
queries and assertions after you reached the state under test.

A test should try to get a system to one particular state, but it is only
beneficial from a code maintenance and coverage perspective to make as many
observations and assertions at that final state as possible.
Received on Friday, 24 May 2002 15:23:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:20 UTC