bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.01k stars 235 forks source link

执行命令后出现乱码,并且没有跑到5分钟就直接结束了 #251

Closed nanali2023 closed 7 months ago

nanali2023 commented 7 months ago

D:\AndroidStudioProjects>adb -s R5CT92CT40H shell CLASSPATH=/sdcard/monkeyq.jar:/sdcard/framework.jar:/sdcard/fastbot-thirdpart.jar exec app_process /system/bin com.android.commands.monkey.Monkey -p tech.mobile.baymax.stg --agent reuseq --running-minutes 5 --throttle 500 -v -v --output-directory /sdcard/log 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻屸枑鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻屸枑鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌 鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻屸枑鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌 鈻愨枒鈻堚杸鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€ 鈻愨枒鈻堚杸鈻€鈻€鈻€鈻€鈻€鈻€鈻堚枒鈻屸枑鈻戔枅鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€ 鈻€鈻€鈻€鈻€鈻堚枒鈻堚杸鈻€鈻€鈻€ 鈻愨枒鈻堚杸鈻€鈻€鈻€鈻€鈻€鈻€鈻堚枒鈻屸枑鈻戔枅鈻€ 鈻€鈻€鈻€鈻€鈻€鈻€鈻堚枒鈻?鈻€鈻€鈻€鈻€鈻堚枒鈻堚杸鈻€鈻€鈻€ 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻屸枑鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻屸枑鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻堚杽鈻勨杽鈻勨杽鈻勨杽鈻勨杽 鈻愨枒鈻堚杽鈻勨杽鈻勨杽鈻勨杽鈻堚枒鈻屸枑鈻戔枅鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻? 鈻愨枒鈻? 鈻愨枒鈻堚杽鈻勨杽鈻勨杽鈻勨杽鈻堚枒鈻屸枑鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻屸枑鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻? 鈻愨枒鈻? 鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻堚杸鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€ 鈻愨枒鈻堚杸鈻€鈻€鈻€鈻€鈻€鈻€鈻堚枒鈻?鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻堚枒鈻? 鈻愨枒鈻? 鈻愨枒鈻堚杸鈻€鈻€鈻€鈻€鈻€鈻€鈻堚枒鈻屸枑鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻?
鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻屸枑鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻?鈻勨杽鈻勨杽鈻勨杽鈻勨杽鈻勨枅鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻堚杽鈻勨杽鈻勨杽鈻勨杽鈻堚枒鈻屸枑鈻戔枅鈻勨杽鈻勨杽鈻勨杽鈻勨枅鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻? 鈻愨枒鈻屸枑鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌 鈻愨枒鈻? 鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枌 鈻愨枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻? 鈻愨枒鈻? 鈻€ 鈻€ 鈻€ 鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€ 鈻€ 鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€ 鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€鈻€ 鈻€ [Fastbot][2023-11-07 15:58:29.776] @Version: 2.3.23.0810.1705-git [Fastbot][2023-11-07 15:58:29.784] // Monkey: seed=1699368175413 count=1000

