I have created the below directory:
**features --> feature file
functionlibrary--> StepDefinitions.java
root --> Runner.java**
Imported the selenium & Cucumber jar files into the project
Here are the images of the project along with the error, please help me with the issue. ##
我正在通过“黄瓜功能”运行功能文件 然后发生以下错误# 功能:组名
Scenario: Access the Group page in an application
Given User is on meetings Homepage
When User click to Menu
And Select the Group page
Then Group page should display
Scenario: Group saved, group exists with same initials
Given User is on Group page
When User search the group name
And initials entered have been used in another group
And Click to Save button
Then the system will raise a validation error and not save the group
Scenario: Group saved, group does not exist with same initials
Given User is on Group page
When User search the group name
And initials entered have not been used in another group
And Click to Save button
Then the system will save the group as normal
#[Runner类] 通过右键单击运行runner.java时->以-> JUnit运行 然后发生右侧错误#
package root;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(features ="src/Features",glue = {"functionlibrary"})
public class Runner {
}
#[步骤定义] 当前,其空白(一旦功能文件成功执行,然后在控制台输出上将出现)将粘贴到步骤定义中。#
[1]: https://i.stack.imgur.com/Z3lZC.png
[2]: https://i.stack.imgur.com/WTZ8R.png
[3]: https://i.stack.imgur.com/bSDwg.png