【发布时间】:2022-11-10 18:25:58
【问题描述】:
我们的用例涉及自动化 Web 和移动设备。某些操作是在数据流向移动设备的 Web 帖子上执行的。然后需要在移动设备上执行某些操作。
是否有一个自动化框架可以将 Web 和移动自动化作为单一流程进行。 我尝试将 Serenity 与 Selenium 和 Appium 一起使用。但是通过属性文件,Chrome 浏览器或 Android 模拟器都可以在一个时间点启动。
黄瓜功能文件用例示例
Given user enters "admin" and password "admin" and clicks on login button
When user enter "Item1" as "Data1"
And user clicks submit button
Then verify success message on UI.
And verify "Data1" saved in Db.
When user launches mobile device
And user enters "admin" and password "admin" and clicks login button
Then verify "Data1" is displayed on mobile device.
When user clicks on "Item2" on mobile device
Then verify "Data1" is updated on mobile device
And verify "Data1" is updated on the Web.
【问题讨论】:
标签: ui-automation browser-automation cucumber-serenity serenity-spring