【问题标题】:Karate [Functional Automation and Performance Scripts are running in simultaneously空手道 [功能自动化和性能脚本同时运行
【发布时间】:2020-07-29 17:21:06
【问题描述】:

这里有没有人体验过使用 Karate-Gatling 更新功能自动化项目的 POM,以便能够重复使用功能脚本来提高性能,但是在执行时会触发两个测试?

mvn test "-Dkarate.env=dev" -Dkarate.options="--tags @FunctionalScript classpath:services/project/functional.feature" -Dtest=TestRunner

上面的 mvn 应该只运行功能自动化脚本,但性能脚本也会在此之后立即触发。

提前致谢!

【问题讨论】:

  • 抱歉忽略了这一点,彼得。这很尴尬。 :(

标签: api karate


【解决方案1】:

这取决于您如何设置 maven 项目。如果您的 gatling 插件设置中有以下 sn-p,请将其删除:

  <executions>
      <execution>
          <phase>test</phase>
          <goals>
              <goal>test</goal>
          </goals>
      </execution>
  </executions> 

这里详细解释:https://github.com/intuit/karate/tree/develop/karate-gatling#maven

【讨论】:

  • 感谢彼得分享详细的解释链接!像往常一样感谢您的帮助。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-24
  • 1970-01-01
  • 1970-01-01
  • 2022-11-18
  • 1970-01-01
相关资源
最近更新 更多