Concordion Concordion Extensions 1 — Questions and Answers
Question 1: What is the Concordion Extension API used for?
- Adding new commands and event listeners to Concordion (Correct answer)
- Packaging Concordion as a WAR file
- Generating fixture stubs from HTML specs
- Integrating Concordion with Maven Surefire
Correct answer: Adding new commands and event listeners to Concordion
The Extension API lets developers add custom concordion: commands, listeners, and integrations to extend Concordion's behavior.
Question 2: How do you register a Concordion extension on a fixture class?
- Using @Extensions annotation with the extension class (Correct answer)
- Adding it to the HTML spec's <head>
- Calling Concordion.register() in main()
- Declaring it in pom.xml only
Correct answer: Using @Extensions annotation with the extension class
@Extensions({MyExtension.class}) placed on the fixture class registers the extension for that spec's run.
Question 3: What does the Concordion Screenshot extension do?
- Captures browser screenshots on test failure for web UI tests (Correct answer)
- Captures all concordion: command outputs as images
- Screenshots the HTML spec document
- Takes JVM heap snapshots
Correct answer: Captures browser screenshots on test failure for web UI tests
The Screenshot extension integrates with Selenium WebDriver to capture a browser screenshot when an assertion fails.
Question 4: What interface must a custom Concordion extension implement?
- ConcordionExtension (Correct answer)
- Extension
- IConcordionExtension
- ConcordionPlugin
Correct answer: ConcordionExtension
Custom extensions implement the ConcordionExtension interface, which provides an addTo(ConcordionExtender) callback method.
Question 5: What does the Concordion LoggingTooltip extension add to the HTML report?
- Tooltips showing log messages captured during each test assertion (Correct answer)
- Colored log level indicators
- A log file download link
- A separate log panel frame
Correct answer: Tooltips showing log messages captured during each test assertion
The LoggingTooltip extension captures log output and attaches it as a mouseover tooltip to each assertion in the report.
Question 6: Can multiple Concordion extensions be used together on the same fixture?
- Yes, @Extensions accepts an array of extension classes (Correct answer)
- No, only one extension per fixture is allowed
- Only if extensions implement CompositeExtension
- Only via system property configuration
Correct answer: Yes, @Extensions accepts an array of extension classes
@Extensions({ExtA.class, ExtB.class}) registers all listed extensions for concurrent use on the same fixture.
What is the Concordion Extension API used for?