From 54641cbcd8701fbd45a31cc5bfadcae2deb032f1 Mon Sep 17 00:00:00 2001 From: youtaol Date: Fri, 11 Jan 2013 14:54:17 +0800 Subject: [PATCH] Change ExportAndImportTest to make e2e test cases can run well with new code change(More import options). --- .../endtoendtest/EndToEndTestUtils.java | 2 +- .../endtoendtest/ExportAndImportTest.java | 48 ++++++++++++++++--- 2 files changed, 42 insertions(+), 8 deletions(-) diff --git a/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java b/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java index c15b0c883..97af872d8 100644 --- a/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java +++ b/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/EndToEndTestUtils.java @@ -53,7 +53,7 @@ import junit.framework.Assert; * @author Youtao Liu */ public class EndToEndTestUtils { - public static int emulatorPort = 5556; + public static int emulatorPort = 5560; // usually 5554. private static final int ORIENTATION_PORTRAIT = 1; private static final int ORIENTATION_LANDSCAPE = 0; diff --git a/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/ExportAndImportTest.java b/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/ExportAndImportTest.java index a18d2229b..0992d747c 100644 --- a/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/ExportAndImportTest.java +++ b/MyTracksTest_E2E/src/com/google/android/apps/mytracks/endtoendtest/ExportAndImportTest.java @@ -97,7 +97,7 @@ public class ExportAndImportTest extends ActivityInstrumentationTestCase2Create two tracks, one of them is empty(Have no Gps data). *
  • Tests import when there is no track file.
  • *
  • Tests export tracks to Gpx files.
  • - *
  • Tests import files to tracks.
  • + *
  • Tests import Gpx files to tracks.
  • *
  • Tests export tracks to Kml files.
  • * */ @@ -177,8 +177,8 @@ public class ExportAndImportTest extends ActivityInstrumentationTestCase2