Resource Extension

Resources can be added to the Concordion.NET output folder using an extension.

Static Resources

"Static" resources can be created in the Concordion.NET output folder. These resources must be available prior to running the Concordion.NET specification.

Example

An extension is installed that copies test/concordion/o.png from the classpath to /images/o.png.

When Concordion.NET is run, the resource /images/o.png is available in the Concordion.NET output directory.

Dynamic Resources

"Dynamic" resources can be written to the Concordion.NET output folder during a Concordion.NET run. These resources are typically created while running the Concordion.NET specification, for example screenshots being generated by an assertEqualsListener.

Example

An extension is installed that creates the dynamic resource /resource/my.txt in the target.

When Concordion.NET is run, the resource /resource/my.txt is available in the Concordion.NET output directory.