How to get the value of the rand property and set it

**Could you suggest what Have I do ? :frowning: **

In this ‘Skill check’ request, add a test script in the Tests tab that gets the value of the rand property in the response JSON and sets it as the value of a collection or environment variable named responseData. Hint: You’ll need to Send the request twice after adding your code because it won’t save the value until after the response is received the first time.

My question:

Details (like screenshots):

How I found the problem:

I’ve already tried:

You have to do what the text is telling you.

Which part are you struggling with?

If you are new to Postman, then I would suggest a visit to the Learning Centre.

Including the Postman Training links under “Other Resources”.

image

I would recommend the “Galaxy APIs 101” course first as it gets you used to the application features and layout.

Then the “Galaxy Testing and Automation” course which teaches you how to assert the responses and use variables.

More on variables.