---
title: name
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctactivity/name
---

# name

A human-readable name for the activity.

## Declaration

```swift
var name: String { get }
```

## Discussion

Discussion The activity’s name is used to group the activity within test output in Xcode test reports. For activities created with the XCTContext runActivityNamed:block: class method, the name property will match the name parameter passed to the class method.
