Add attachment to form (SP) via ATF is not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 01:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 01:40 AM
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?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 09:24 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2023 10:55 PM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2023 01:43 AM
@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