Add attachment to form (SP) via ATF is not working

Krishnakant Arv
Tera Expert

In record producer I am trying to automate using Automated test framework (ATF). When I open the form and fill the variables I have attachment field mandatory When am trying to add attachment using "Add attachment to form(SP) am not able to do that & I am getting "invalid form" and  Can someone help me with test steps please.

KrishnakantArv_0-1675155643403.png

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Krishnakant Arv 

I believe you can add file to catalog form but not to attachment type variable

Did you try to use Set Variable Value (SP) step and see if there is any option to add file to it?

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

Hello @Ankur Bawiskar 

Thanks for your reply!

Yes I tried to use Set Variable Value(SP) step but there is not any option available to add attachment in this step. Sharing ss for same

KrishnakantArv_0-1675401800647.png

 

@Krishnakant Arv 

then it might not be supported by ATF for the attachment variable.

You cannot continue in that case then

You are in which version? check if this capability is present in latest Tokyo version etc

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

SoniaShridhar13
Giga Guru

@Krishnakant Arv  Hi! 

Unfortunately, we do not have an ATF test step that could fulfill the requirement - Attach a file to the catalog item.

However when using the test step "Add Attachments to Form (SP)" - there is a chance of a successfully completed test step to attach to the catalog item on the service portal page. Whether this is successful or not depends on the customizations on the page.

 

Please mar it hepful if it helps