concordion-excel-extension

An extension to Concordion to use Excel spreadsheets rather than HTML as specifications

License

License

GroupId

GroupId

org.concordion
ArtifactId

ArtifactId

concordion-excel-extension
Last Version

Last Version

2.1.4
Release Date

Release Date

Type

Type

jar
Description

Description

concordion-excel-extension
An extension to Concordion to use Excel spreadsheets rather than HTML as specifications
Project URL

Project URL

https://github.com/concordion/concordion-excel-extension
Source Code Management

Source Code Management

https://github.com/concordion/concordion-excel-extension.git

Download concordion-excel-extension

How to add to project

<!-- https://jarcasting.com/artifacts/org.concordion/concordion-excel-extension/ -->
<dependency>
    <groupId>org.concordion</groupId>
    <artifactId>concordion-excel-extension</artifactId>
    <version>2.1.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.concordion/concordion-excel-extension/
implementation 'org.concordion:concordion-excel-extension:2.1.4'
// https://jarcasting.com/artifacts/org.concordion/concordion-excel-extension/
implementation ("org.concordion:concordion-excel-extension:2.1.4")
'org.concordion:concordion-excel-extension:jar:2.1.4'
<dependency org="org.concordion" name="concordion-excel-extension" rev="2.1.4">
  <artifact name="concordion-excel-extension" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.concordion', module='concordion-excel-extension', version='2.1.4')
)
libraryDependencies += "org.concordion" % "concordion-excel-extension" % "2.1.4"
[org.concordion/concordion-excel-extension "2.1.4"]

Dependencies

compile (5)

Group / Artifact Type Version
org.concordion : concordion jar 2.2.0
org.apache.poi : poi jar 4.1.0
org.apache.poi : poi-ooxml jar 4.1.0
org.apache.poi : poi-ooxml-schemas jar 4.1.0
org.apache.commons : commons-lang3 jar 3.3.2

Project Modules

There are no modules declared in this project.

Build Status Download

Concordion is an open source framework for Java that lets you turn a plain English description of a requirement into an automated test.

This project enables concordion to parse an Excel spreadsheet and use it as input data.

Vanilla Concordion is designed to process test specifications written in using a combination of an HTML Document and a Java fixture class. When Concordion runs the test, it takes the HTML document and uses it as as the basis of a test report, colouring the report as it goes to show which parts of the test have passed and failed.

Basic Concordion Process

The Concordion Excel Extension changes this so that the HTML Document is replaced by an Excel spreadsheet.
The spreadsheet is parsed into an HTML structure first, and then from there on processed through Concordion in the normal way.

Excel Concordion Process

Motivation

So, the extension simply gives you a different format for your test specification. Why would it be sometimes preferable to represent this as an Excel document rather than an HTML one? Three reasons:

  1. Perhaps the team of test writers are not familiar with writing HTML, or are more comfortable with Excel.
  2. You're constructing lots of tables containing the test examples. Excel's table support is very polished and easy to use compared to most HTML editors, or HTML-by-hand.
  3. You're testing calculations which can be easily expressed in Excel functions. It makes sense for the testers to write examples using the functions rather than calculating them by hand and putting the results into the test specification. In fact, if you're here, your testers are probably calculating the test examples using Excel anyway.

Installation

The extension is available from Maven Central.

Caveats

Version Control

Excel's xlsx format is a zip file containing lots of futher XML files, plus any images that might be needed in the document. While this is an open format now, most version control systems aren't able to do a line-by-line diff on the zip, so effectively you will be checking in the spreadsheet as though it is a binary format.

This means you will have to be careful about ensuring only one person edits the spreadsheet at a time, as you won't be able to merge different versions automatically.

Note on Windows / Eclipse Usage

Eclipse gets confused about Windows Temporary Files if they are in the build path (e.g. src/test/resources). This means that if you have Excel open, Eclipse stops building your project. But, there is a simple workaround for this, which is to add an exclusion pattern like so:

Eclipse Exclusion Pattern

If you are generating the Eclipse .classpath file using Maven, you can add this to your maven pom.xml file to do the same thing:

<project>
  ...
  <build>
    ...
    <resources>
      <resource>
        <directory>src/main/resources</directory>
        <filtering>true</filtering>
        <includes>
          <exclude>**/~$*.xlsx</include>
        </includes>
      </resource>
      ...
    </resources>
    ...
  </build>
  ...
</project>

Additionally, if you are editing files in Excel, it is good practice to turn on the Workspace refresh options so that Eclipse can keep track of the changes you make and keep your bin/ directory up-to-date.

Documentation

  1. beginners tutorial
  2. Specification
org.concordion

Versions

Version
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.2
2.0.0
1.0.7
1.0.6
1.0.5
1.0.2
1.0.1
1.0.0
0.1.1
0.1