public void testRotateMapViewInTrackDetailActivity(){
  if (!runTest) {
    Log.d(TAG,BigTestUtils.DISABLE_MESSAGE);
    return;
  }
  EndToEndTestUtils.startRecording();
  for (int i=0; (System.currentTimeMillis() - startTime) < TEST_DURATION_IN_MILLISECONDS; i++) {
    EndToEndTestUtils.sendGps(10,i * 10);
    EndToEndTestUtils.rotateCurrentActivity();
    Log.d(TAG,String.format("Totate %d times in %d minutes!",i,(System.currentTimeMillis() - startTime) / 1000 / 60));
  }
}

public void testRotateMapViewInTrackDetailActivity ( ) { if ( ! runTest ) { Log . d ( TAG , BigTestUtils . DISABLE_MESSAGE ) ; return ; } EndToEndTestUtils . startRecording ( ) ; for ( int i = 0 ; ( System . currentTimeMillis ( ) - startTime ) < TEST_DURATION_IN_MILLISECONDS ; i ++ ) { EndToEndTestUtils . sendGps ( 10 , i * 10 ) ; EndToEndTestUtils . rotateCurrentActivity ( ) ; Log . d ( TAG , String . format ( "Totate %d times in %d minutes!" , i , ( System . currentTimeMillis ( ) - startTime ) / 1000 / 60 ) ) ; } }
rotates screen when display map view . keeps sending different gps locations in each track , making it closer to the real stress .
