功能:验证登录屏幕的功能 场景:用户输入正确的凭据后将能够登录帐户
Given User is on Log In Page
When User enters Mail ID & Password
Then User gets the confirmation, "Welcome Back"
没有代码段正在工作,按 ctrl+空格键不会创建 stepDefs 文件。 并且颜色代码也不符合 IDE 颜色主题
最佳答案
请检查您的功能文件是否应按照以下格式对齐
Feature: Login scenario
Scenario: User will be able to Log In to the account after entering the correct credentials
Given User is on Log In Page
When User enters Mail ID & Password
Then User gets the confirmation, "Welcome Back"
还要检查对 Gherkin 语言的支持,Cucumber 测试工具使用该语言以及 cucumber java 插件安装来支持用 Java 编写的步骤定义。
Please check :
1. java properly installed on your machine.
2. Test Runner class is pointing to glue code package
关于java - cucumber 在 Intellij Idea 中无法工作 : Seems like IDE is not reading plug-ins,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60985218/