What does it return?
Is user a monkey?
11–20 of 39 posts
Re: Is user a monkey?
#12Re: Is user a monkey?
#13when i was doing Palm OS programming back in the stone age, i remember the simulator had a "monkey testing mode", where it would just generate GUI events randomly. it was actually quite useful for uncovering sporadic crashes. EDIT: ha, i found a reference, they're called Gremlins http://users.jyu.fi/~mweber/teaching/docs/palmos/book/ch10.h...
Calling them Gremlins is actually a reference to the British Royal Air Force in WWII. The airmen would blame 'gremlins' for mechanical issues or even problems during flight. http://en.wikipedia.org/wiki/Gremlin#Origins Famous children's author Roald Dahl popularized them after he left the RAF to become a writer. If you get a chance, read a biography of Roald Dahl. He truely was the most interesting man in the world.…
Re: Is user a monkey?
#14Re: Is user a monkey?
#15when i was doing Palm OS programming back in the stone age, i remember the simulator had a "monkey testing mode", where it would just generate GUI events randomly. it was actually quite useful for uncovering sporadic crashes. EDIT: ha, i found a reference, they're called Gremlins http://users.jyu.fi/~mweber/teaching/docs/palmos/book/ch10.h...
That's exactly why this method exists on Android. They have a similar testing tool called Monkey: http://developer.android.com/guide/developing/tools/monkey.h...
Re: Is user a monkey?
#16What does it return?
Re: Is user a monkey?
#17Earlier quoted context omitted.
That's exactly why this method exists on Android. They have a similar testing tool called Monkey: http://developer.android.com/guide/developing/tools/monkey.h...
Doesn't it defeat the testing purpose if you perform a check to take a different code path when the testing tool runs?
Re: Is user a monkey?
#18Earlier quoted context omitted.
That's exactly why this method exists on Android. They have a similar testing tool called Monkey: http://developer.android.com/guide/developing/tools/monkey.h...
Doesn't it defeat the testing purpose if you perform a check to take a different code path when the testing tool runs?
Re: Is user a monkey?
#19value = isUserAMonkey() ? left : right ;
if (isUserAMonkey()) { ... }
For an if clause, I prefer userIsAMonkey:
if (userIsAMonkey) { ... }
Re: Is user a monkey?
#20http://www.tycomsystems.com/beos/BeBook/The%20Kernel%20Kit/S...