Getting error FAILURE: Validations failed. Failed to Order Item in ATF

Suresh Komirish
Kilo Contributor

Getting error Getting error FAILURE: Validations failed. Failed to Order Item in ATF.  It is happening when executed tests on Service portal using customized widgets.  Please provide suggest how we can run ATF tests on Customized widgets. 

 

4 REPLIES 4

NickSchwartzGAI
Kilo Contributor

Hello! I have the same exact question, the rest of my steps are successful but it will not order at the end, which is my final step. Have you learned anything since a month ago? Thanks

melboschee
Tera Contributor

Did you ever get an answer to this?  Having same issue.

The SN Nerd
Giga Sage
Giga Sage

Have you tried increasing the timeout to 15 seconds?

Either that or just change the assertion type to nothing as a workaround until this is fixed.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

hammad ul aziz2
Mega Guru

Hi,

I know its too late to reply to this question but I came accross the same error.

So the problem on my side was that we were using cutom widget and someone from the developer team has messed up with this ATF section inside the client controller script which was actually casuing Failure while ordering item(SP) so adjust the code accordingly and ATF started working back again. 

The actual problem was OOB order item(SP) was calling a method with a parameter but inside the custom widget we dont have such method at that time.

here is the screenshot of code that you probably dont want to mess with while customizing the widget.find_real_file.png