json - Editing Rest recordings to fix response errors -


so have http rest recording file (.har) didn't write need fix errors/bugs. when play recordings using junit test wrote, generates failed responses, , xml files.

this failing session like: request(from recordings):

          { "name" : "allow driving", "permissions" : [ { "name" : "execute", "policy" : "grant" }]}] 

response:

      <failure>property "name" did not match. expected "allow driving" " typein driving". response context: ([5] name)</failure> 

and here generated response in text file:

{ "name" : " typein driving", "permissions" : [ { "name" : "execute", "policy" : "grant" } ] }, { "name" : "allow driving", "permissions" : [ { "name" : "execute", "policy" : "grant" } ] } ]

my question how response typein driving came since cant find anywhere on recording... please explanations helpful debugging rest recording.. thanks.

the error text you're showing suggests unit test framework expecting different value (typein driving) name parameter recorded in har file (allow driving). without understanding app or contents of junit test, hard further this...


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -