title: automatic app testing in xcode
body: <p>Currently I'm testing an app that I've written with ios 4. I've spent a good bit of time looking for memory leaks and that side of things seems o.k.</p>
  
  <p>I have a problem where the app seems to "randomly" quit after going from one view to another. Sometimes this will happen after a minute or 2 and sometimes it won't happen at all. Because of this it's really very difficult to determine where the flaw in my application is and under what circumstances because my observations of whats going on is subjective. Also it can get very annoying very quickly sitting there hitting buttons until something happens and then trying to remember the sequence of your actions. </p>
  
  <p>What would be a good method to hunt down the cause of this seemingly randomly occurring problem?</p>
  
  <p>For example,</p>
  
  <p>I remember speaking with QA engineer before and he spoke of tools that he used to automate a user using an application. He'd leave it running over night and then in the morning he could examine what combination of user actions and under what circumstances a  problem occurred.</p>
  
  <p>Are there such tools available for testing iphone applications? Ideally what I'd like to see is a report of </p>
  
  <p>action a</p>
  
  <p>action b</p>
  
  <p>action c</p>
  
  <blockquote>
    <p>= everything ok.</p>
  </blockquote>
  
  <p>action a</p>
  
  <p>action c</p>
  
  <p>action b</p>
  
  <blockquote>
    <p>= there was a problem.</p>
  </blockquote>