0

我正在尝试从原型“thucydides-jbehave-archetype”执行标准演示项目它在 Windows 7 机器上运行良好,但在 Windows 8 机器上,浏览器根本没有打开。在另一台机器上与 Firefox 和 chrome 一起工作的相同项目在 Windows 8 机器上失败了。请注意,修昔底德报告已成功生成,“easyb”原型的演示项目运行良好(并启动浏览器)

这是来自控制台的快照:

TEST STARTED: Looking up the definition of 'blank'
--------------------------------------------------------------------
Scenario: Looking up the definition of 'blank'
Given the user is on the Wikionary home page (PENDING)
When the user looks up the definition of the word '' (PENDING)
Then they should see the definition 'A common, round fruit produced by the tree Malus domestica, cultivated in temperate climates.' (PENDING)
@Given("the user is on the Wikionary home page")
@Pending
public void givenTheUserIsOnTheWikionaryHomePage() {
  // PENDING
}

@When("the user looks up the definition of the word ''")
@Pending
public void whenTheUserLooksUpTheDefinitionOfTheWord() {
  // PENDING
}

请注意,上述步骤已完全执行。

这是我的环境详细信息:- 操作系统:Windows 8 IDE:Eclipse Juno Maven 运行时:apache-maven-3.2.1 Java 版本:1.7

4

1 回答 1

0

我找到了解决方案。这件小事让我彻夜难眠:

在 Windows 中,确保项目的绝对路径不应包含任何空格。

我删除了空格及其工作:-)

于 2014-04-22T17:59:50.260 回答