Skill Checker error

I have written the below code I have checked it with the console it’s giving the right result but still getting skill check incomplete

Hi, thanks for sharing the screenshot here. Take a look at our Learning Center docs on scripting: Test script examples | Postman Learning Center

There should be examples in there which include how to access the response body.

Hi @rubysattarstream thanks for replying but i tried to fix it even I am getting the same error.

What is jsonData.rand supposed to return?

You’ll need to add something like this to capture the value from the response, as a Collection Variable.

const response = pm.response.json();

pm.test("Skill Check Test", () => {
    pm.collectionVariables.set("responseData", response.rand);
});

I’m not really sure where/how you constructed the different parts of your JS test code :thinking: