How to upload mandatory Service Portal Attachment Variables in ATF before submitting a Record Produc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team,
I am working on an ATF test for a Service Portal Record Producer that creates a Case (sn_customerservice_case).
The Record Producer contains two mandatory attachment variables:
- Original Invoice (original_invoice_used)
- Replanted Invoice (replanted_invoice)
When inspecting the widget, I can see the variable type is rendered as:
and the Upload button calls:
There is also a hidden file input:
My ATF currently uses:
- Open Service Portal Page
- Open Record Producer (SP)
- Set Variable Values (SP)
- Submit Record Producer (SP)
The issue is that the attachment variables are mandatory and ATF cannot submit the form unless files are uploaded.
I do not see a "Set File" ATF step in my instance.
Questions
- Has anyone successfully automated uploading files to sc_attachment variables in a Service Portal Record Producer using ATF?
- Is there any OOB ATF step available for attachment variables in Service Portal?
- Can attachment variables be populated through a Custom UI Step or Client Test Runner step?
- What is the recommended way to test Record Producers with mandatory attachment variables in ATF?
Any examples or best practices would be greatly appreciated.
Thanks in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Attach the attachments to the test itself, and make note of their sys_ids. You can get those by navigating to the sys_attachment table.
You can then use the set variable value (sp) step and hard code it with the sys_id you captured previously
