【问题标题】:Using cypress-testrail-accumulative-reporter使用 cypress-testrail-accumulative-reporter
【发布时间】:2021-12-05 12:28:33
【问题描述】:

我已设置 cypress-testrail-accumulative-reporter 用于我的项目。 但是每次创建的测试运行都包含测试轨道案例中存在的所有内容。 我需要的是只使用回归集创建的测试运行。 例如,我有 1000 个案例,只有 10 个是回归的。 当我输入 npx cypress run 测试运行时,应该只创建 10 个案例并填充结果,而不是 1000 个。

你能帮我解决这个问题吗?

"reporter": "cypress-testrail-accumulative-reporter",
  "reporterOptions": {
  "domain": "domain",
  "username": "name",
  "password": "pass",
  "projectId": 1,
  "suiteId": 1,
  "allowFailedScreenshotUpload": true,
  "runName": "Regression"

【问题讨论】:

    标签: testing automated-tests cypress coded-ui-tests testrail


    【解决方案1】:

    默认情况下,npx cypress run 将无头运行所有测试。

    您必须使用npx cypress run --spec "<LIST OF SPECFILES>" 来执行您的特定测试。

    例如cypress run --spec "cypress/integration/examples/actions.spec.js,cypress/integration/examples/files.spec.js"

    请查看https://docs.cypress.io/guides/guides/command-line#cypress-run,了解有关 cypress run 的更多详细信息。

    【讨论】:

    • 感谢您的回答。我知道如何运行特定案例,但是如何仅在这些案例中自动在 TestRail 中创建 TestRun?目前我的 TestRun 包含来自 TestRail 的所有测试,甚至没有在 cypress 中自动化。
    猜你喜欢
    • 1970-01-01
    • 2022-09-27
    • 2022-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多