[Fastbot][2023-11-07 15:58:29.784] // AllowPackage: tech.mobile.baymax.stg [Fastbot][2023-11-07 15:58:29.784] // IncludeCategory: android.intent.category.LAUNCHER [Fastbot][2023-11-07 15:58:29.784] // IncludeCategory: android.intent.category.MONKEY [Fastbot] ERROR findMethod() error, NoSuchMethodException happened, there is no such method: setActivityController [Fastbot][2023-11-07 15:58:29.831] // Selecting main activities from category android.intent.category.LAUNCHER [Fastbot][2023-11-07 15:58:29.832] // - NOT USING main activity com.samsung.android.gallery.app.activity.GalleryActivity (from package com.sec.android.gallery3d) [Fastbot][2023-11-07 15:58:29.832] // - NOT USING main activity com.android.settings.Settings (from package com.android.settings) [Fastbot][2023-11-07 15:58:29.832] // - NOT USING main activity com.samsung.android.contacts.contactslist.PeopleActivity (from package com.samsung.android.app.contacts) [Fastbot][2023-11-07 15:58:29.832] // - NOT USING main activity com.samsung.android.dialer.DialtactsActivity (from package com.samsung.android.dialer) [Fastbot][2023-11-07 15:58:29.832] // - NOT USING main activity com.android.mms.ui.ConversationComposer (from package com.samsung.android.messaging) [Fastbot][2023-11-07 15:58:29.832] // - NOT USING main activity com.sec.android.app.camera.Camera (from package com.sec.android.app.camera) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.sec.android.app.sbrowser.SBrowserMainActivity (from package com.sec.android.app.sbrowser) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.aihuishou.phonechecksystem.splash.SplashActivity (from package com.aihuishou.phonechecksystem) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.samsung.android.app.tips.TipsMainActivity (from package com.samsung.android.app.tips) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.samsung.android.app.calendar.activity.MainActivity (from package com.samsung.android.calendar) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.sec.android.app.myfiles.ui.ForMyFilesAppIconInHomeScreenActivity (from package com.sec.android.app.myfiles) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.sec.android.app.samsungapps.SamsungAppsMainActivity (from package com.sec.android.app.samsungapps) [Fastbot][2023-11-07 15:58:29.833] // - NOT USING main activity com.github.uiautomator.MainActivity (from package com.github.uiautomator) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity com.example.xinguancha_app_flutter.MainActivity (from package com.hawkinsight.app.stg) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity com.samsung.android.app.searchwidget.ui.FeedsActivity (from package com.samsung.android.app.searchwidget) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity com.samsung.android.app.sreminder.SReminderActivity (from package com.samsung.android.app.sreminder) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity com.samsung.android.spay.ui.SpayMainActivity (from package com.samsung.android.spay) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity com.samsung.android.themestore.activity.Launcher (from package com.samsung.android.themestore) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity com.sec.android.app.clockpackage.ClockPackage (from package com.sec.android.app.clockpackage) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity io.appium.settings.Settings (from package io.appium.settings) [Fastbot][2023-11-07 15:58:29.834] // - NOT USING main activity org.autojs.autojs.ui.splash.SplashActivity (from package org.autojs.autojs) [Fastbot][2023-11-07 15:58:29.835] // + Using main activity com.example.baymax_flutter.MainActivity (from package tech.mobile.baymax.stg) [Fastbot][2023-11-07 15:58:29.835] // - NOT USING main activity com.example.baymax_flutter.MainActivity (from package tech.mobile.baymax.uat) [Fastbot][2023-11-07 15:58:29.835] // Selecting main activities from category android.intent.category.MONKEY [Fastbot][2023-11-07 15:58:29.835] // - NOT USING main activity com.android.settings.Settings$RunningServicesActivity (from package com.android.settings) [Fastbot][2023-11-07 15:58:29.836] // - NOT USING main activity com.android.settings.Settings$StorageUseActivity (from package com.android.settings) [Fastbot][2023-11-07 15:58:29.836] // - NOT USING main activity com.android.launcher3.uioverrides.QuickstepLauncher (from package com.sec.android.app.launcher) [Fastbot][2023-11-07 15:58:29.836] // - NOT USING main activity com.sec.android.app.launcher.activities.LauncherActivity (from package com.sec.android.app.launcher) [Fastbot][2023-11-07 15:58:29.836] // - NOT USING main activity com.samsung.android.video.player.activity.MonkeyTestActivity (from package com.samsung.android.video) [Fastbot][2023-11-07 15:58:32.838] // phone info锛?samsung_SM-F7210_13 [Fastbot][2023-11-07 15:58:32.839] // runing fastbot [Fastbot][2023-11-07 15:58:32.846] InputMethod ID: com.samsung.android.honeyboard/.service.HoneyBoardService [Fastbot][2023-11-07 15:58:32.846] InputMethod ID: com.sohu.inputmethod.sogou.samsung/.SogouIME [Fastbot][2023-11-07 15:58:32.952] // device serial number is R5CT92CT40H [Fastbot][2023-11-07 15:58:33.015] // device uuid is 2f9fde88-8777-443e-9485-1cdb35ec31e9 [Fastbot][2023-11-07 15:58:33.491] // init with reuse agent [Fastbot][2023-11-07 15:58:33.507] fastbot native : library load! [Fastbot][2023-11-07 15:58:33.507] fastbot native path is : /data/local/tmp/arm64-v8a/libfastbot_native.so [Fastbot][2023-11-07 15:58:33.511]

