java - Cucumber Scenario Outline 只跑了一次,竟然有 3 个场景
问题描述
- .feature 文件:
Feature: Test Log In Functionality
Scenario: The user should be able to login with correct userName & Password
Given user is on Login Page
When user enters the correct UserName & Password
Then user gets the Confirmation
Scenario Outline: User should Log In with below credentials
Given user is on Login Page
When user enters the correct Email <UserName>
And user enters the correct Password <Password>
And user enters the Log In Button
Then user gets the Confirmation
Examples:
| UserName | Password |
| shoryak3@outlook.com | Test@1234 |
| tim@Testmail.com | trpass |
| Rich@TestMail.com | rwpass |
解决方案
推荐阅读
- html - _reboot.scss 正在覆盖我的自定义 CSS
- ios - 在 Swift 中将计算值作为参数传递
- unity3d - 当所有的点都被吃掉时,如何在 pakman 中结束游戏?
- python - 我无法使用 FIND_NEXT_SIBLING 而不是 PARENT 和 NEXT_ELEMENT 优化 beautifullsoup 查询
- bash - 如何在 bash 中使用 grep 显示所有以 1 个大写字母开头的单词?
- typescript - 如何避免在 TypeScript 中检查所有字段是否可以为空?
- python - 使用 YouTube API 从用户提供的搜索词中获取 YouTube 视频 ID
- python - Pynput 键进入循环跳过输入命令
- powerbi - 如何在每次刷新期间存储计算表的历史数据?
- node.js - 错误 [ERR_HTTP_HEADERS_SENT]:在将标头发送到客户端后无法设置标头 - Node.Js、Express、Postgres