I have a problem with using let created variables. I'm using RestFixture to get/post from http location and I do want to use this answer in another fixture:
|!-CustomRestFixture-!|http://addres |CONFIG|
|setHeader |Content-Type : application/json |
|setBody | {some JSON body} |
|POST | |200 |Content-Type: text/plain | |
|let |myvariable |body|//* | |
|comment | This is my variable : %myvariable% |
!|DecTable|
|my first value|my second value|is this equal?|
|aaa |aaa |true |
|%myvariable% |anything |ture |
Is there any solution for that ? Thanks in advance
I don't know the specifics of the let
keyword of RestFixture. But you can use variables using the standard Slim approach to define 'symbols' from decision/script tables. These symbols can then be used in any fixture.
Using my fixture library you could combine a (Json) Http Test and Compare Fixture to achieve what you describe.