ctco / cukes

Cucumber DSL for testing RESTful Web Services
Apache License 2.0
112 stars 66 forks source link

Type checks should use JSON instead of JVM types #56

Open jromero opened 7 years ago

jromero commented 7 years ago

It seems to me like the following step should take the basic javascript/json data types and not the JVM datatypes. From an outside (business or engineer) when writing test steps you might want to check whether a value is a "number" but according to JSON there is no differentiation based on length instead it's simply a "number" type.

Current:

And response contains property "timeMs" of type "bigdecimal"

Proposal:

And response contains property "timeMs" of type "number"

Full list of accepted types based on http://www.w3schools.com/js/js_datatypes.asp :

AlexeyBuzdin commented 7 years ago

Hi, thanks for mentioning. We had that at early stages, then somehow switched to JVM types, because of some issues. I'll recheck this and come back with status update