Skip to content

Commit de405e8

Browse files
Release 3.1.0 (#74)
1 parent 4a22f4e commit de405e8

12 files changed

Lines changed: 71 additions & 11 deletions

File tree

HowToDownload.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@ The core models for Tcases objects. For the current version, see the [release no
5151
</dependency>
5252
```
5353

54+
#### tcases-openapi
55+
(Since 3.1.0) Converts an OpenAPI v3 specification into test cases for a REST-ful API. For the current version, see the [release notes](ReleaseNotes.md).
56+
57+
```xml
58+
<dependency>
59+
<groupId>org.cornutum.tcases</groupId>
60+
<artifactId>tcases-openapi</artifactId>
61+
<version>...</version>
62+
</dependency>
63+
```
64+
5465
#### tcases-ant
5566
(Since 2.0.0) Provides an Ant task for running Tcases. For the current version, see the [release notes](ReleaseNotes.md).
5667

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
## What's New? ##
44

5-
* The latest version ([Tcases 3.0.2](ReleaseNotes.md#302)) is now available at the Maven Central Repository.
5+
* The latest version ([Tcases 3.1.0](ReleaseNotes.md#310)) is now available at the Maven Central Repository.
66
See [HowToDownload](HowToDownload.md) for download instructions.
77

8-
* Tcases 3.0.2 is a patch release to fix some problems [using JSON files](ReleaseNotes.md#302).
8+
* Tcases 3.1.0 adds two new capabilities: cardinality conditions and Tcases for OpenAPI. See the [release notes](ReleaseNotes.md#310) for details.
99

1010
* Subscribe to the [Tcases Forum](https://groups.google.com/d/forum/tcases) group to get notifications and share experiences with other Tcases users.
1111

@@ -31,6 +31,7 @@ Of course, the system test definition is not something you can execute directly.
3131

3232
* [Tcases: The Complete Guide](http://www.cornutum.org/tcases/docs/Tcases-Guide.htm)
3333
* [Tcases: The JSON Guide](http://www.cornutum.org/tcases/docs/Tcases-Json.htm): A companion to _The Complete Guide_ adding info specific to JSON
34+
* [Tcases for OpenAPI](tcases-openapi/README.md): Testing a REST-ful API? Generate test cases directly from your OpenAPI v3 spec.
3435
* [The Tcases Maven Plugin](http://www.cornutum.org/tcases/docs/tcases-maven-plugin/)
3536
* [How To Download Using Maven](HowToDownload.md)
3637
* [Model-Driven Testing Using Tcases](ModelDrivenTestingForAgileTeams.md)

ReleaseNotes.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Release Notes #
22

3+
## 3.1.0 ##
4+
5+
This release add two new capabilities to Tcases.
6+
7+
* **[Cardinality conditions](http://www.cornutum.org/tcases/docs/Tcases-Guide.htm#cardinalityConditions)**:
8+
This new family of conditions allows you to define when a value or a variable can be used based on
9+
how many times a certain property appears in a test case.
10+
11+
* **[Tcases for OpenAPI](tcases-openapi/README.md)**: Use Tcases to automatically generate test cases for your REST-ful API,
12+
based on an OpenAPI v3 specification.
13+
14+
Also included in this release:
15+
16+
* **Better backtracking reduces failures**: For some complex input models, Tcases must conduct a lengthy, trial-and-error search to find a combination
17+
of values that satisfies all constraints. That involves backtracking from preliminary value choices to try different choices. This
18+
release fixes a backtracking problem that could cause Tcases to give up the search prematurely and fail to complete a test case.
19+
320
## 3.0.2 ##
421

522
This is a patch release to fix the following problems using JSON files.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>org.cornutum.tcases</groupId>
88
<artifactId>tcases</artifactId>
99
<packaging>pom</packaging>
10-
<version>3.1.0-SNAPSHOT</version>
10+
<version>3.1.0</version>
1111

1212
<name>Tcases</name>
1313
<description>Generates test cases from system input space models</description>

tcases-ant/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>3.1.0-SNAPSHOT</version>
10+
<version>3.1.0</version>
1111
</parent>
1212

1313
<artifactId>tcases-ant</artifactId>

tcases-cli/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>3.1.0-SNAPSHOT</version>
10+
<version>3.1.0</version>
1111
</parent>
1212

1313
<artifactId>tcases-cli</artifactId>

tcases-io/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>3.1.0-SNAPSHOT</version>
10+
<version>3.1.0</version>
1111
</parent>
1212

1313
<artifactId>tcases-io</artifactId>

tcases-io/src/main/resources/schema/system-input.xsd

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,41 @@
3232
</xs:sequence>
3333
<xs:attribute name="property" type="xs:string"/>
3434
</xs:complexType>
35+
36+
<xs:complexType name="upperBoundType">
37+
<xs:attribute name="property" type="xs:string" use="required"/>
38+
<xs:attribute name="max" type="xs:integer" use="required"/>
39+
</xs:complexType>
40+
41+
<xs:complexType name="lowerBoundType">
42+
<xs:attribute name="property" type="xs:string" use="required"/>
43+
<xs:attribute name="min" type="xs:integer" use="required"/>
44+
</xs:complexType>
45+
46+
<xs:complexType name="equalsBoundType">
47+
<xs:attribute name="property" type="xs:string" use="required"/>
48+
<xs:attribute name="count" type="xs:integer" use="required"/>
49+
</xs:complexType>
50+
51+
<xs:complexType name="betweenBoundType">
52+
<xs:attribute name="property" type="xs:string" use="required"/>
53+
<xs:attribute name="min" type="xs:integer"/>
54+
<xs:attribute name="max" type="xs:integer"/>
55+
<xs:attribute name="exclusiveMin" type="xs:integer"/>
56+
<xs:attribute name="exclusiveMax" type="xs:integer"/>
57+
</xs:complexType>
3558

3659
<xs:complexType name="conditionType">
3760
<xs:choice>
3861
<xs:element name="AllOf" type="conditionExprType"/>
3962
<xs:element name="AnyOf" type="conditionExprType"/>
4063
<xs:element name="Not" type="conditionExprType"/>
64+
<xs:element name="LessThan" type="upperBoundType"/>
65+
<xs:element name="NotMoreThan" type="upperBoundType"/>
66+
<xs:element name="MoreThan" type="lowerBoundType"/>
67+
<xs:element name="NotLessThan" type="lowerBoundType"/>
68+
<xs:element name="Equals" type="equalsBoundType"/>
69+
<xs:element name="Between" type="betweenBoundType"/>
4170
</xs:choice>
4271
</xs:complexType>
4372

tcases-lib/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>3.1.0-SNAPSHOT</version>
10+
<version>3.1.0</version>
1111
</parent>
1212

1313
<artifactId>tcases-lib</artifactId>

tcases-maven-plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>org.cornutum.tcases</groupId>
99
<artifactId>tcases</artifactId>
10-
<version>3.1.0-SNAPSHOT</version>
10+
<version>3.1.0</version>
1111
</parent>
1212

1313
<artifactId>tcases-maven-plugin</artifactId>

0 commit comments

Comments
 (0)