[Fastbot] ERROR findMethod() error, NoSuchMethodException happened, there is no such method: getTasks [Fastbot][2023-11-07 15:58:33.513] // the top activity is com.idm.fotaagent.enabler.ui.installconfirm.InstallConfirmActivity, not testing app, need inject restart app [Fastbot][2023-11-07 15:58:33.515] Switch: #Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10200000;component=tech.mobile.baymax.stg/com.example.baymax_flutter.MainActivity;end [Fastbot][2023-11-07 15:58:33.516] IActivityManager.startActivity failed, execute am start activity [Fastbot][2023-11-07 15:58:33.538] // the top activity is com.example.baymax_flutter.MainActivity, phone capture activity is com.sec.android.app.camera.Camera [Fastbot][2023-11-07 15:58:33.538] // Allowing start of Intent { cmp=tech.mobile.baymax.stg/com.example.baymax_flutter.MainActivity } in package tech.mobile.baymax.stg [Fastbot][2023-11-07 15:58:33.557] // current activity is com.example.baymax_flutter.MainActivity [Fastbot][2023-11-07 15:58:33.561] Sleeping for 6000 milliseconds [Fastbot][2023-11-07 15:58:39.579] // Event id: 3 [Fastbot][2023-11-07 15:58:39.620] action type: LONG_CLICK [Fastbot][2023-11-07 15:58:39.622] rpc cost time: 34 [Fastbot][2023-11-07 15:58:39.626] event time:56 [Fastbot][2023-11-07 15:58:39.627] :Sending rotation degree=0, persist=false [Fastbot][2023-11-07 15:58:39.638] :Sending Touch (ACTION_DOWN): 0:(457.0,1157.0) [Fastbot][2023-11-07 15:58:39.648] Wait Event for 1000 milliseconds [Fastbot][2023-11-07 15:58:40.656] :Sending Touch (ACTION_UP): 0:(457.0,1157.0) [Fastbot][2023-11-07 15:58:40.667] Sleeping for 535 milliseconds [Fastbot][2023-11-07 15:58:41.213] // Event id: 8 [Fastbot][2023-11-07 15:58:41.221] action type: SCROLL_BOTTOM_UP [Fastbot][2023-11-07 15:58:41.223] rpc cost time: 5 [Fastbot][2023-11-07 15:58:41.229] event time:21 [Fastbot][2023-11-07 15:58:41.229] :Sending rotation degree=0, persist=false [Fastbot][2023-11-07 15:58:41.245] :Sending Touch (ACTION_DOWN): 0:(540.0,1320.0) [Fastbot][2023-11-07 15:58:41.251] :Sending Touch (ACTION_MOVE): 0:(540.0,1320.0) [Fastbot][2023-11-07 15:58:41.254] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.277] :Sending Touch (ACTION_MOVE): 0:(540.0,1200.0) [Fastbot][2023-11-07 15:58:41.280] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.305] :Sending Touch (ACTION_MOVE): 0:(540.0,1080.0) [Fastbot][2023-11-07 15:58:41.310] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.335] :Sending Touch (ACTION_MOVE): 0:(540.0,960.0) [Fastbot][2023-11-07 15:58:41.339] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.365] :Sending Touch (ACTION_MOVE): 0:(540.0,840.0) [Fastbot][2023-11-07 15:58:41.370] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.396] :Sending Touch (ACTION_MOVE): 0:(540.0,720.0) [Fastbot][2023-11-07 15:58:41.400] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.425] :Sending Touch (ACTION_MOVE): 0:(540.0,600.0) [Fastbot][2023-11-07 15:58:41.433] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.462] :Sending Touch (ACTION_MOVE): 0:(540.0,480.0) [Fastbot][2023-11-07 15:58:41.469] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.497] :Sending Touch (ACTION_MOVE): 0:(540.0,360.0) [Fastbot][2023-11-07 15:58:41.502] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.527] :Sending Touch (ACTION_MOVE): 0:(540.0,240.0) [Fastbot][2023-11-07 15:58:41.535] Wait Event for 20 milliseconds [Fastbot][2023-11-07 15:58:41.565] :Sending Touch (ACTION_UP): 0:(540.0,136.0) [Fastbot][2023-11-07 15:58:41.589] Sleeping for 543 milliseconds [Fastbot][2023-11-07 15:58:42.146] // Event id: 32 [Fastbot][2023-11-07 15:58:42.152] action type: CLICK [Fastbot][2023-11-07 15:58:42.153] rpc cost time: 3 [Fastbot][2023-11-07 15:58:42.200] mshowrequested=false mshowexplicitlyrequested=false mshowforced=false minputshown=false [Fastbot][2023-11-07 15:58:42.210] mInputShown not found, getInputMethodWindowVisibleHeight is used. [Fastbot][2023-11-07 15:58:42.213] event time:72 [Fastbot][2023-11-07 15:58:42.213] :Sending rotation degree=0, persist=false [Fastbot][2023-11-07 15:58:42.222] :Sending Touch (ACTION_DOWN): 0:(661.0,1431.0) [Fastbot][2023-11-07 15:58:42.227] :Sending Touch (ACTION_UP): 0:(661.0,1431.0) [Fastbot][2023-11-07 15:58:42.230] Sleeping for 532 milliseconds [Fastbot][2023-11-07 15:58:42.772] // Event id: 36

nanali2023 commented 7 months ago

乱码问题已经解决了

nanali2023 commented 7 months ago

配置问题