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”:“charles.morris@reqres.in”,“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.