F2F ISSUES SUMMARY:
Issue 1. TA definition: - Challenge: We need to contrast TA with other specification-related material: "specification requirement", "test meta-data", "conformance clause", yet we want to avoid having to formally define these (avoid defining what we are NOT). Idea is to show how TAs relate (or does not relate) to them.
Issue 2. TA - UML modeling: - Challenge 1: many people are familiar with UML as the modeling notation. As TAs may relate to objects of different kinds, involve sequences of actions, be linked, and be grouped in large numbers in various ways, (e.g. along conformance profiles, etc.), the power of a modeling tool may be helpful. Therefore, shouldn't our TA structure map easily to UML concepts?
- Challenge 2: If UML is used - or related constructus - the XML markup needs to derive easily from the model used.
Issue 3. TA structure - from simple to elaborate: - Challenge: We know there are different objectives for TAs: (a) improve quality of specifications, (b) help test case development. Some users are only interested in (a). In many cases, there is no need to use a sophisticated TA structure - how to reconcile this with other usage (b) where test case writers need enough guidance on how to interpret the TA, e.g. more structure? How to bring flexibility in the recommended design of a TA? (and in subsequent mark-up? e.g. to avoid redundancies?) How much should be optional?
Issue 4. Coverage analysis: - Challenge: how much needs be said in a TA guide - it is more a test case design issue, although this could help TA writers to realize that a TA does NOT have to be fully covered by test cases.
Issue 5. Test environment and testability: - Challenge 1: Test environment: assessing the testability of a spec requirement (and therefore, writing a TA for it) depends on assumptions on what the test environment can or cannot do. Some assumptions can/must be made on the test environment, yet should not preempt decisions made by test suite writers.
- Challenge 2: Are there some spec statements that are intrinsically not appropriate for TA writing? Is there a methodology for classifying spec. reqs?
Issue 6. Specifications referencing other specifications: - Challenge: when there are dependencies between specifications (layering, bindings), a TA should restrict its scope, yet make clear assumptions on how much of the referenced spec is supposed to be previously tested. How to treat dependencies? Can we always "delegate" the testing of artifacts for conformance to referenced specification to another TA?
Issue 7. COnformance vs. Interoperability: - Challenge: TAs are not restricted to conformance testing. The guideline should not be worded in a restrictive manner.
Issue 8. Semantics of TA parts: - Challenge: when different parts are identified for a TA (e.g. pre-condition, test trigger, test effect, post-condition) then one needs clear guidance on how to fill these, as the same techniques can be used for each part: e.g., a predicate can be used in pre-condition as well as in test trigger for describing properties of an event. Pre-condition may describe the state of test environment prior to test - but is also supposed to qualify the item under test. Post-condition: does it only describe the state of system after the test is over? How does it impacts the overall result of the TA - e.g. can it "disqualify" the result observed in the "test effect" as invalid for some reason?
- (stephen) About the trigger: to me it seems that the trigger example in 'AnatomyTA-v05' is really an extra tip about how to do the test. I'd suggest then:
- the test outcome should formally and generally express in a testable way the sum total of all aspects of the test assertion required to make a pass or fail judgment of the IUT and if that pass or fail decision requires information about the test trigger then that must be included in the same expression
- the trigger is not a part of the 'outcome' expression(s) when it is not part of the formal, testable, general expression of the test assertion
- the trigger may therefore be actually included in the outcome as part of the predicative expression if it is a true part of the equivalent specification requirement
- [jacques] Not sure this criterion of being "part of the spec reqt" is practical or even understandable in general. Agree that in some cases the separation (trigger / "outcome") is artificial. I suspect there might be cases where the "trigger" is like a workflow of several steps, and "outcome" expressions could be interleaved with these steps - e.g. some fail conditions may be attached anywhere in this process. Still it makes sense to separate both for conceptual reasons: "Trigger" tells about the test operation flow, while "outcome" tells about fail/pass conditions, even if both are intertwined over time. Now, we could allow for merging the trigger operations witin the outcome expression (as done in Anatomy V0.5 example 1). I think there is a difference in the TA semantics: if trigger belongs to outcome, then a failure of the test trigger to perform, would be interpreted as a part of the outcome condition leading to pass or fail, while if the trigger is kept external to the outcome expression, a failure of the trigger to "materialize" leads to an "undetermined" outcome or the like (not fail, not pass).
- if the trigger is not part of the specification requirement because it is not normative enough then it is a tip about how to do the test (an example of the test)
- [jacques] I'd say the property "normative" should not be used for "triggers": only the spec is normative. The trigger is just an expedient for the sake of testing.
- the trigger can, though, be repeated in both the 'outcome' and the 'trigger' if it can be considered both normative and informative (the TA provides enough of a tip)
Outcome: Pass if: (An Error message is send out by MSH in response to receiving an ill-formed message ‘M’) AND (The ReferenceId field of the Error message has same value as the MessageId of M).
Test Trigger: a message with an envelope header referring to a wrong namespace URL is sent to the MSH under test.
so this trigger is actually an example test or a test case tip and not part of the formal TA expression - not something essential to the evaluation of the conformance
- so the trigger has no formal role in the evaluation of the TA 'outcome' (pass or fail)
- [jacques] It is true the trigger (or what I'd prefer to call "test flow") is not concerned at all with the outcome condition. But it provides and defines the material needed to express this outcome condition (in above example, defines the message "M" that you still need in your "outcome).
- [jacques] to illustrate further my point on how the TA semantics changes depending on how much of the "trigger" is abstracted from the "outcome": In the way you reworded V0.5 exampl, if an Error message is NOT generated then the TA fails (Error occurrence is part of the IUT behavior we want to test) while if it were in the trigger (like in V0.5) then Error occurrence is NOT part of what is tested - if Error does not occur, you can't even evaluate the outcome.
- so why not instead of 'outcome' and 'trigger' call it something like 'predicate' and 'test example'? Either way the 'outcome' predicate should encompass the whole TA but as self-contained, testable, predicative expression
- [jacques] I wouldn't say the outcome expression "should" always encompass the "trigger". It is your choice, based on what semantics you want to give to the trigger. If you put it in the outcome (like Example 1 in V0.5) then the trigger operation/event participates directly in the final outcome decision - e.g. if operation fails to occur, that may cause a "fail" outcome. But if you keep it external (like in part 2 of V0.5 exampl), then if the trigger fails to occur the outcome expression can't even be evaluated. I assume the outcome for a test case derived from such TA would then be something like "undetermined" or "not applicable", but not "fail".
Issue 9. The level of specification requirements (MUST, SHOULD, MAY): - Challenge: how much should it affect the design of a TA? What is the meaning of testing MAY statements? So far the leaning is to dissociate the notion of test from the conformance assessment (out of scope): a TA will be written in same way for a MUST,SHOULD or MAY normative statement in the specification. Its result is still pass or fail. But the interpretation of this result will depend on MUST, SHOULD, MAY. Even for an optional requirement, the test outcome may be of interest for interoperability assesment. Also, TAs may be associated with conformance levels/profiles that may interpret differently a test result for a SHOULD.
[jacques] that could be stated as a good practice, not an absolute rule to always follow. For example, a spec requirement of the kind: "when exposed to any fume, the alarm MUST produce a painful noise that SHOULD be intermittent." We may want to write a single TA for this. It could pass only if noise is produced that is both painful AND intermittent. Or it could pass if noise is just painful. So we may end-up with writing both, each TA serving a different level of conformance. Another approach, is to have two finer-granularity TAs: one for testing the noise is painful, one for testing if intermittent. They can still serve different levels of conformance by just ignoring or not the "SHOULD" TA. The latter solution chose to ignore the keywords (MUST, SHOULD) when writing the TAs, and to test both features the same way. Different levels of conformance would ignore some TAs. Theformer solution has each TA written for a specific level of conformance, and therefore taking the SHOULD into account (one TA tests it, the other TA decides not). Both approaches are fine - the former allows for more combinations ( -> best practice?)
(stephen) I would prefer to see a separate set of TAs for each profile so that the ID for that profile can be a resolvable uri which can be inserted into something like ebBP 2.0 (as an externalDocumentDefRef - external document definition reference - in the case of a profile for a business message for example). Plus profiles would likely come after the initial set of TAs and be produced by separate groups of authors. Two profiles in one document - I see no reason to rule that out though where considered appropriate and workable by the authors. Let authors decide. I'd want one profile per document to be considered best practice though unless identifiers for each profile are provided separately too. Example see ISO document sent by Robin Cover [1] which seems to suggest creating a separate list of TAs for each profile, each with an list identifier, in an appendix to a spec so that the lists can separately be referred to in the conformance clauses. [1] http://lists.oasis-open.org/archives/tag/200709/msg00002.html
(stephen) Jacques writes in the BestPractice section "We need to close on [this issue]. I'd prefer to avoid any use of these keywords in the TA itself (except of course in the "referred spec requirement") but that does not prevent these keywords from influencing the way the TA is written (test outcome)." (stephen) I believe we should allow for the use case of folk copying and pasting from the spec (which might use those keywords) into the TA. This seems to be very common practice and even so in the exemplary cases such as W3C HTML 4.01 and SOAP 1.2 (TestAssertionExamples). I'd regard these as examples of best practice so I'd be wary of petitioning against their use of exact quotation of the spec in the TA, keywords and all. To my mind there is scope to replace such keywords when the prose (or anatomy-structured) part of a TA is derived rather than literally quoted.
Issue 10. Pre-requisite TAs: -Challenge: Different cases of pre-requisites, may be partially due to different ways a spec requirement will depend on (or refer, explicitly or implicitly) other spec requirements, either internal or external. Can we come-up with common semantics for pre-requisite TAs? Some seem to affect the "qualification" phase (pre-condition), but some will be needed as part of the evaluation of the test effect (e.g. the received message must comply to SOAP in addition to comply with WS-RX which is SOAP-based.). Should a pre-requisite play an "dynamic" role in the outcome of a TA, or be just informative, for test case writers to know that this should have been tested prior to executing this test suite?
(stephen) I like the http://www.ws-i.org/Testing/Tools/2005/01/BP11_TAD_1-1.htm example where pre-requisites are just hyperlinks to other TAs - easy to understand and automate. That applies to the level of individual TAs. For groups of TAs the pre-requsistes could be a mixture of such links and also prose pre-requisite descriptions with IDs which can be referenced as pre-requisites for individual TAs. Our prior art examples don't seem to say whether the pre-requisite is informative so it seems it is normative if the TA itself is normative. A bit of metadata attached to a pre-requisite could say it is informative but that seems to be excessive complication IMO. The conformance clause might want to include something about whether pre-requisites are normative and so this could be left to the conformance clause as it might be different for different profiles. If there is need for such metadata in TA anatomy it could be added as optional extension to avoid complicating things.
Issue 11. TA Outcome: - Challenge: What should be the semantics of TA pass/fail :
- (a) pass/fail have a test semantics only, i.e. nothing more than true/false if the test is presented as a logical condition, whatever the test is. Thus, a "pass" in a "negative TA" could be interpreted later as the IUT being NOT consistent with spec requirement.
- (stephen) I can't see this working - would be confusing and different from any of our prior art TAs - belongs to test cases, not TAs - how would the expression written like this be referenced in failure messages without needing logical adaptation?
- (b) pass/fail have a conformance semantics (i.e. an outcome = "fail" means the IUT is inconsistent with the addressed spec requirement or normative statement, and "pass" means consistency within scope of this test.) In that regard, a "negative" TA written for a spec requirement, can only have "fail" as outcome.
- (stephen) here a failure message can be simply derived from the TA - example: WS-I where failure message is typically a negation of the TA and could include a reference to the TA which would be easily understood to the reader in terms of conformance / the specification (not sure this would work with (a) above though)
- (jacques) WS-I adds a "failure message" taht is indeed almost automatically the negation of the addressed spec requirement (with re-wording focused on the IUT). This is an obvious (b) case - where "fail" is directly linked to inconsistency with specification statement. I wouldn't put this forward as a decisive advantage of (b) though, because I think failure messages are bordering to test metadata... but WS-I is moving toward "executable" TAs, and certainly this kind of extension will be used again. If going with (a), then I think people (test suite writers, conf clause writers) will still want to see a link between test result and spec requirement. The real difference between (a) and (b) IMO, is who is supposed to make that link... (b) puts the burden on TA writers, which I think is safer.
Issue 12. Isn't a prose TA just an "implicit TA" ? - Challenge: two concepts of prose TA to decide from:
- (a) a prose TA is just expressed in plain English, but conveys roughly the same info as a structured TA that has test trigger, test outcome, etc.
- (b) a prose TA is an "incomplete" structured TA, where only the TA Id and the reference to spec requirement, are present. The other elements (pre-requisites, test trigger, test outcome) are implicits, i.e. inferred from a set of rules that are common to a large number of TAs of the same kind (e.g. about API calls). E.g. the rule for Test Trigger is: ): "the API function mentioned in the requirement is invoked, with the parameter values mentioned in the requirement if any". The rule for the IUT could be "the IUT is always the API implementation". Or: "The IUT is always the object class that contains the function call". (see "Variants in TA Representation" section, TA anatomy V0.5)
- (stephen) can we not cater for both? if not I'd go for (a) but allow use of reference instead of prose where preferred. I'd add a best practice that one method only is applied to a particular set of TAs - i.e. throughout either prose in plain English with optional reference(s) or reference alone.
- (jacques) (a) + reference instead of prose = (b) with the "rules" being themselves implicit... What I do not like in a true "prose" version (where new narrative is written without having to follow some structure), is that if you don't control somehow what goes in the "prose" then how can you tell if it is a TA. Let us see what Sun thinks of this - they were the ones clamoring for the right to have a "light version" of TA. I think they should be even happier with (b) that lets them get away with just refering to the specification requirement - not even have to write prose.
Issue 13. Structure of a TA : Isn't Pre-requisite same as pre-condition? - Challenge: ability to state some condition that guards the application of a TA to an IUT, i.e. that qualifies the IUT for the test in the TA. If this condition is "false", the TA does not / should not apply to this IUT. Although technically not part of the test, decides of the sanity of the test (result of the test would be meaningless, if pre-cond is false).
- (a) Have an optional pre-condition. Plus a Pre-requisites link(s) that refer to other TA(s) in case the IUT is supposed to "pass" these TAs before undergoing the current TA.
- (b) consider pre-requisite as same as a general pre-condition to applying the test, that could either refer to other TAs that need to pass, or state a condition on its own, or both. I.e. Pre-requisite would include the "pre-condition" we mentioned in previous discussions.
(stephen) this seems to work well in http://www.ws-i.org/Testing/Tools/2005/01/BP11_TAD_1-1.htm - easily understood by reader of TAs - no need to add preconditions as well as prerequisites (who would understand the difference) - but a formal TA expression can sometimes include its own preconditions within the expression itself (avoid duplication IMO)
Issue 14. Structure of a TA : the role of post-conditions - Challenge: Isn't Post-condition a test metadata (test case) concept?
so far the rationale we have seen for post-conditions, is that it expresses the state the test environment should be in, after the test is over. Can be useful to manage the chaining of test cases in a test suite. But isn't that somethingthat only test cases and test suites need to worry about? Not for a TA to bother with, as this seems to serve only operational concerns?
(stephen) http://www.ws-i.org/Testing/Tools/2005/01/BP11_TAD_1-1.htm seems to work well without post-conditions (none of our prior art example have post-conditions) - but a formal TA expression can sometimes include its own post-conditions within the expression itself (avoid duplication IMO)
TAG Wiki