Cucumber:如何在 Rails 中切换会话(多会话)
我需要在一种黄瓜场景中更改会话。
例如,
Given session name is "1st unauthenticated user"
And make some things
Given session name is "2st unauthenticated user"
And make some other things
我找到了一个 解决方案,但它不适用于 Rails 3、黄瓜和水豚。还有其他解决方案吗?
I need to change session during one cucumber scenario.
For example
Given session name is "1st unauthenticated user"
And make some things
Given session name is "2st unauthenticated user"
And make some other things
I found a solution, but it doesn't work with Rails 3, Cucumber and Capybara. Are there any other solutions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现一篇很棒的文章有助于解决这个问题: http:// tristandunn.com/2010/10/21/multiple-sessions-cucumber-selenium.html
I found great article that help to solve this problem: http://tristandunn.com/2010/10/21/multiple-sessions-cucumber-selenium.html