时代 - AWS设备农场

问题描述 投票:0回答:2

当我尝试在设备服务器场上运行测试时,我收到如下错误。 testAppiumMethod failed: Invalid server instance exception has occured: There is no installed nodes! Please install node via NPM (https://www.npmjs.com/package/appium#using-node-js) or download and install Appium app (http://appium.io/downloads.html)

我在本地机器上全局安装了Appium,测试运行良好。但它们在设备场上失败(包括所有依赖项)。有人可以帮帮我吗?

appium aws-device-farm appium-android
2个回答
0
投票

如果有机会,您可以提供以下信息:

  • 正在使用的appium版本
  • 这个失败的具体方法/代码片段
  • 编程语言Java / python
  • 测试是如何打包和上传的?我们使用的是Web控制台还是SDK / CLI?
  • 这是一个Web应用程序测试或本机应用程序测试?

另外,要排除特定设备的问题,我们是否可以在同一设备上运行AWS Sample app / test?

假设这是一个android测试执行这些命令来构建示例应用程序:

git clone https://github.com/awslabs/aws-device-farm-sample-app-for-android.git
cd aws-device-farm-sample-app-for-android/
./gradlew cC

app-debug.apk应位于./app/build/outputs/apk/

然后克隆样本appium testng测试:

git clone https://github.com/awslabs/aws-device-farm-appium-tests-for-sample-app.git
cd aws-device-farm-appium-tests-for-sample-app/
mvn clean package -DskipTests=true

测试pacakge“zip-with-dependencies.zip”应该位于./target目录中

我很抱歉将所有这些问题都添加为答案。我期待着您的回复。

HTH James


0
投票

在我看来,您需要在AWS实例上安装节点。

见下文:

https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html

© www.soinside.com 2019 - 2024. All rights reserved.