如何 运行 本地 Appium 上的 AWS Device Farm TestNG 测试文件

How run AWS Device Farm TestNG Test file on Local Appium

我在 aws devicefarm 上有 运行 的 TestNG 脚本,我想在我的 android 设备上的本地 appium 上测试它,

我可以知道如何在我的本地设备上 运行 吗?

谢谢

要在本地测试 Appium 测试包,您可以设置 desired capabilities

Android 的示例如下:

{ "platformName": "Android", "platformVersion": "11.0", "deviceName": "Find device name using `adb devices`", "automationName": "uiautomator/uiautomator2", "app": "/path/to/my.apk" }

这是 appium 在其 github 上提供的样本的 link。

https://github.com/appium/sample-code/tree/master/sample-code/examples

一般来说,您不会按照此模式在 Device Farm 上进行测试。那是;您应该在本地开发测试,然后在 Device Farm 上进行测试。

希望对您有所帮助。如果还有其他问题,请随时告诉我。