【问题标题】:How to overrides testCaseProperties like projectProperties or testSuiteProperties in pom.xml file?如何覆盖 pom.xml 文件中的 testCaseProperties,如 projectProperties 或 testSuiteProperties?
【发布时间】:2019-06-02 04:43:57
【问题描述】:

我想用Maven运行soapui,但是这里有问题,在网上找不到任何解决方案,想知道:How to overrides testCaseProperties like projectProperties or testSuiteProperties in pom.xml文件?

参考https://github.com/redfish4ktc/maven-soapui-extension-plugin/wiki/Tips

截图如下: Screenshots

【问题讨论】:

    标签: maven soapui


    【解决方案1】:

    您链接到的 Maven 插件显然不支持该功能。那我相信你受限于命令行界面给出的选项。

    https://www.soapui.org/test-automation/running-from-command-line/functional-tests.html

    据此,我猜你不能。不仅仅是使用这个。

    但是,您可以考虑为您的 TestSuite 创建某种设置脚本,该脚本读取项目属性,可以从命令行进行设置。然后,该属性可能是某种输入文件的路径和名称,然后脚本可以读取它,并导入您在其中指定的任何设置以设置您可能希望的任何变量。

    【讨论】:

      猜你喜欢
      • 2019-09-05
      • 1970-01-01
      • 1970-01-01
      • 2017-07-31
      • 2011-12-20
      • 2020-03-23
      • 2021-05-29
      • 2016-03-15
      • 1970-01-01
      相关资源
      最近更新 更多