I have a minor of a problem.I sent my version to them which was correct and worked,but they wanted me to use groovy lists.I am currently trying to improve the code without the for loop for now.
But it always pops up an error.Any clues on how to fix it?
You are just in time! I am on the last step but I have a major problem.The request gives you a response that contains token,expiry date,status and a result.Currently each time you run the test the token and the expire date change.I don't really know how to store it in the list type variable for the assertion.For an example I handelded the 2nd case this way :
And it works.I want to do the same with the first case where I store the parameters and then compare the lists from the groovy script.Although because it changes every time I would have to hardcode it like this :
assert jsonSlurper.code== "Success" which they told me not to do.It is currently 3 am and I really want to finish it today if possible.