Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added monkey result status for "No activities found to run, monkey aborted." #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ public String getSummary() {
case UnrecognisedFormat:
description = Messages.MONKEY_RESULT_UNRECOGNISED();
break;
case NoActivityFound:
description = Messages.MONKEY_RESULT_NOACTIVITYFOUND();
break;
case NothingToParse:
default:
description = Messages.MONKEY_RESULT_NONE();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ static MonkeyAction parseMonkeyOutput(AbstractBuild<?, ?> build, PrintStream log
} else if ("NOT RESPONDING".equals(reason)) {
result = MonkeyResult.AppNotResponding;
}
// Case for "** No activities found to run, monkey aborted."
} else if (monkeyOutput.contains("No activities found to run")) {
result = MonkeyResult.NoActivityFound;
}

// Set configured build result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ enum MonkeyResult {
/** No monkey output was found to parse */
NothingToParse,
/** Monkey output was given, but outcome couldn't be determined */
UnrecognisedFormat
UnrecognisedFormat,
/** ** No activities found to run, monkey aborted. Package name is wrong or package not installed */
NoActivityFound
}
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ MONKEY_RESULT_SUCCESS=Succeeded after {0} events
MONKEY_RESULT_CRASH=Crashed after {0} of {1} events
MONKEY_RESULT_ANR=Stopped responding after {0} of {1} events
MONKEY_RESULT_UNRECOGNISED=Could not determine results from file
MONKEY_RESULT_NOACTIVITYFOUND=No activities found to run (Package not installed or Wrong Package Id)
MONKEY_RESULT_NONE=No monkey output was provided
BUILD_RESULT_UNSTABLE=Unstable
BUILD_RESULT_FAILURE=Failure
Expand Down