Office Hours — Today, November 6

Tuesday, November 4

Nov 6
7:20 PM
Mark M.
has entered the room
Mark M.
turned on guest access
8:00 PM
CodeApprentice
has entered the room
CodeApprentice
Hello
Mark M.
hello, CodeApprentice!
CodeApprentice
no one here, tonight.
Mark M.
sorry I didn't have more for you on that bump request
CodeApprentice
Or maybe I just missed them, eh?
no problem. I just replied to your comment.
Mark M.
no, been a quiet night
I thought perhaps the view was already there
8:05 PM
CodeApprentice
I can probably just call solo.waitForView() to fix everything...trying that now.
Mark M.
and that's why you weren't calling it
CodeApprentice
not entirely sure why I took it out...I'm pretty sure that I had it in there originally.
oh wait...you're right.
The "Add" menu button is part of the view hierarchy...it's just not visible because the CAB covers the standard action bar.
Mark M.
yeah, that's what I was thinking when pondering your question
so your general approach is probably fine, but you need to figure out a better "wait" algorithm
and that's where I figured Robotium's source might be useful
8:10 PM
CodeApprentice
yah, now that I think about it more, I remember trying to do waitForView() initially and my tests were passing when they should have.
s/should/shouldn't/
I needed to fix my tests to detect a bug which I recently discovered.
and now that I fixed the bug, some of the tests are still failing even though they shouldn't
anyways...I'll dig into the Robotium source code.
Mark M.
hah
looks like they just do a busy loop with sleep() calls
8:15 PM
CodeApprentice
too bad GitHub doesn't have navigation features like grepcode ;-(
8:20 PM
Mark M.
is there anything else that I can help you with?
CodeApprentice
not right now.
are you leaving?
Mark M.
OK
not for another 10 minutes :-)
CodeApprentice
k
I'm trying waitForView() just to make sure it doesn't work...
hmmm...actually, it seems to work
or else the race condition is favoring the test thread now rather than the UI thread.
Mark M.
hmmm...
looks like the waitForView() algorithm may ignore invisible views
8:25 PM
CodeApprentice
that would make sense
Mark M.
so, if the regular action bar buttons are invisible, waitForView() will wait until they are visible again
if I'm reading this correctly
CodeApprentice
are you looking in the searchFor() method?
Mark M.
yes
CodeApprentice
yah, I see a `onlyVisible` flag.
I definitely need to practice reading others' code more.
8:30 PM
anyway, that's a wrap for today's chat
next one is Monday at 4pm US Eastern Time
have a pleasant day!
CodeApprentice
gnite
CodeApprentice
has left the room
Mark M.
turned off guest access

Tuesday, November 4

 

Office Hours

People in this transcript

  • CodeApprentice
  • Mark Murphy