简体   繁体   English

如何在浏览器中的真实android设备上运行Selenium C#测试?

[英]How to run Selenium C# tests on real android device in browser?

I need to add the ability to my existing Specflow/C#/Selenium/NUnit project to run tests in a browser on a mobile phone without using emulation. 我需要在现有的Specflow / C#/ Selenium / NUnit项目中添加该功能,以便在不使用仿真的情况下在手机的浏览器中运行测试。 Please can you point me to a useful guide so I can achieve this? 请您为我指出一个有用的指南,以便我可以实现这一目标? I keep finding guides in Java or guides to do this via a business's services, it's so frustrating. 我一直在寻找Java指南或通过企业服务执行此操作的指南,这真令人沮丧。 I need to use Appium... maybe? 我需要使用Appium ...也许?

As Selenium itself hasn't have the ability to communicate with mobile device directly, Yes you need to integrate tool such as Appium. 由于Selenium本身不具有直接与移动设备通信的能力,是的,您需要集成诸如Appium之类的工具。

Appium internally use Selenium and have a another wrapper on top of it which have the ability to communicate with mobile devices or emulators Appium在内部使用Selenium,并在其顶部有另一个包装,该包装可以与移动设备或仿真器进行通信

Some C# reference for Appium are as below: Appium的一些C#参考如下:

Important : 重要事项:

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

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

Others : 其他 :

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

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

暂无
暂无

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

相关问题 如何在多个浏览器上并行运行Selenium Webdriver C#测试 - How to run Selenium webdriver C# tests on multiple browser in parallel 如何在同一台 Windows 10 笔记本电脑的 Safari 浏览器上运行 Selenium 编写的测试 C# - How to run Selenium Tests written in C# on a Safari browser in the same Windows 10 laptop C#Android我如何在真实设备上登录 - C# Android how do i get log on real device 使用C#在多个浏览器中运行Selenium测试 - Run Selenium tests in multiple browsers with C# 使用 Baseclass.Contrib.SpecFlow.Selenium.NUnit 在 @Browser:Firefox (C#/Specflow) 中运行测试 - Using Baseclass.Contrib.SpecFlow.Selenium.NUnit to run tests in @Browser:Firefox (C#/Specflow) 如何使用Selenium,Android和C#单击设备后退按钮 - How to click device back button using Selenium, android and C# 如何在真实设备上使用c#和appium在移动Chrome浏览器中转到指定的网址? - How can I go to the given URL in mobile Chrome browser using c# and appium on real device? 使用Selenium WebDriver和NUnit C#在Parallel中运行测试后,如何关闭多个浏览器窗口 - How to close down multiple browser windows after running tests in Parallel using Selenium WebDriver and NUnit C# 如何在作为 Windows 服务运行的 Jenkins 上以无头模式使用 Firefox 运行 Selenium 测试(C#、.NET) - How to run Selenium tests (C#, .NET) with Firefox in headless mode on Jenkins running as Windows service 如何在多个远程计算机上并行运行Selenium Webdriver C#测试? - How to run Selenium Webdriver C# tests on multiple remote machines in parallel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM