for-GET / katt

KATT (Klarna API Testing Tool) is an HTTP-based API testing tool for Erlang.
https://github.com/for-GET/katt
Apache License 2.0
119 stars 16 forks source link

Cannot store response Integers in Param #64

Closed mekanixdk closed 6 years ago

mekanixdk commented 6 years ago

I have this small test:

POST http://httpbin.org/post
> Accept: application/json
> Content-Type: application/json
> User-Agent: KATT
> Content-Type: application/json
{
    "myint":123
}
< 200
< Content-Type: application/json
{
    "json": {
        "myint": "{{>myint}}",
    }
}

It fails with the error

{fail,[{not_equal,{"/body/json/myint","{{>myint}}",123}}]}

Looks like KATT will do a comparison rather than saving the variable into myint.

andreineculau commented 6 years ago

once again, a big thank you!

mekanixdk commented 6 years ago

This is truly awesome. Thanks for being this quick with the fixes, saved me a lot of time. :-)