ATF error: Compare Value step on Response Payload value on ATF throws 401 error

Snow preck
Tera Contributor

precilaK_0-1734005767835.png

1.Step Config: Compare Values 

 

2. Error Screenshot: ATF

precilaK_1-1734005941948.png

It shows 401 (error) and not 200 which is success! even after attaching tested payload. Is there any way to resolve this?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Snow preck 

Please use "Assert Status Code" step to compare instead of "Assert Response Payload" step

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Snow preck 

Please use "Assert Status Code" step to compare instead of "Assert Response Payload" step

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

It worked, Thanks for the suggestion @Ankur Bawiskar