File Attachments For Acceptance Criteria - techtalk/SpecLog-Resources GitHub Wiki
Files and images can be attached to Acceptance Criteria. Only one attachment can be stored per acceptance criterion.
To add an attachment:
- Open the menu (small triangle on the right of the criterion) and select Attach File from the menu. Browse to and select the desired file.
- Paste the contents of your clipboard using Ctrl+V.
Double-click on an attachment or its icon to open it. Note that only a copy of the attachment is opened; any changes you made are not applied to the attachment in SpecLog.
You can define a maximum size for attachments in speclog.server.exe.config
using the MaxAttachmentSize
key:
<add key="MaxAttachmentSize" value="-1"/>
The default value of -1 means that no limits are applied to the size of attachments. To change the maximum size, enter the desired value (in MB), e.g. for 4 MB:
<add key="MaxAttachmentSize" value="4"/>
If you are using TFS, ensure that the maximum attachment size in SpecLog does not exceed the maximum size configured in TFS (see below).
By default, the maximum size of attachments in TFS is 4 MB. You can change the maximum attachment size in your configuration. Details on setting the attachment size in TFS can be found here.
If you are synchronising SpecLog repositories with TFS, you should therefore ensure that the maximum attachment size in SpecLog and TFS are the same. If attachments in SpecLog are too large to be added to TFS, you will receive a Microsoft.TeamFoundation.WorkItemTracking.Client.FileAttachmentException
.