Testing file attachment field type using ATF

Lana Shostak
Tera Contributor

Hello,

is it possible to test adding the attachment to a file attachment field type using ATF.

I need to add an attachment to a field and verify it gets stored on the record.

find_real_file.png

1 ACCEPTED SOLUTION

Hi,

If the OOB step doesn't allow you to select any file to be added to that Attachment field then possibly it's not supported.

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Did you try to use Set Field value step and check if it is supported?

If it not then you cannot test it using ATF.

Regards
Ankur

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

Thank you, yes, I did try using Set Field value step.  It has allowed me to get passed it, by typing in some text.  However, it did not save it to the database.

Hi,

If the OOB step doesn't allow you to select any file to be added to that Attachment field then possibly it's not supported.

Regards
Ankur

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