[Help] Attachment testing ATF

Jordan14
Giga Expert

Hello,

I'm currently using the ATF module to test my incident forms and I would like to test the "manage attachments" area.

However, when I go to add a test step I can't to find the option which allows me to do this.

Any ideas?

Here's a screenshot of the "manage attachments" tab:

attachments tab.png

Kind Regards,

Jordan

6 REPLIES 6

Soumita3
Tera Expert

Hi,

 

To test the attachment for the incident table, you need to use "Record Query" test step and add the table as "sys_attachment" .

There you need to query it using the sys_id and the file name of the attachment in the incident table.

Then, click on the open an existing record and use the black button to get the previous step value which will help you to get the screenshot of the opened form and helps you see the record.

 

Please mark the answer as correct if this helps.

 

Thanks.

Monmita Choudhu
ServiceNow Employee
ServiceNow Employee

Hi,

We have new steps to support the following cases in the New York release:

  •  Form - Add Attachments to Form
  •  Server - Add Attachments to Existing Record

https://docs.servicenow.com/bundle/newyork-application-development/page/administer/auto-test-framewo...