Skip to content

concordion/concordion-logback-extension-demo

Repository files navigation

Build and Test Apache License 2.0

Introduction


This project demonstrates the usage of the Concordion Logback Extension

Example output is shown here.

This demonstrates logging both per example and per specification (see link at bottom of specification). The log statements can be filtered using the Show 'TRACE' level statements toggle at the top of the log file.

The Logging Demo specification demonstrates simple logging, while the Selenium and REST demo specification demonstrates browser screenshots and multi-line REST response output in the log files.

Running the tests


The download includes support to run the tests with Gradle. The code base includes the Gradle Wrapper, which will automatically download the correct version of Gradle.

If running from behind a proxy then Config.java will need to be updated with the proxy host and port.

Gradle can be run from the command line or from your IDE:

Command line

From the command line, cd to the folder containing a copy of this project, and run

./gradlew clean test on Unix-based systems, or .\gradlew clean test on Windows.

This will download the required dependencies, clean the existing project, recompile all source code and run all the tests.

View the Concordion output in build/reports/spec/org/concordion/demo/Demo.html.

IDE

For Eclipse and NetBeans, you will need to install a Gradle plugin to your IDE before importing the project. See Gradle tooling for details.

On importing the project to your IDE, the required dependencies will be downloaded.

Under the src/test/java folder, find the Demo class in the org.concordion.demo package and run as a JUnit test. The location of the Concordion output is shown on the standard output console.

What you should see

JUnit output

The test should pass successfully:

Successes: 5, Failures: 0

Concordion output

The output folder should contain the following specifications.

A Tooltip displaying "My tooltip here!"

Log File links to the right of each example and at the bottom right of the page, clicking on those will bring up a log file viewer, with the option to toggle Show 'TRACE' level statements.

Contains multiple examples, with Example GUI and Table Example demonstrating screenshots embedded in their respective log files, and Example REST demonstrating a multi-line REST response in the log file.

Additional Gradle Files

dev.gradle is only needed if you want to run against snapshot or local builds of the concordion-logback-extension.

publish.gradle is only needed if you want to publish the output to Github pages.

If copying the project for your own use, you probably won't want either of these files.

Mailing List

Feel free to discuss this demo project on the Concordion mailing list.

About

This project demonstrates the usage of the Concordion Logback Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published