AttachFile Method

Applies to TestComplete 15.40, last modified on March 25, 2022


Use this method to attach a file to the item that is stored in an issue-tracking system and to that the IssueTrackingItem object provides access. The file contents will be copied into the issue-tracking database.



IssueTrackingItemObj An expression, variable or parameter that specifies a reference to an IssueTrackingItem object
FileName [in]    Required    String    
Result None

Applies To

The method is applied to the following object:


The method has the following parameter:


Specifies the path and name of the file to be attached to the item.

Result Value



To view an example that demonstrates how to use the AttachFile method, see the Using Templates From Scripts section of the Using Issue-Tracking Templates From Tests help topic.

See Also

AttachFileLink Method
Integration With Issue-Tracking Systems
Using Issue-Tracking Templates From Tests

Highlight search results