studio
latest
false
- 入门指南
- 设置和配置
- 自动化项目
- 依赖项
- 工作流类型
- 控制流程
- 文件比较
- 自动化最佳实践
- 源代码控件集成
- 调试
- 日志记录
- 诊断工具
- 工作流分析器
- 变量
- 参数
- 导入的命名空间
- 编码自动化
- 基于触发器的 Attended 自动化
- 对象存储库
- ScreenScrapeJavaSupport 工具
- 扩展程序
- Studio 测试
- 故障排除
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Studio 用户指南
上次更新日期 2026年2月18日
AI 生成的测试数据
You can generate test data that is highly specific for your testing needs, using the AI-powered capabilities offered by Autopilot™. Initially, Autopilot lets you input specific instructions, after which it produces arguments and variables that are relevant to both the instruction and the associated test data set. Additionally, you can instruct Autopilot to generate new arguments for your test data set that are later added to your test case.
先决条件
为了让 Autopilot 生成测试数据,您的测试用例必须包含我们当前支持的参数类型。查看支持的参数类型部分,以获取可以包含在测试用例中的参数类型列表。
支持的参数类型
AI 生成的测试数据支持的参数类型包括:
StringInt32,Int64DoubleDecimalBooleanCharByteSByteUInt16、UInt32、UInt64Single
为测试用例生成测试数据
要使用 Autopilot 为低代码或编码测试用例生成测试数据,请执行以下操作:
- 打开测试资源管理器。
- 右键选择要生成测试数据的测试用例,然后选择“添加测试数据”。
- 从“来源”下拉列表中,选择“使用 Autopilot 生成”。
- 在“写下提示词”文本字段中输入说明以生成第一轮测试数据。
- 作为可选步骤,您可以使用其他提示词说明增强生成的测试数据。 如果收到指示,Autopilot 会添加比当前参数更多的参数。然后,将其他参数添加到测试用例中。此外,您可以指示 Autopilot 生成一定数量的数据变体。
- 当您对生成的测试数据感到满意时,请选择“导入”,将数据添加到您的测试用例。
图 1. 使用 Autopilot 生成测试数据时的对话框

最佳实践
访问生成综合测试数据,查看有关有效生成 AI 驱动的测试数据的建议。最佳实践包含关于以下内容的提示:
- 如何为一组可靠的数据创建参数。
- How to use instructions for your preferred data combination methods.
- 如何使用提示词自定义数据集。