android-monkey

Monkey is not giving output: No activity found to run, Monkey aborted

扶醉桌前 提交于 2020-01-11 06:30:12
问题 I am new to Monkey testing tool, it says run the following command adb shell monkey -p "package name" -v 3 It is not clear to me whether to pass this command from inside the Project Directory or from the workspace where my Project is present. Each time I run I get the following error :Monkey: seed=0 count=3 :AllowPackage: com.and :IncludeCategory: android.intent.category.LAUNCHER :IncludeCategory: android.intent.category.MONKEY ** No activities found to run, monkey aborted. Thanks in Advance

android monkey test exclude some packages

北慕城南 提交于 2020-01-02 12:10:29
问题 How i run monkey test with exclude some packages? monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 20000000 I want to test all activities of all packages in my device, but i do not want to test “com.android.camera”. 回答1: Use monkey balcklist option --pkg-blacklist-file : 1, make a new file called blacklist.txt, contains the package name which you don't want to test,each a line. 2, push this file into device, like /sdcard

How to click on a View which contains specified text using monkeyrunner and Android ViewClient?

老子叫甜甜 提交于 2019-12-12 00:28:23
问题 I'm trying to simulate a click on an Android tablet using monkey runner and Android ViewClient. I want to click on a region/ view which has specific text. Here's an example of what i'm trying to do: I have a script where I import MonkeyRunner, MonkeyDevice, ViewClient from com.dtmilano.android.viewclient import ViewClient from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice Connect the tablet and create a MonkeyDevice object device = MonkeyDevice.waitForConnection() Using the

Change screen orientations during monkey run

半城伤御伤魂 提交于 2019-12-08 19:28:48
问题 I'm using monkey command to do some stress testing on my app. But i want to test it more with respect to screen orientations to detect and capture some heapupdates while changing orientations. I searched all over android official site about monkey commands/arguments which will do screen orientations while running on any app/activity. But no luck and thought of asking professionals like you. If idea on this, please let me know. 回答1: Monkey has a number of undocumented options, including --pct

android monkey test exclude some packages

蹲街弑〆低调 提交于 2019-12-06 05:24:09
How i run monkey test with exclude some packages? monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 20000000 I want to test all activities of all packages in my device, but i do not want to test “com.android.camera”. Use monkey balcklist option --pkg-blacklist-file : 1, make a new file called blacklist.txt, contains the package name which you don't want to test,each a line. 2, push this file into device, like /sdcard/blacklist.txt 3, run monkey use balcklist option: monkey --pkg-blacklist-file /sdcard/blacklist.txt --ignore

Android Exerciser Monkey starts playing audio files at random

二次信任 提交于 2019-12-04 18:09:53
问题 I'm running exerciser monkey to test my android app. As part of my app I play media files which give the pronunciation of a words. I've put the files in a directory where they aren't readable by the Android's Music player. However, the exerciser monkey throws some sequence of events which seem to activate the music player, which then repetitively play the beginning of another mp3 file (which is not from my app) during its testing. How is it doing this, and is it something I should be

Monkey is not giving output: No activity found to run, Monkey aborted

点点圈 提交于 2019-12-01 08:31:25
I am new to Monkey testing tool, it says run the following command adb shell monkey -p "package name" -v 3 It is not clear to me whether to pass this command from inside the Project Directory or from the workspace where my Project is present. Each time I run I get the following error :Monkey: seed=0 count=3 :AllowPackage: com.and :IncludeCategory: android.intent.category.LAUNCHER :IncludeCategory: android.intent.category.MONKEY ** No activities found to run, monkey aborted. Thanks in Advance When you're running a command using adb shell , the command is run on the connected Android device or