sri*_*sri 5 java selenium cucumber
当我提交单个功能文件时,它可以完美运行.我想将具有多个功能文件的功能文件夹路径传递给runner脚本.任何人都可以帮助执行多个功能文件?
所有功能文件都具有相同的步骤,但数据不同,文件名不同.
@RunWith(Cucumber.class)
@CucumberOptions(format = {"pretty"}, features =
"C:\\TESTER\\Execution\\uidata\\featurefiles\\",
glue={"com.test.auto.stepdefs"},dryRun=false)
public class CucumberTest {
}
Run Code Online (Sandbox Code Playgroud)
我感谢你的帮助.
这是针对 Java-Cucumber 用户 :: 多个功能是 1.Smoketest 2. Logintest 那么你的 Junit runner java 文件应该如下所示
@RunWith(Cucumber.class)
@CucumberOptions
(features = "src/test/java/testStep/",#Path for the Feature files Folder.Given you have smoke.feature and login.feature files present in the Path#
plugin ={"pretty","html:reports/test-report"},#Path for the Reports Html Folder#
tags= {"@smoke,@login"})#Declaring multiple Feature names of files#
Run Code Online (Sandbox Code Playgroud)
——干杯
| 归档时间: |
|
| 查看次数: |
16110 次 |
| 最近记录: |