ATF - How to validate SetAbortAction?

rohitservicenow
Mega Guru

Hi, 

We have some server side validations on incident form and when the validation fails, the form submission is aborted.

I have difficulties achieving this using the ATFs. 

After submitting the field values, I am using the 'Submit a Form' step to submit the incident form to Server. Though the validation is failed, the form is being submitted to the server successfully. When I do the same validation from UI, the validation works fine and the form submission is cancelled. 

Does anyone know how to handle this situations?

 

rohitservicenow_0-1696284557080.png

 

Thank you

Rohit

 

4 REPLIES 4

Harish KM
Kilo Patron
Kilo Patron

Hello, I just tested ATF in Vancouver.It works fine. Example below, BR aborts incident creation when cateogry is Network.

 

HarishKM_0-1696299053721.png

 

Regards
Harish

That's nice, could you please share what is selected in Assert type?

Assert type = form submitted to server

 

HarishKM_0-1696304779942.png

 

Regards
Harish

Shaqeel
Mega Sage

Hi @rohitservicenow 

 

You can use Assert type as "Form submission cancelled in browser".

Shaqeel_0-1696406697516.png

 

Regrds

Shaqeel


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel