0.8.1 : Maintenance
Maintenance release introducing the following changes.
- DSL structure changed : step statements are not limited to
I
,a
,assert
anymore. - New APIs on Http DSL's built-in steps :
addHeaders
andaddParams
without losing the existing values. - New bloc
AttachAs
which behaves likeAttach
but gives an additional label to the nested step execution.
Scenario("demonstrate DSL composition") {
And assert superhero_exists("batman")
}
def superhero_exists(name: String) =
AttachAs("superhero exists") {
When I get("/superheroes/Batman")
Then assert status.is(200)
}
One breaking change to notice:
assert_not
has been removed as it was impractical and badly designed. Please report any issues with this decision.