Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions nodejs/docs/api/class-teststep.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,35 @@ testStep.titlePath();

## Properties

### attachments {#test-step-attachments}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.50</font><x-search>testStep.attachments</x-search>

The list of files or buffers attached in the step execution through [testInfo.attach()](/api/class-testinfo.mdx#test-info-attach).

**Usage**

```js
testStep.attachments
```

**Type**
- [Array]&lt;[Object]&gt;
- `name` [string]

Attachment name.
- `contentType` [string]

Content type of this attachment to properly present in the report, for example `'application/json'` or `'image/png'`.
- `path` [string] *(optional)*

Optional path on the filesystem to the attached file.
- `body` [Buffer] *(optional)*

Optional attachment body used instead of a file.

---

### category {#test-step-category}

<font size="2" style={{position: "relative", top: "-20px"}}>Added in: v1.10</font><x-search>testStep.category</x-search>
Expand Down
Loading