Java 如何执行;“功能文件”;黄瓜与TestNG并行使用
我用黄瓜和TestNG。我有多个特征文件,我需要并行执行特征文件。Max,我需要创建2-3个线程 假设我有两个功能文件,其中一个功能文件包含一个场景,另一个功能文件包含一个有两行的场景大纲Java 如何执行;“功能文件”;黄瓜与TestNG并行使用,java,automation,cucumber,testng,Java,Automation,Cucumber,Testng,我用黄瓜和TestNG。我有多个特征文件,我需要并行执行特征文件。Max,我需要创建2-3个线程 假设我有两个功能文件,其中一个功能文件包含一个场景,另一个功能文件包含一个有两行的场景大纲 Feature: FeatureFile One Scenario: AAAAA Given User opens the browser and launch the XXXXX application When the user clicks on "ABCD"
Feature: FeatureFile One
Scenario: AAAAA
Given User opens the browser and launch the XXXXX application
When the user clicks on "ABCD" tile from homeScreen
And the user clicks on "Testing" tab
Then the user should redirectied to "Testing" screen
And Close the Browser and Generate Report inside ExecutionReports Folder
Feature: FeatureFile Two
Scenario Outline: BBBBB
Given User opens the browser and launch the XXXXX application
When the user clicks on "<ABCD>" tile from homeScreen
And the user clicks on "<Testing>" tab
Then the user should redirectied to "<Testing>" screen
And Close the Browser and Generate Report inside ExecutionReports Folder
Examples:
|ABCD|Testing|
|A|Home|
|B|Logout|
功能:功能文件一
场景:AAAA
给定用户打开浏览器并启动XXXXX应用程序
当用户从主屏幕单击“ABCD”平铺时
用户点击“测试”选项卡
然后用户应重定向到“测试”屏幕
然后关闭浏览器并在ExecutionReports文件夹中生成报告
功能:功能文件二
场景大纲:BBBBB
给定用户打开浏览器并启动XXXXX应用程序
当用户从主屏幕单击“”平铺时
然后用户单击“”选项卡
然后用户应重定向到“”屏幕
然后关闭浏览器并在ExecutionReports文件夹中生成报告
示例:
|ABCD |测试|
|家|
|B |注销|
注意-功能文件应要求并行执行,而不是场景或场景大纲行
请建议