# 自动测试组

通过测试到测试 URL 的延迟，自动选择要使用的策略。你可以在通用设置中更改测试 URL，或者覆盖某个策略的测试 URL。

`AutoTestGroup = url-test, ProxySOCKS5, ProxySOCKS5TLS`

### 临时覆盖 (Temporary Override)

你可以通过手动选择策略来临时覆盖自动测试的结果。

* 在 Surge Mac 中，你可以在主菜单中对应的组里找到覆盖选项。
* 在 Surge iOS 中，你可以在策略组视图中长按对应策略的菜单找到覆盖选项。

### 参数

#### interval: 可选，单位为秒，默认值：600（秒）

基准测试结果将在该间隔时间后被丢弃。如果该策略组被使用，将会发生重新测试。

#### tolerance: 可选，单位为毫秒，默认值：100（毫秒）

仅当新的获胜者的得分高于旧的获胜者的得分加上容差时，才会更改策略。

此选项可防止得分相似的策略不断交替。

#### timeout: 可选，单位为秒，默认值：5（秒）

如果在超时时间内未完成，则放弃该策略。

#### evaluate-before-use: 可选，布尔值，默认值：false

默认情况下，第一次使用自动测试策略组时，为了不影响请求，它会首先使用策略组中的第一个策略进行访问，同时触发该策略组的测试。

如果启用了此选项，那么在第一次使用自动测试策略组时，它将触发策略组的测试并等待测试完成，然后再使用所选结果发出请求。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://surge.mitsea.com/policy-group/url-test.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
