【问题标题】:How to run Selenium C# tests on real android device in browser?如何在浏览器中的真实 android 设备上运行 Selenium C# 测试?
【发布时间】:2019-11-21 07:33:29
【问题描述】:

我需要在现有的 Specflow/C#/Selenium/NUnit 项目中添加功能,以便在手机浏览器中运行测试而不使用仿真。请你能给我指一个有用的指南,这样我就可以做到这一点?我一直在寻找 Java 指南或通过企业服务执行此操作的指南,这太令人沮丧了。我需要使用 Appium……也许吧?

【问题讨论】:

    标签: c# selenium appium specflow


    【解决方案1】:

    由于 Selenium 本身不具备与移动设备直接通信的能力,所以需要集成 Appium 等工具。

    Appium 内部使用 Selenium 并在其之上有另一个包装器,它能够与移动设备或模拟器进行通信

    Appium 的一些 C# 参考如下:

    重要:

    https://www.diatomenterprises.com/testing-mobile-apps-with-specflow-and-appium/

    https://applitools.com/tutorials/appium-web-csharp.html#analyze-your-test-results

    其他:

    https://www.automatetheplanet.com/getting-started-appium-android-csharp/

    https://www.3pillarglobal.com/insights/ios-mobile-app-automation-testing-using-appium-and-c

    【讨论】:

    • 您还可以查看 SauceLabs 帐户。他们收购了 TestObject,因此您可以在多个真实设备上进行测试。
    猜你喜欢
    • 2016-07-15
    • 1970-01-01
    • 1970-01-01
    • 2014-10-27
    • 2014-12-27
    • 2018-04-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多