【问题标题】:Getting an error message when using 'cypress-testrail-reporter' plugin to integrate TestRail and Cypress使用 \'cypress-testrail-reporter\' 插件集成 TestRail 和 Cypress 时收到错误消息
【发布时间】:2022-10-14 07:38:29
【问题描述】:

我在 cypress.json 文件中的设置是:

 "reporter": "../../../../node_modules/cypress-testrail-reporter",
  "reporterOptions": {
     "host": "https://mydomain.testrail.io/",
    "domain": "mydomain.testrail.io",
    "username": "myemail@gmail.com",
    "password": "API password",
    "projectId": 1,
    "suiteId": 1,
    "runName": "Currency Test"
  }

运行赛普拉斯测试时,测试用例的状态会在 TestRail 中更新。但是,我最后看到了这个错误。

TypeError:无法读取未定义的属性(读取“拆分”)。

任何帮助将不胜感激!

【问题讨论】:

  • 我可以建议你在测试中加入一些东西吗?
  • 我在测试中有代码“cy.get('button').should('exist')”。

标签: typescript cypress testrail


【解决方案1】:

同样的问题在这里使用 Cypress 和 Typescript

【讨论】:

  • alejandro lenis,请不要添加我也是作为答案。它实际上并没有提供问题的答案。如果你有一个不同但相关的问题,那么ask它(如果它有助于提供上下文,请参考这个问题)。如果您对这个特定问题感兴趣,您可以upvote 它,留下comment,或者在您有足够的reputation 时启动bounty
猜你喜欢
  • 2021-12-05
  • 1970-01-01
  • 2022-09-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-11-06
  • 1970-01-01
相关资源
最近更新 更多