English 中文(简体)
利用Cucumber/Webdriver进行的接受测试永远不会完成。
原标题:Acceptance tests using Cucumber/Webdriver never complete

我们再利用Gherkin、Cucumber-jvm和Webdriver对标准Java/Spring网络应用程序进行接受测试。 问题是,在利用Maven工作进行测试时,测试完全成功,但工作没有完成。 只有在关闭了Peter玻璃窗后,工作才完成。

我们在每一特点之后都明确关闭了浏览器,但由于时间滞后,这将迅速变得不可持续的。

技术组别如下:

Cucumber-JVM 1.0.4

ium 2.12.0

页: 1

The app runs in JBoss EAP 5.1 on a Windows 7 machine.

When we used the JRuby version of Cucumber, this behaviour did not appear with the above selenium/firefox combination, although it did when we used higher versions of either.

是否有任何人曾看到过这种行为,是否有人提出任何建议或解决办法?

Thanks in advance

最佳回答

你是否关闭了你的网络司机?

@cucumber.annotation.After
public void afterScenarioRun() {
    driver.close();
}
问题回答

我在春天环境中使用木料和硫酸).(有 cu)。 当网络驱动器由春天管理时,可添加<条码>destroy=“close”至标的:

<bean id="webDriver" class="org.openqa.selenium.ie.InternetExplorerDriver" destroy-method="close"/>

This closes the browser after all tests have finished.





相关问题
Why Cucumber hook methods aren t lowercase?

Cucumber has a few different hook methods like Before, After or AfterStep. I was wondering - why doesn t these method names follow Ruby s naming conventions to write method names all lowercase? ...

Cucumber Table Diff and colspan

I love cucumber, and its table diff feature. But I, often use a td colspan to display the title of the table. And I can t seem to get the table diff to work when I use colspan. (Table diff expects a ...

cucumber features --guess

I m setting up my Authlogic user session features. And I m in some kind of confusion. When I run: cucumber features I get some red errors Scenario: User signs in successfully ...

Rails | Cucumber | acl9 | AccessDenied

I am ramping up Cucumber, and I am having a issue getting one of my first tests to pass. The exception I am getting is: And I visit the new contract screen Acl9::AccessDenied (Acl9::AccessDenied) ...

Silencing Factory Girl logging

Just to clear the air, I am not some cruel factory master trying to silence working ladies. I am having a very annoying problem where when using Thoughtbot s factory girl in my specs, every time ...

How to resolve Rails model namespace collision

The story so far: I have a rails app with a model named "Term". All is well until trying to install Cucumber. Upon running rake cucumber I get Term is not a class (TypeError) This happens because ...

rspec testing views with internationalization?

I want to make sure I have the right meta desc/keyword and title text in my view so I want to create rspec views tests for that. Now the real challange here is how to make it work across multiple ...

热门标签