Concordion Concordion Markdown Specifications 1 — Questions and Answers
Question 1: What file extension is used for Concordion Markdown specification files?
- .md (Correct answer)
- .html
- .spec
- .concordion
Correct answer: .md
Concordion Markdown specification files use the .md extension, which Concordion converts to HTML before executing tests.
Question 2: What Markdown link syntax correctly sets a Concordion variable named `#firstName`?
- [John](- "#firstName") (Correct answer)
- [John](- "?=#firstName")
- [John](- "set=#firstName")
- [John](#firstName)
Correct answer: [John](- "#firstName")
Using a `-` as the URL with `#varName` in the href sets the Concordion variable to the link text value.
Question 3: What Markdown link syntax asserts that a Concordion expression equals the expected value "Hello, World!"?
- [Hello, World!](- "?=#result") (Correct answer)
- [Hello, World!](- "#result")
- [Hello, World!](- "assert=#result")
- [Hello, World!](- "==#result")
Correct answer: [Hello, World!](- "?=#result")
The `?=` prefix in the URL indicates an assertEquals command, comparing the link text to the evaluated expression.
Question 4: How do you execute a fixture method `greet()` without capturing its return value in Concordion Markdown?
- [](- "greet()") (Correct answer)
- [greet](- "#result = greet()")
- [execute](greet())
- [](greet() -)
Correct answer: [](- "greet()")
An empty link text `[]` with the method call as the URL (prefixed with `-`) executes the method and discards the result.
Question 5: In Concordion Markdown, which part of a link signals that it is a Concordion command?
- A `-` used as the URL (Correct answer)
- A `#` prefix in the URL
- A `concordion:` prefix in the title
- A `c:` prefix in the link text
Correct answer: A `-` used as the URL
When the URL portion of a Markdown link is `-`, Concordion interprets the link as a command rather than a standard hyperlink.
Question 6: Which version of Concordion first introduced native support for Markdown specifications?
- Concordion 2.0 (Correct answer)
- Concordion 1.4
- Concordion 1.0
- Concordion 3.0
Correct answer: Concordion 2.0
Concordion 2.0 introduced native Markdown support, allowing specifications to be written in .md files alongside traditional HTML specs.
Question 7: How does Concordion process Markdown specification files before running the tests?
- It converts Markdown to HTML at runtime before executing tests (Correct answer)
- It reads the Markdown syntax directly without any conversion
- It compiles Markdown files to JVM bytecode
- It relies on the browser to render Markdown during test execution
Correct answer: It converts Markdown to HTML at runtime before executing tests
Concordion converts Markdown to HTML internally at runtime, then processes the resulting HTML the same way it handles native HTML specifications.
What file extension is used for Concordion Markdown specification files?