简体   繁体   English

运行 UI 和移动自动化的自动化框架

[英]Automation framework to run both UI and mobile automation

Our use case involves automating both Web and mobile.我们的用例涉及自动化 Web 和移动设备。 Certain actions are carried out on Web post which the data flows to mobile device.某些操作是在数据流向移动设备的 Web 帖子上执行的。 Then certain actions need to be carried out on mobile device.然后需要在移动设备上执行某些操作。

Is there an automation framework which can do both Web and mobile automation as a single flow.是否有一个自动化框架可以将 Web 和移动自动化作为单个流程进行。 Currently using Serenity with Selenium and Appium.目前在 Selenium 和 Appium 中使用 Serenity。 But at a time either Chrome browser or Android emulator can be launched.但一次可以启动 Chrome 浏览器或 Android 模拟器。

Sample cucumber feature file usecase黄瓜功能文件用例示例

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.

I would assume that the actions in the browser actually perform REST calls to the backend, in this case I would suggest you directly call the backend endpoints instead of trying to do it in the browser and mobile application at the same time.我假设浏览器中的操作实际上对后端执行 REST 调用,在这种情况下,我建议您直接调用后端端点,而不是尝试同时在浏览器和移动应用程序中执行此操作。 A great framework that you can use to execute backend calls and Appium tests at the same time is Carina Carina是一个很好的框架,可以用来同时执行后端调用和 Appium 测试

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM