Hi!!! I need Help
i have a GET request which returns:
[
{
âContractorCompanyNameâ: null,
âLastNameâ: âLopezâ,
âSupervisorTechnicianNumâ: âAA23DCâ,
âSignatureCaptureCapableIndâ: âYâ,
âLastLoginDateTimeâ: â2023-05-29T11:54:07-03:00â,
âPhoneNumâ: null,
âAltNumâ: null,
âGPSDeviceNumâ: âgpsandroid-10106â,
âlicensesâ: null,
âEmployeeIdâ: null,
âeCardContactHoursâ: null,
âTechnicianNumâ: âAQ21SAD007â
}
]
I want to add asertion and tried this:
pm.test(âValidar tecnicoâ, function () {
var jsonData = pm.response.json();
pm.expect(jsonData.TechnicianNum).to.equals(âAQ21SAD007â);
});
But failed, returns this:
AssertionError: expected undefined to equal âAQ21SAD007â
Any help please.
Thank you so much!