Issues for discussion, constraints, what's in and out of scope, questions, challenges, concerns, etc.
[1] Must be able to deal with the simplest case where the text of the assertion can be found directly within the spec, as well as with more complex cases where the text of the assertion is derived from the spec. (Patrick)
- Can we be clear about whether we are thinking of primarily or only test assertions or whether we in fact mean that loosely to include any kind of normative (or even optional) conformance rule? What is the difference? Also, do we mean to only provide for specification structuring to facilitate the referencing of a specification part in a test assertion or do we wish to create something which can be used for documenting the test assertions themselves? (stephen)
I'm not sure that there's much of a difference between a test assertion and a conformance rule. I'll write up more on this later. As for your second question (which I'll also address in more detail later), yes - I think we need to define markup both for specs (to enable the identification of normative statements from which assertions can be derived) and also for "standalone assertion lists". Of course, given the former, the latter can be automatically generated. (Patrick)
[3] In distinguishing Spec requirements and TAs: can we say a TA is always about IUT behavior, while spec requirements are just "predicates"? E.g. if a specification says "header X in a response message must have a value set to A or B", the TA will likely be more specific and refer to an IUT (impl under test) behavior: "when a handler sends a response message M, the X header value must be set to either A or B". Another TA may set expectations on the behavior of the receiver role: "when a message handler receives a response message M, if X value is neither A nor B then it must generate an HeaderError" (assuming the specification prescribes HeaderError for such cases). Both TAs derive from same spec requirement, yet by identifying the IUT and its different roles where the TA can be verified, leads to 2 TAs. Note that the specification requirement is targeting "messages", while the TA targets "handlers", if that is what we deliberately chose as IUT. This focus on the IUT really makes the difference in wording the TA. Does that all make sense?{Jacques)
- [6] Maybe we need to help specifications, such as those for profiles, to reference other specifications and themselves be referenced. So this means providing not just identifiers which can act as handles for a specific 'implementation under test' but allow such ids to be referenced by other specifications too (and by other test assertions) and also to provide the means to reference other specifications (and test assertions and schemas, etc). (stephen)
- Agreed. Specs often reference other specs. It should not be assumed that all "specification references" are to the same specification: within a single "assertion list" there may be references to multiple specifications. (Patrick)
- [3] Should a TA include procedure data for related Test Cases? (Korea TAG Forum)
- Is this starting to look a bit like a programming language? I guess there are ways, from the implementers' point of view (the test writers in particular), that it is best not to use the same constructs a typical programming or macro language would use - is grouping useful, for example, for shared pre-conditions, artifacts, properties, etc or should each TA have all of its necessary information locally defined? What is most useable? And what is most workable for the specification writer on the other hand? (stephen)
- Is there a need to distinguish the following in the TA model?:
- Prose TA copied exactly from a specification
- Prose TA not copied exactly from a specification
- A predicate - a more formal expression than free-text prose and which evaluates to true or false
- A structure to allow separation of prose and/or predicate expressions which describe preconditions for tests, post conditions for tests, triggers and outcomes (stephen)
-- [jacques] I moved in this direction in the draft revised section on TA Anatomy on our OASIS site (9/6/07, revised 9/19/07). Yet I do not think we need distinguish 2 kinds of prose in the model, even if both are allowed.
- If there are parts of the model which allow, mandate or recommend predicate expressions would we expect, cater for and recommend the use of a constraint language for these predicates
- if they are expressed as XML would such XML be either
- referred to as links, XQueries or IDs in the TA document
- included in the TA document
- both of the above
-- [jacques] sounds more like something to worry about when comes the time to design the "markup"?
- what would be suitable for such expressions?
- UML's Object Constraint Language (OCL) or OCL XMI (XML representation of OCL)?
- Web Ontology Language (OWL)?
- Semantic Web Rule Language (SWRL)?
- Rule Markup Language(s)?
- are XML-based expressions to be preferred to non-XML (such as Backus-Naur based expressions)? (stephen)
-- [jacques] it is tricky to impose a particular option. We could instead keep it open, but impose the metadata format, like the XML attribute that specifies which dialect is being used (e.g. @dialect="XQuery", @dialect="OCL", etc.)
- if they are expressed as XML would such XML be either
- Suggestion:
- we have somewhat divergent requirements for simple, mainly prose TAs versus more complex, structured and perhaps fully automatable TAs
- does this lead perhaps to two possible profiles - a profile aimed at human-readable documentation of TAs and another profile aimed at being either formally processed according to a particular notation or methodology or even a set of TAs which are so defined (as predicates or sets of predicates using say OCL XMI) as to be processable into tests automatically with software tools (stephen)
- If the predicates of the structured part of the TA model can be expressed with a language such as OCL then that language (as OCL does) may have its own represenations of what it calls preconditions and postconditions
- does this mean there might be duplication or confusion with what we have modeled using the same terms?
- are these actually the same things or do we distinguish ours as being in a different layer with different purposes or meanings?
- are our preconditions and postconditions constraining something which OCL's, say, aren't (such as constraints more on whether the test should occur rather than on the test itself) or is there such a fine distinction as to just be a grey area which might at worst confuse and over-complicate things or at least add the possibility of redundancy? (stephen)
-- [jacques] I see "our" pre-post-conditions as something that should make sense regardless whether the dialect (e.g. OCL) has this notion or not. Our pre-condition, so far, would decide on the entire test execution itself (so, different layers as you say). OCL preconditions used in a TA are likely more fine-grained as they apply to a single operation I think (i.e. apply to some object method used inside the test itself). Same for postcondition. Now, in some cases I guess we will see a fair overlap between a TA precondition and an OCL precondition, E.g. in case an OCL test operation applies only to a type of XML document, and this operation is the only one in the TA test part, while this TA also only applies to this type of doc.
- are our preconditions and postconditions constraining something which OCL's, say, aren't (such as constraints more on whether the test should occur rather than on the test itself) or is there such a fine distinction as to just be a grey area which might at worst confuse and over-complicate things or at least add the possibility of redundancy? (stephen)
TAG Wiki