Files
omni-notify-test/README.md
home-PC 658154aca7 feat(app): 初始化 OmniNotify 测试工具
创建基于 .NET 8 WPF 的桌面测试程序,支持配置通知接口、频道、标题和正文,并通过内置模板快速发送不同类型的测试消息。

实现服务检测、单次发送、自动定时发送、模板轮换、批量发送、非法频道切换和发送日志记录,便于验证 OmniNotify 本地消息 API 的基础行为与异常场景。

Initial-Commit: true
2026-05-19 01:30:40 +08:00

38 lines
901 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# OmniNotifyTest
OmniNotifyTest 是一个用于测试 OmniNotify 本地消息 API 的 WPF 桌面工具。
## 功能
- 手动向 OmniNotify 发送单条通知
- 编辑目标地址、频道、标题和正文
- 使用内置模板测试普通消息、长文本、空标题、特殊字符和告警内容
- 自动定时发送,可选择轮换模板
- 快速批量发送,用于测试限流和熔断
- 一键切换到通常不存在的频道,用于测试 `IllegalChannel`
- 记录每次请求的时间、频道、标题、HTTP 状态和响应结果
## 运行
先启动 OmniNotify并确保需要测试的频道已经在 OmniNotify 主程序中创建。
```powershell
dotnet run
```
默认发送地址为:
```text
http://127.0.0.1:19845/notify
```
OmniNotify 接收的 JSON 结构:
```json
{
"channel": "default",
"title": "测试通知",
"body": "这是一条测试消息。"
}
```