logoalt Hacker News

lawgimenez06/16/20253 repliesview on HN

How isUserAMonkey API came about: https://books.google.nl/books?id=68BZEAAAQBAJ&pg=PA96&lpg=PA...


Replies

rompic06/16/2025

To ensure that the monkey of a monkey test (an emulated user doing random taps) cannot do all possible actions.

https://books.google.nl/books?id=68BZEAAAQBAJ&pg=PA96&lpg=PA... "Bruce grew the lab over the years from an initial set of seven devices to more

than 400. He said there were some unanticipated problems to resolve over that time. "One day I walked into the monkey lab to hear a voice say, '911-What's your emergency?" That situation resulted in Dianne adding a new function to the API, isUserAMonkey(), which is used to gate actions that monkeys shouldn't take during tests (including dialing the phone and resetting the device)."

fredoralive06/16/2025

Interestingly, the original Mac had a similar MonkeyLives flag: https://folklore.org/Monkey_Lives.html

show 1 reply
znpy06/16/2025

"image not available"

show 1 reply