How to verify that an attachment was attached to a record in ATF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2025 04:35 AM - edited 02-24-2025 04:36 AM
When I run a test with ATF, I can successfully attach a file using "Add Attachments to Form (SP)",
but I'm looking for a way to check whether the file has been confirmed to the target record.
The test shows success when ATF is run, but due to the ATF specifications,
the record is rolled back and I cannot confirm the record with the attached file after running it.
I have already tried the following, but it doesn't work.
① I have selected "Enable for all Steps" for the screenshot property of the test, but I cannot confirm the screenshot of the evidence when the file was attached to the record.
② Even if I add a "Record Query" step and query the file name and table SYSID column in the sys_attachment table, the query does not hit and ATF fails. (Probably it has already been rolled back with the success of the previous step)
Is there any other solution?
Thank you
Best Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 03:09 AM
Hi @_odamai_
There is no way of verifying that attachment is attached using "Add Attachments to Form (SP)" step.
If this test step pass successfully then only we get to know that attachment is attached.
You can look into the screenshot after this step.
Regards
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 05:02 PM
Hi @Shaqeel
Thanks for the reply. I can't see the attachment part of the screenshot, and the screenshot in the “Open an Existing Record” STEP seems to have no attachment, do you know of any solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 06:10 AM
Hi @_odamai_ ,
To pause the ATF before Rollback, run the ATF test in Debug mode. Once the ATF execution is completed, it will pause for 10 min
Steps:
1.Click on 'Debug Test' UI Action.
2.Enable the checkbox 'Pause before rollback' and click on 'Run Test' button.
If my answer helped, please mark it as helpful or accept as the solution.
Regards,
Chidanand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2025 05:04 PM
Hi @Chidanand_VK
Thanks for the reply. I will give it a try.