【发布时间】:2021-12-28 09:29:20
【问题描述】:
我在我的项目中使用 cucumber testNG,并且已经添加了一些基于 Configuring BDD for execution 和 QAF Cucumber 的配置,但是当我运行它时,GherkinScenarioFactory 没有运行任何测试。
[main] ERROR com.qmetry.qaf.automation.util.PropertyUtil - resources\application.properties (The system cannot find the path specified)
[main] INFO com.qmetry.qaf.automation.core.ConfigurationManager - ISFW build info: {qaf-Type=core, qaf-Revision=15, qaf-Version=2.1, qaf-Build-Time=20-N
ov-2019 22:28:06}
[main] ERROR com.qmetry.qaf.automation.core.ConfigurationManager - D:\Automation\resources not exist!
include groups []
exclude groups: [] Scanarios location: resources/features
[main] INFO com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory - scenario.file.loc[Ljava.lang.String;@400cff1a
[main] INFO com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory - total test found: 0
我添加了依赖 qaf 和 qaf-cucumber 版本为 2.1.15。我还在步骤文件中添加了 @QAFTestStepProvider 注释。这是我的 testng.xml 文件:
<suite name="MyTest">
<test name="ComparationTest" >
<parameter name="step.provider.pkg" value="com.example.steps" />
<parameter name="scenario.file.loc" value="resources/features" />
<classes>
<class name="com.qmetry.qaf.automation.step.client.gherkin.GherkinScenarioFactory" />
</classes>
</test>
在我添加的功能文件中:示例:{'datafile': 'resources/data/data.xls'} 最后在黄瓜跑步者中,我添加了插件“com.qmetry.qaf.automation.cucumber.QAFCucumberPlugin”
我还在学习,谁能告诉我我错过了什么?
【问题讨论】:
-
请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
标签: cucumber-jvm gherkin cucumber-java qaf