Issue 001: Glossary missing
Proposal 1: add a glossary. added in draft 0.6
Resolution: Approved
Issue 002: Introduction needs be reworded
Proposal 1: (Tim Boland) see my proposed intro on mailing list.
Resolution: see Issue 003
Issue 003: Introduction needs be reworded
Proposal 1: Lynne R's rewording : see http://lists.oasis-open.org/archives/tag/200802/msg00005.html
Resolution: Approved
Issue 004: (Kevin L) Prose needs to replace bulleted lists http://lists.oasis-open.org/archives/tag/200802/msg00006.html
Proposal 1: As consensus matures for parts of document which use mainly lists, convert these lists to prose sentences
Resolution: Approved
Issue 005: (Kevin L) Lists need to be clearer in wiki version of text http://lists.oasis-open.org/archives/tag/200802/msg00006.html
Proposal 1: This is due to hurried conversion from document to wiki. Improve on this manually.
Resolution: Approved
Issue 006: (Kevin L/Lynne R) Coverage section needs to be removed http://lists.oasis-open.org/archives/tag/200801/msg00035.html http://lists.oasis-open.org/archives/tag/200802/msg00006.html
Proposal 1: Remove while it is decided how to replace text.
Resolution: Approved
Issue 007: (Schedule A, 6 Feb) There needs to be a summary of essential and optional TA components early in section 2
Proposal 1: DM to provide some text to follow shortly after Observation #1 so that summary of components is introduced after interested whetted by Observation #1
Resolution: Approved
Issue 008: (Lynne R) Having a section on Testability seems inconsistent with statement that not all assertions are necessarily testable
Proposal 1: Ed: Remove title 'Testability' (it does not apply to the whole section it heads). Proposal 2: Watch out for inconsistencies like this and firm up on consensuses.
Resolution: see i018
Issue 009: (Schedule A, 6 Feb) Section 3 should revisit basic components and explore corner cases then address optional components.
Proposal 1: Review start of Section 3 and possibly add some of the content from the Summary section
Resolution: approved
Issue 010: (Schedule A, 6 Feb) Section 3.2 is really about techniques, not components
Proposal 1: Change title of 3.2 from 'Optional Test Assertion Elements' to 'Optional Test Assertion Techniques'
Resolution: approved
Issue 011: (Schedule A, 6 Feb) Summary: Grouping section should be about Tags
Proposal 1: Change title and some of the wording for the Summary section on Grouping to cover Tags as components and update Grouping section in 3 to cover tagging as a technique
Resolution: approved
Issue 012: (Schedule A, 6 Feb) Summary: Sequence section should put emphasis on Dependencies
Proposal 1: Change title and some of the wording for the 3.2 section on Sequences to cover techniques for describing Dependencies (sequences in schemes as well as tags and prerequisites) and remove 'Sequences' from Summary altogether (since it is more a technique rather than a TA component)
Resolution: approved
Issue 013: (David M - http://lists.oasis-open.org/archives/tag-comment/200712/msg00002.html and Schedule A, 6 Feb) Summary: Should include Variables
Proposal 1: Add section on Variables in Summary and in Section 3.2
Resolution: approved
Issue 014: Need to add references and prior art
Proposal 1: (Stephen G) Start with Prior Art and References from front page of wiki
Resolution: TBD
Issue 015: Add a section on handling TA / Spec versions
Proposal 1: Paul R will craft and send it
Resolution: approved
Issue 016: Merge prerequisites and preconditions
Proposal 1: Ensure that it is clear that there are these two aspects - predicates / refs to TAs - and mention the use of 'precondition' term to sometimes refer to the first aspect. Any further consideration on logical combinations of these (i.e. a boolean expression AND/OR/NOT composing prerequisite elements) will be left to a more advanced section.
Resolution: approved
Issue 017: Optional Statement
Proposal 1: Ensure that it is clear that the meaning of optional statement is valid in TA
Resolution: TBD
Issue 018: Section 2.2 "Creating Test Assertions" is an insert that needs more work before adding it to the draft, currently overlaps with other doc material.
Proposal 1: Remove it for now, then consider how its material can be reintroduced on a piecemeal basis.
Resolution: approved
Issue 019: Introduction does not have as good a TA def as the one we have in Glossary: "A test assertion (TA) is a statement of behavior, action or condition that can be measured or tested. Each is an independent, testable statement of requirements in the specification(s)." I also think "testable statement of requirements" is a confusing expression that we have never discussed before.
Proposal 1: Keeping the definition informal for the intro part, I would:
(a) add a sentence on the "intent", (from Glossary)
(b) yet avoid using special expressions that we introduce later, like IUT.
(c) tone down the "independent, complete, testable expression" as we'll have in fact dependencies with pre-requisites.
The proposed update is: "A test assertion (TA) is a statement of behavior, action or condition that can be measured or tested, for evaluating adherence of an implementation item to some normative requirement in the specification. (a more complete definition is provided in ...)"
Issue 020: "sub-optimal (or subprime) predicates": Can we always assume that [TA predicate = true] means adherence to spec normative statement, and = false means non-adherence, as we state in the definition of "predicate"?
The issue is: in some cases, the "measurable, testable statement" (based on such predicate) cannot match exactly the spec requirement, but can only be a "partial" indicator, based on what we know about "testability" at thetime the TA is written.
Example #1: (from WS-I most recent profile)
Normative source: The signature element contains a key ref that ..., and either (a) the signature signs directly the (message) Body, or (b) signs another sig element with same key ref, that itself references the Body.
Target: a SOAP message Envelope that belongs to a secured RM sequence.
The problem with the requirement is that just by looking on messages over the wire, one can tell if D-Sig elements reference the Body, but one cannot tell if in the subcase (b), the SAME signature has been used for signing this chain of signatures...
Consequently, the predicate has been made weaker to make sure it is testable in the assumed black-box test environment (and also written for a negative test here):
TA predicate: (negative case) the sig element that signs the sequence Header, does not also reference the Body AND there is no other sig element that signs the body
Example #2: (from NIST)
Computer Graphics Metafile standard and TAs for examples:
Case (A)
Normative statement: Polyline. Parameters (nP). Description: A line is drawn from the first point in the parameter list to the second point, from the second point to the next point, ... and from the next-to-last point to the last point.
TA predicate: A polyline has at least 2 points
Note: the predicate is built as a logical conclusion, that the number of points in a polyline is at least 2. It is not a good indicator of fulfilment of the normative requirement, only of its violation.
Case (B)
Normative statement (i): Begin Segment. Description: This is the first element of a segment. All subsequent elements until the next End Segment will belong to this segment. Normative statement (ii): End Segment. Description: This is the last element of a segment.
TA predicate: Segments are delimited by Begin/End Segment elements.
Note: as you can see, this is also a logical conclusion (but an observable or testable one) from the statement(s). From such a predicate we can only infer the violation of the normative statement considered as specifying "segment", when a "false" outcome. Nothing from a "true" outcome .
Proposal 1: in the advanced section, add these cases. Introduce an optional TA part called "OutcomeInterpretation", that contains:
in Case #1 above:
true --> fulfillment [of requirement] = yes
false --> fulfillment = undetermined
in Case #2 above:
true --> fulfillment = undetermined
false --> fulfillment = no
If OutcomeInterpretation element is absent from the TA, the default meaning is:
true --> fulfillment = yes
false --> fulfillment = no
Proposal 2: make this interpretation of predicate outcome, just (optional) predicate attributes (no new TA part called "OutcomeInterpretation"):
in Case #1 above:
predicate.true = fulfillment
predicate.false = undetermined
in Case #2 above:
predicate.true = undetermined
predicate.false = violation
Default:
predicate.true = fulfillment
predicate.false = violation
For example, these could be optional attributes of a <predicate> element, in a mark-up.
Issue 021: See on tag-comment list, comment #1 from David Marston on draft 0.7: http://lists.oasis-open.org/archives/tag-comment/200803/msg00000.html
Proposal 1: see comment #1.
Resolution:
Issue 022: See on tag-comment list, comment #2 from David Marston on draft 0.7: http://lists.oasis-open.org/archives/tag-comment/200803/msg00000.html
In part 3.2, the example for variables is quite weak.
Proposal 1:
A better one that is easy to understand involves fuses. First, here is a TA that might be used in a dependency relationship:
- TA ID: Fuse-1
- Target: any fuse
- Predicate: the rating of the fuse, in amps, is clearly shown on its exterior.
- Statement in spec: Every conforming fuse MUST have its rating, in amps,
clearly shown on the exterior.)
The above gives the test lab a means to determine the value of the variable used in this assertion:
- TA ID: Fuse-2
- Prereq: Fuse-1
- Variable: X, the rating, in amps, of the fuse
- Target: any fuse
- Predicate: for a fuse of rating X, it will blow when given a load of 1.025X amps.
Clearly, the standards body for fuses (NFPA, I think) is not going to issue a TA specific to each and every possible rating.
Resolution:
Issue 023: See on tag-comment list, comment #3 from David Marston on draft 0.7: http://lists.oasis-open.org/archives/tag-comment/200803/msg00000.html
Proposal 1: see comment #3.
Resolution:
Issue 024: Section 3.1 needs more complete and practical guidelines about TAs for specifications that reference external specifications. In many cases, specifications are bound to other specifications. For example, a Web services specification that defines a new SOAP Header block (e.g. for security, reliability, addressing protocols...) implicitly or explicitly assumes that this header block is itself within a SOAP-compliant envelope (e.g. SOAP1.2). Using the current "prerequisite" references to other TAs is quite unpractical (a large number of TAs for the bound specification may need be referenced).
Proposal 1: COnsider different ways to write TAs for a specification A that refers to / depends on specification B, while avoiding inserting detailed test expressions for (B) inside the TA for (A):
(a) blanket statement that conformance to specification B at level N is required by the target for an entire group of TAs of specification A.
(b) make this general conformance requirement inside individual prerequisite items of each concerned TA for specification A (in case its not conveneient to group them as in (a)) . I.e. a new prerequisite value type beside "precondition" and "TA reference".
(c) when appropriate, use the conventional TA prerequisite mechanism: a TA from spec A may prereq a few other TAs for spec B. In that case make sure the "spec reference" part of the TA identifies the external specification.
In addition for (a) and (b) there may be a need to still use a "specification recognition" predicate in the prerequisite. Example "the Response message MUST contain a xyz:Receipt SOAP1.2 Header and an empty SOAP Body." As suggested above, the TA predicate should only focus on the presence of xyz:Receipt and no child element under soap:Body, and will not "test" the full SOAP1.2 compliance of the Envelope. This SOAP compliance must be assumed using one of the above approaches. But knowing that the Web platform is SOAP compliant, and verifying that the right SOAP namespace and version is used in the message, are two different things. It is advised for the above TA to also address this superficial SOAP namespace verification, in addition to expressing the full SOAP conformance prerequisite as advised above.
Similarly, for a requirement like: "the SOAP envelope in the Response MUST use the same SOAP version as the Request message" a TA does not need to address full conformance to either SOAP1.1 or SOAP 1.2. But it must be able to distinguish SOAP1.1 from SOAP 1.2, i.e. check the SOAP namespace.
Resolution:
Issue 025: Section 3.2 introduces Grouping. But as far as this guideline is concerned, we only provide one mechanism to support grouping: tags. Other ways to do grouping are either:
(a) implicit, based on "common values" for existing TA parts and not requiring any additional construct (e.g. based on target type). Here, I am not sure what we can say that does not fall into the obvious. (e.g. stating that grouping by targets, by prereqs "is useful" does not help much.)
(b) beyond the scope of this guideline, e.g. grouping may be implemented by higher level constructs like Conformance Profile / Level that directly refer to a set of TAs by their Ids.
So it is not like this guideline can cover much ground about grouping, besides the concrete mechanism of Tags. Also, tags are useful more generally for expressing "properties" of TAs, like which type of testing they will require. Such properties of course define groups, but that may not be their primary intent.
Proposal 1: Put the emphasis on the "tags" mechanism and its various usages, instead of "Grouping". Show that tags can define groups for various purposes, but also define properties of various kinds.
Resolution:
Issue 026: Section 3.2 introduces Classifications subsection. This section shoudl be more specific and concrete with 1 or 2 examples. The last couple of sentences are the most important as far as what is the impact of classification on TA writing (i.e. by establishing a classification, TAs are automatically "inherited"). This should be given more emphasis. Another major aspect of having different but related target types, are prerequisites. Rules need be established on what kinds of target classes we may find between a TA and its prerequisite TAs (e.g. superclass? subclass?). And what about "Composite" classes, e.g. a Target of class X is composed of target class Y + target class Z. What are the TA application rules? teh prerequisite rules?
Proposal 1: First, etsblish and illustrate the different class relationships for targets. There might be material to be reused from the classification methodology introduced in Voting Standardization doc: http://www.eac.gov/vvsg/part1, Chapter 2 (COnformance Clause) and 2.5 (Classes) Then, comment on what that means for (a) TA applicability, (b) TA prerequsites.
Resolution:
Issue 027: Grouping under Headers.
While there are advantages in, as a rule, associating all of the test assertion information immediately with the test assertion, there will be those who regard this as excessive repetition. Consider when the same test assertion component(s) is common to a large number of test assertions. Example: where all the test assertions associated with a given target or normative source (such as a schema or process definition) have the same prerequisites. In these cases it would be preferable to some to be able to associate the prerequisites and any other TA components with a set of TA_Ids or even perhaps another group such as "all test assertions with Target class 'xyz'". An extension or application of this might provide a structure for a conformance clause (which is a similar case).
Proposal 1: Component called a TA Group with a Header, say, and a set of TA_Ids and other range specification expression feature.
Resolution:
Issue 028: Negative prerequisite.
There is a case where TA#2 depends negatively on TA#1 such that NOT(TA#1) is a prerequisite for TA#2. It is unclear how a second TA reversing TA#1 called, say, TA#1b could both be a valid TA and be written such that TA#1b as a prerequisite for TA#2 is logically equivalent to a prerequisite NOT(TA#1). Instead it would seem that there is a requirement to make NOT(TA#1) the prerequisite of TA#2.
Proposal 1: Even more basic than compound, complex prerequisites is the need for negated prerequsites so include the ability to say NOT(TA...) is a prerequisite for a TA.
Resolution:
Issue 029: Negated outcome of TA for a given predicate.
Some specification normative sources are best quoted literally rather than derived, such as where the logic is detailed and complex. In such cases the logic might be negative such that a property or behavior is forbidden. To negate such a requirement to allow a TA to be true when the requirement is met would be awkward, forcing a derivation where a straight literal quote from or reference to the normative source would be ideal. There may be a danger that negating and deriving would result in unfamiliar or unclear logic or lose an element of the logic or risk dispute over the veracity of the derivation. In this case it would seem better to allow the negation of the requirement to be expressed as an extra component of the TA (perhaps with a default).
Proposal 1: Add something like 'outcome interpretation' as an optional component of a TA with suggestions for use.
(Proposed that this is a separate requirement to i028, though similar. A negated TA might not allow for a negated prerequisite since its 'outcome interpretation' would have to be negated too if it is to remain valid and this would prevent its suitability in the prerequisite - unless extra complexity were allowed to say that the prerequisite applies to the predicate and ignores the 'outcome interpretation'.)
Resolution:
Issue 030: Scope and Normative Sources
There is a case where a specification reference points to a source which is seen as 'in scope' such that any test assertions referring to it can be used a prerequisites for other TAs. There is another case where a specification normative source is 'black box' such that it is seen as 'out of scope' for the current writing of the TAs. There is then a special case when there is a dependance of a current TA on a normative requirement contained in this 'out of scope' specification.
Proposal 1: Allow for a property of a normative source such that is can be designated 'black box' or 'out of scope'.
Proposal 2: Describe what happens when there is a dependency of a TA on a black box normative source and/or its TAs.
Resolution:
Issue 031: Property-defining Spec Requirements and related Test Assertions
Some normative statements in a specification may be intended just to define some property, e.g. "medium-size" for widgets. Currently, we consider these statements as subjects to test assertions like any other statement. E.g. these TAs address optional requirements that a target may or may not exhibit, with the additional information that if the requirement is satisfied, the target may be claimed having the property (here, "medium-size"). But our TAs do not capture or reflect this property: they just define the tests. Obviously, there is either a need to capture this important info from the original spec (which is the only purpose of these TAs !), or should these be considered TAs in the first place?
Proposal 1: yes they should be TAs because they serve the same purpose as regular TAs (get the spec crisper, get a test suite easier to implement, etc.) They also focus on same goal: define a testable way to determine whether a target exhibits a spec requirement(s) even if optional, serving here the additional intent to establish a property of the target. So the proposal is:
- consider them as regular TAs, e.g. like widget-TA3 and widget-TA4 currently for "medium-size" widget property, with regular target (here "widget") and regular predicate (that just determines whether the target exhibits or not a feature).
- as best practice, capture the "intent" either in a Header (see issue i027) or in a Tag. E.g. a Tag named "intent", of value "medium-size".
- use same semantics as usual for the "prescription level" , i.e. likely some optional flavor if the property (or intent) is itself optional for this target in the specification.
Proposal 2: same basis as Proposal 1, but:
- the "Intent" is upgraded as an optional, yet first-class TA component (not just a Tag), because it is the entire justification of such a TA, and the prescription level semantics is now entirely relative to intent
- the "prescription level" - unlike in Proposal 1 - is now to be interpreted w/r to the "intent" TA element, (and can still reflect MUST/SHOULD/MAY gradation levels for this intent). e.g. if predicate=true is mandatory in order to qualify as "medium-size" (even if medium-size property in itself is optional), prescription should be "mandatory".
Proposal 3: same as Proposal 1, but the Intent is an important enough notion that it deserves a separate construct (not just a tag or a TA part). In fact, a property like "medium-size" could imply a complex relationship over a group of TAs (e.g. TA1 must return "true" and either TA2 or TA3 must return "true", in order to qualify as "medium-size"). So this proposal defines something new , called a "composite TA" (as opposed to atomic TA):
- a composite TA is built from a set of existing TAs that all must share same target (or sufficiently related targets, see section 3.5.1),
- composite TA predicate is composed from other TA predicates (expressed using notation: TA1.predicate AND (TA2.predicate OR TA3.predicate)
- the composite TA has an Intent part (like in Proposal 2) that states its purpose, i.e. what is achieved when the composite predicate evaluates to "true".
Advantage of this proposal:
- it reuses a TA predicate composition notation that is anyway needed for advanced prerequisites (that could use and AND/OR expression over several TAs).
- It lends itself to a convenient mapping to higher-level constructs like conformance levels/profiles that may be part of the specification, and that define some possibly complex combinations (not just an AND list) between atomic requirements for which related atomic TA(s) already exist.
Proposal 4: [steve] a new construct - a globalized predicate. This allows a TA to refer to a global predicate as a prerequisite. The global predicate might optionally also contain, in addition to the predicate, the normative source(s), an id, a target, tags, etc..
[jacques] Here i must say i don't follow: if a "global predicate" can have all parts we normally find in a TA, why don't we call it a TA?
There is no requirement to test such a predicate in isolation - only if it is referenced in TAs since it does not map to a normative requirement(s) in the way a TA does.
Advantages of this proposal
- It is semantically distinct from a TA so 'semantic drift' of the TA is avoided.
- It reuses the existing semantics of predicate, avoiding the need for new semantics.
- Many TAs can reference as prerequisites the same predicate.
- The global predicate can have prescription level as an optional property.
- Any number of these global predicates (GP) can be created but orphaned ones need not place a burden on testing - only if a TA references one does there need to be testing.
- Placing the GPs in a header / container allows GPs and TAs to share properties
Proposal 5: Close to Proposal 2, but no new "Intent" element:
- In case of a "property TA", the "prescription level" - unlike in Proposal 1 - is to be interpreted w/r to the property, (and can still reflect MUST/SHOULD/MAY gradation levels). Note that the prescription is a property of teh normative source, NOT of the TA predicate outcome that might be designed differently. So if the normative requirement is mandatory in order to qualify as "medium-size" (even if medium-size property in itself is optional), prescription should be "medium-size.mandatory". The level value (mandatory) is prefixed with the property name to which it relates. In case several properties relate to the same normative requirement addressed by the TA, e.g. is a MUST for medium-size but a MAY for small-size and a MUST NOT (prohibited) for large-size, then all these can be mentioned as an enumeration in the prescription level(s): "medium-size.mandatory", "small-size.permitted", "large-size.prohibited". Note that in such case, more than 3 values are needed for prescription levels, which include here "prohibited" and also "discouraged"/"not-recommended" or the like.
TAG Wiki