Script Assertion to get token and set it as http header to the next test step
问题 How to write a script(assertion) in order to get the randomAccessToken as output from the given code.The code is in json format. { "status": "Success", "code": 1000, "message": "Random access token generated", "randomAccessToken": "ef12286f-3263-4c3b-949a-3a43497254e2-20162124112138-1722093936686484240" } UPDATE from comment: I need the header name as "randomAccesstoken" but for the next TestStep because to run that I need this info. 回答1: Have grrovy script assertion and paste the below code.