Can you help me in this task please

Here is an example that tests the equivalence between the http request response and the string
supplied as an argument:

pm.test(“Le corps est une chaine de caractères”, function () {
pm.response.to.have.body(“whole-body-text”);
});

Write the test that checks the similarity between the return of the query:
https://reqres.in/api/users/5
and the following string:

{“data”:{“id”:5,“email”:“[email protected]”,“first_name”:“Charles”,“last_name”:“Mor
ris”,“avatar”:“https://reqres.in/img/faces/5-
image.jpg”},“support”:{“url”:“Reqres - A hosted REST-API ready to respond to your AJAX requests keep ReqRes
free, contributions towards server costs are appreciated!”}}

What do you notice?
Indicate the web address of an online application capable of helping you solve this
issue.
Write the corrected version of this string.

I’ve seen that body before.

Is this some sort of training course? In which case, us telling you the answer defeats the purpose of the training.

This is a basic assertion, so I can only recommend that you visit the Postman Learning Centre.

Overview | Postman Learning Center

In particular, 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.

Then the “Galaxy Testing and Automation” course which teaches you how to assert the responses (which should provide you the answer to your question).