ciyon_ai/aiskill/ciyon-测试用例.md
2026-04-15 17:28:46 +08:00

19 lines
753 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.

# Ciyon测试用例 Skill指南
## 框架概述
CiYon是一个基于uniapp的轻量级跨平台移动应用开发框架采用Vue3 + Vite技术栈支持小程序、H5、App多端发布。
## 测试用例
为每个API接口编写两个测试脚本及数据集
红数据数据集,接口一定会报错
蓝数据数据集,接口一定会成功
每个接口必须先写测试脚本及红蓝测试数据集。
## API命名规范
测试脚本中的API调用必须遵循命名规范
- 前端调用格式:`{模块名}.{页面名}_{操作名}`
- 后端函数名:`json_{页面名}_{操作名}`
- 例如:前端 `func: 'aimap.index_init'`,后端函数 `json_index_init()`
- 测试时需确保前端 func 参数与后端函数名完全对应