OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tag message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Thread: TA modeling - RE: [tag] TA Model still weak on tests of structure?


A couple of comments on the notion of "Structural vs. behavioral" tests:

1. If we can put a general definition on these, and if it happens that
each one of these two categories presents different challenges for TA
writing, it may be worth some mention in our TA guide.  It is an
intuitive classification even for those not UML-literate.

- challenge: not always clear which category a TA should fall into:
consider a requirement R1 on a message header structure (either a field
must be conform to a format, or the header itself be schema-valid).
Another spec requirement R2 says this message header is expected to be
produced in response to some operation on the message handler. 
Two options here:
(a) TA for R1: the IUT is the header document --> a structural test.
TA for R2: the IUT is the message handler --> a behavior test, but that
uses TA-for-R1 as pre-requisite (must be satisfied for a "pass" outcome)
(b) TA for R1+R2: the IUT is the message handler --> a behavior test
(header structure test is just part of describing the expected behavior:
to send out a well-formed message header)


2. So far we have a candidate TA anatomy (for non-prose Tas) like:

- Pre-condition
- Test trigger
- Test effect
- Post-condition (maybe)

It seems to me that the notion of test trigger vs test effect is more
appropriate for "behavioral"  tests where both "trigger"  and "effect"
refer to specific events that are clearly serialized over time (in form
of action on test harness, or of behavior of the IUT).

But for "structural"  tests like validating a doc, I feel the
distinction is somewhat contrived. There might be a single event (e.g.
do the doc validation against rule/schema/...) and no "effect" expected
in response, besides the result of this validation.

How about using instead (for both "structural"  and "behavioral" Tas):

- [Pre-condition]
- Test Operation: e.g. " validate the doc against rule/schema/..."
(covers the entire test operation and possible steps/events if any)
- Test Outcome: "fail" if..., "pass" if... (only focus on what are the
conditions for "pass", "fail", refering to observed events/output of
Test Operation)
- [Post-condition]

Other benefit:
- even in case of a "prose" TA where the prose is just a pointer to the
spec requirement, we could require the "Test Outcome" to be there (or at
least a generic one shared by many Tas of the same kind - see option (b)
in my email 9/21: "the test outcome is PASS if the required behavior is
observed, FAIL otherwise.")

-Jacques




-----Original Message-----
From: Dave Pawson [mailto:dave.pawson@gmail.com] 
Sent: Monday, September 24, 2007 11:55 PM
To: tag@lists.oasis-open.org
Subject: Re: [tag] TA Model still weak on tests of structure?

On 24/09/2007, stephen.green@systml.co.uk <stephen.green@systml.co.uk>
wrote:

>what if something about the item's structure is being  tested? For 
>example, what if the IUT is a serial number or a  universally unique 
>identifier or the like and the test is that  it's format conforms to a 
>particular pattern?

Data values internal to a test?

> I found that there is a need to equally support both structures and 
> behaviours. In UML structures come under 'Foundations' and dynamic 
> aspects under 'Behaviours'. I propose we add something for a 
> structural aspect to be tested. It could be anything from schema to 
> class, property to datatype.


I.e. it is too general to be clearly defined?

Out of scope IMHO.

regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]