【发布时间】:2016-12-07 22:38:14
【问题描述】:
我开始从事测试自动化工作,目前我遇到了一个小问题。
我制作了小黄瓜场景:
Feature: Post Draft
Scenario: Successful Login with Valid Credentials
Given User go to Admin Page
Then User enters UserName and Password
Scenario Outline: Successful creation post draft
Given User navigate to pages list
Then User open page with ID <postsIds> for editing
Then User navigate to Advertising tab
Then User check custom ads code radio button
And Insert custom advertising code
Then User save post
And See that custom ads code is appears
Examples:
| postsIds |
| 61591 |
| 62231 |
| 61827 |
| 63300 |
| 62023 |
| 62231 |
当我尝试执行这个场景时,我得到了错误:
cucumber.runtime.CucumberException: Failed to create scenario runner
... 21 more
有人有同样的问题吗?我不知道是什么问题,因为如果我删除大纲关键字和示例列表,测试正在运行...
我实现了所有步骤,没有大纲也可以工作,但是我有很多值,我不想为每个值实现步骤,这就是为什么我需要使用场景大纲
请帮我解决这个问题。
【问题讨论】:
标签: java testing junit cucumber