Install
openclaw skills install 3d-pet-checkout-testClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
执行 3D Pet 宠物下单测试完整流程,包含登录、选择产品、上传图片、等待生成、验证结账。用于自动化测试 joyarti 3D 宠物产品购买流程。
openclaw skills install 3d-pet-checkout-test执行 3D 宠物产品下单完整流程,验证购买路径是否正常。
| 配置 | 环境变量 | 默认值 |
|---|---|---|
| 网站 | - | https://joyarti.com |
| 账号邮箱 | JOYARTI_EMAIL | (无默认值,请设置) |
| 账号密码 | JOYARTI_PASSWORD | (无默认值,请设置) |
| 测试图片 | JOYARTI_IMAGE_URL | (可选) |
| 推送目标 | FEISHU_TARGET | (无默认值,需配置) |
在运行前设置环境变量(可选,如不设置则使用默认值):
export JOYARTI_EMAIL="your-email@example.com"
export JOYARTI_PASSWORD="your-password"
export JOYARTI_IMAGE_URL="https://example.com/image.jpg"
export FEISHU_TARGET="chat:oc_xxxxxxxxxxxxxxxxxx"
CDP_SCRIPT="${WORKSPACE}/cdp_upload.py" # 或从 skill 目录读取
python3 "$CDP_SCRIPT" /tmp/openclaw/uploads/pet_image.jpg joyarti
OK: files=1ERR: ...sleep 30 && curl -s http://127.0.0.1:18800/json/list | python3 -c "
import json,sys
tabs=json.load(sys.stdin)
for t in tabs:
if 'joyarti' in t.get('url','') and 'projectId' in t.get('url',''):
print('DONE:', t['url'])
"
DONE: 即生成完成,提取 projectId每个 Step 开始和完成必须发消息到飞书群:
message(action=send, channel=feishu, target=FEISHU_TARGET, message="...")
⏳ Step X: xxx 开始...✅ Step X: xxx 完成 — {关键结果}❌ Step X: xxx 失败 — {原因}🧪 3D Pet 下单测试报告
时间:{startTime}–{endTime}(约 {duration} 分钟)
**账号:** JOYARTI_EMAIL
A: 登录 - {结果}
B: 选择产品 - {结果}
C: 上传图片 - {结果}
D: 3D 生成 - {结果}
E: 结账验证 - {结果}
projectId: {projectId}
产品: {product}
价格: {price}
结论:{通过/失败}
querySelectorAll('button') 限定browser.upload() 不触发 React onChangebrowser.act kind=wait timeMs>20000