audoWin/tests/test_case.yaml
2025-12-31 13:51:54 +08:00

30 lines
653 B
YAML

# test_case.yaml
name: 标准用户登录测试
description: 测试SauceDemo网站的登录流程
steps:
- action: open
value: "https://www.saucedemo.com/"
desc: "打开首页"
- action: input
locator: "id:user-name"
value: "standard_user"
desc: "输入用户名"
- action: input
locator: "id:password"
value: "secret_sauce"
desc: "输入密码"
- action: click
locator: "id:login-button"
desc: "点击登录按钮"
- action: wait
value: 1
desc: "强制等待1秒(可选)"
- action: assert_text
locator: "class:title"
value: "Products"
desc: "验证页面标题包含Products"