bytedance/Fastbot_Android

配置了max.xpath.actions ,报错 Internal error

clM9186 opened this issue · 0 comments

测试机型:
Model: CPH2239
Brand: OPPO
System version: 11
cmd_abi: arm64-v8a

max.xpath.actions文件配置:
[
{
"prob": 1,
"activity":"com.beem.im.login.ui.LoginActivity",
"times": 1,
"actions": [
{
"xpath":"//[@resource-id='com.beem.im.qa:id/edittext_areacode']",
"action": "CLICK",
"text": "86",
"clearText": false,
"throttle": 3000
},
{
"xpath":"//
[@resource-id='com.beem.im.qa:id/edittext_phonenum']",
"action": "CLICK",
"text": "18800188001",
"clearText": false,
"throttle": 3000
},
{
"xpath":"//[@resource-id='com.beem.im.qa:id/button_login']",
"action": "CLICK",
"throttle": 3000
},
{
"xpath":"//
[@resource-id='com.beem.im.qa:id/et_verifi_code']",
"action": "CLICK",
"text": "966966",
"clearText": false,
"throttle": 3000
}

]

}
]

日志内容:
[Fastbot]*** ERROR *** findMethod() error, NoSuchMethodException happened, there is no such method: getTasks
[Fastbot][2023-11-15 15:22:44.847] // the top activity is com.oppo.launcher.Launcher, not testing app, need inject restart app
[Fastbot][2023-11-15 15:22:44.853] Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=com.beem.im.qa/com.beem.im.ui.activity.MainActivity;end
[Fastbot][2023-11-15 15:22:44.857] IActivityManager.startActivity failed, execute am start activity
[Fastbot][2023-11-15 15:22:44.906] // the top activity is com.beem.im.ui.activity.MainActivity, phone capture activity is com.oppo.camera.Camera
[Fastbot][2023-11-15 15:22:44.907] // Allowing start of Intent { flg=0x10000000 cmp=com.beem.im.qa/com.beem.im.ui.activity.MainActivity mCallingUid=2000 } in package com.beem.im.qa
[Fastbot][2023-11-15 15:22:44.960] // current activity is com.beem.im.login.ui.LoginActivity
[Fastbot][2023-11-15 15:22:44.965] Sleeping for 2000 milliseconds
[Fastbot][2023-11-15 15:22:47.069] // Event id: 3
[Fastbot][2023-11-15 15:22:47.084] fastbot native : library load!
[Fastbot][2023-11-15 15:22:47.085] fastbot native path is : /data/local/tmp/arm64-v8a/libfastbot_native.so
[Fastbot][2023-11-15 15:22:47.104] // Monkey is over!
[Fastbot][2023-11-15 15:22:47.105] :Sending rotation degree=0, persist=false
[Fastbot][2023-11-15 15:22:47.131] Internal error
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/gson/GsonBuilder;
at com.android.commands.monkey.fastbot.client.GsonIface.(GsonIface.java:27)
at com.android.commands.monkey.fastbot.client.Operate.fromJson(Operate.java:55)
at com.bytedance.fastbot.AiClient.b1bhkadf(AiClient.java:176)
at com.bytedance.fastbot.AiClient.getAction(AiClient.java:148)
at com.android.commands.monkey.source.MonkeySourceApeNative.generateEvents(MonkeySourceApeNative.java:925)
at com.android.commands.monkey.source.MonkeySourceApeNative.getNextEvent(MonkeySourceApeNative.java:428)
at com.android.commands.monkey.Monkey.runMonkeyCycles(Monkey.java:1514)
at com.android.commands.monkey.Monkey.run(Monkey.java:829)
at com.android.commands.monkey.Monkey.main(Monkey.java:458)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:439)
Caused by: java.lang.ClassNotFoundException: com.google.gson.GsonBuilder
... 11 more
[Fastbot][2023-11-15 15:22:47.139] Please report this bug issue to github