How to verify that an attachment was attached to a record in ATF

_odamai_
Tera Guru

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

9 REPLIES 9

Shaqeel
Mega Sage

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

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?

Chidanand_VK
Tera Expert

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. 

Chidanand_VK_0-1740492243933.png

2.Enable the checkbox 'Pause before rollback' and click on 'Run Test' button.

Chidanand_VK_3-1740492549535.png

 

 

If my answer helped, please mark it as helpful or accept as the solution.

Regards,

Chidanand

Hi @Chidanand_VK 
Thanks for the reply. I will give it a try.