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:
- I'm getting data via post
- saving body as variable using let
- printing my variable in comment line to see that is really working
|!-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% |
- Then I would like to use it in another (custom made) fixture that compares two strings (second fixture is inside same test page) :
!|DecTable|
|my first value|my second value|is this equal?|
|aaa |aaa |true |
|%myvariable% |anything |ture |
- What I can noticed is my variable is not working anywhere else that in RestFixture. I can not pass is any further, but it suppose to be global
Is there any solution for that ? Thanks in advance
Aucun commentaire:
Enregistrer un commentaire