Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yaml模式下,在有多步执行步骤的情况下,第一步报错后希望能支持直接停止运行 #252

Open
shenxingqi opened this issue Jan 7, 2025 · 0 comments

Comments

@shenxingqi
Copy link

yaml内容参考以下内容,希望在第一个task“查询是否报错”,如果断言失败,则直接停止运行,不往下运行,在交流群里已跟宇涛沟通过,需要后续支持

target:
url: https://crm-test.com.cn/crm-order-web/sales-management/order-management
cookie: cookies.json

tasks:

  • name: 查看是否报错
    flow:

    • aiAssert: 页面有报错弹框,则断言失败
  • name: 输入组织
    flow:

    • ai: 找到【组织】输入框,输入“杭州”,停顿2秒,在弹出的下拉框组件中选中“杭州西湖办事处”
    • sleep: 1000
  • name: 点击查询
    flow:
    - ai: 点击查询按钮
    - sleep: 1000
    - aiQuery: "{customerCode: string, customerName: string}[], 找到列表里的社区编码和社区名称"
    name: customerCode # 查询结果在 JSON 输出中的 key

  • name: 查看是否报错
    flow:

    • ai: 点击查询按钮
    • sleep: 1000
    • aiAssert: 查看
Image
zhoushaw pushed a commit that referenced this issue Jan 8, 2025
* feat: allow continue on error in yaml #252

* doc: update doc for new param

* fix: ignore yaml file in node-modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant