使用 Cucumber 测试不同屏幕尺寸(设备)的行为
我正在使用 Cucumber 自动化我的测试,并且我需要自动化移动页面中导航栏的行为,因为这些菜单选项是根据屏幕尺寸显示的...例如:
480px 有菜单 a、菜单 b、菜单 c和菜单 d.
320px有菜单a、菜单c和菜单d。
我的问题是,这可以自动化吗?如果是这样,有人有什么想法吗?
提前致谢, 伊恩
I am automating my tests using cucumber and I have a requirement to automate the behavior of our nav bar within our mobile pages as these menu options are displayed based on screen size...for example:
480px has menu a, menu b, menu c, and menu d.
320px has menu a, menu c, and menu d.
My queston is, is this possible to automate? If so has anyone got any ideas?
Thanks in advance,
Ian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我将其粘贴在我的步骤定义之一中,并且它起作用了:
我正在将 Cucumber 与 Capybara 一起使用。
I stuck this in one of my step definitions and it worked:
I'm using Cucumber with Capybara.
两种可能的选择:
Two possible options: