[英]End browser session using Cucumber and Capybara
I am running into a problem. 我遇到了问题。 I'm currently testing a webpage that has a security feature built in that will not allow more than 3 concurrent logins to the same user Id at any given time.
我目前正在测试一个具有内置安全功能的网页,该网页在任何给定时间都不允许同时登录同一用户ID超过3次。 I am finding that when I am running my tests and a scenario fails, a new window opens for the next test but the session is still valid.
我发现当我运行测试并且方案失败时,将为下一个测试打开一个新窗口,但是该会话仍然有效。 3 failures will then lock out that user for the allocated amount of time.
然后3次失败将在分配的时间内锁定该用户。
Is there a way that I can tell Cucumber to kill the session if the test fails to avoid this? 如果测试未能避免这种情况,有什么办法可以告诉Cucumber终止会话? Otherwise I'm faced with a 15 minute wait to resume testing.
否则,我需要等待15分钟才能恢复测试。
Thank you 谢谢
These links might helps you. 这些链接可能会对您有所帮助。
https://github.com/grosser/parallel_tests https://github.com/grosser/parallel_tests
https://www.npmjs.com/package/parallel-cucumber https://www.npmjs.com/package/parallel-cucumber
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.