---
title: fileURL
framework: xctest
role: symbol
role_heading: Instance Property
path: xctest/xctsourcecodelocation/fileurl
---

# fileURL

A file URL that represents the file-system location of the source code file.

## Declaration

```swift
var fileURL: URL { get }
```

## See Also

### Source Location Information

- [lineNumber](xctest/xctsourcecodelocation/linenumber.md)
