Concordion Concordion Specifications 1 — Questions and Answers
Question 1: What makes a Concordion specification a 'specification by example'?
- It uses concrete examples to illustrate expected behavior (Correct answer)
- It auto-generates code from diagrams
- It replaces unit tests entirely
- It only tests edge cases
Correct answer: It uses concrete examples to illustrate expected behavior
Specification by example means that expected behavior is described through concrete, testable examples rather than abstract rules.
Question 2: Who is the intended author of a Concordion specification?
- Business analysts and developers together (Correct answer)
- Only developers
- Only QA testers
- Only project managers
Correct answer: Business analysts and developers together
Concordion specs are designed to be authored collaboratively by business stakeholders and developers in plain English.
Question 3: What namespace URI must be declared in the HTML spec to use concordion: attributes?
- http://www.concordion.org/2007/concordion (Correct answer)
- http://concordion.org/spec
- http://www.w3.org/concordion
- http://concordion.io/ns
Correct answer: http://www.concordion.org/2007/concordion
The concordion: prefix must be bound to http://www.concordion.org/2007/concordion in the HTML element's xmlns declaration.
Question 4: Where are Concordion HTML specification files typically stored in a Maven project?
- src/test/resources (Correct answer)
- src/test/java
- src/main/resources
- test/specs
Correct answer: src/test/resources
Spec files are placed under src/test/resources mirroring the package structure of the fixture class so Concordion can locate them.
Question 5: A Concordion spec is described as 'active' documentation. What does 'active' mean?
- The spec is executed as part of the test suite (Correct answer)
- The spec updates itself nightly
- The spec sends notifications on failure
- The spec is stored in an active database
Correct answer: The spec is executed as part of the test suite
'Active' means the HTML document is executed as an automated test, so it only remains accurate while the tests pass.
Question 6: What should the title of a Concordion specification typically describe?
- The feature or behavior being specified (Correct answer)
- The fixture class name
- The build version
- The developer's name
Correct answer: The feature or behavior being specified
The spec title should clearly describe the feature under test so stakeholders understand the document's scope at a glance.
What makes a Concordion specification a 'specification by example'?