reactive instrumented demo test

This commit is contained in:
Andy Scherzinger 2016-08-30 19:10:40 +02:00
parent 70c1cef829
commit f7195a0192
2 changed files with 5 additions and 6 deletions

View file

@ -30,7 +30,7 @@ script:
- ./gradlew :installDebug
- ./gradlew :installDebugAndroidTest
# run sample instrumented unit test
# - adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner
- adb shell am instrument -w -e debug false -e class com.owncloud.android.uiautomator.InitialTest com.nextcloud.android.beta.test/android.support.test.runner.AndroidJUnitRunner
env:
global:
- secure: h4Y7ZvgbvOj5T71ubRcw3Fy3KXF8qHugRFLGK3q2R9YuRsDAf8XH+Y/UiXyH8sac2QSj7Zlny1kA1DEJgwhTXs9wsAVKVJCQNTJGEvhm/4uQgPeNMzMv07Lqe8V+KUBsFH5qhfPJO357ERW0k2f2qljoLSHtHStclt7iGvFdynA=

View file

@ -18,10 +18,6 @@
package com.owncloud.android.uiautomator;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
@ -36,6 +32,9 @@ import android.support.test.uiautomator.UiObjectNotFoundException;
import android.support.test.uiautomator.UiSelector;
import android.support.test.uiautomator.Until;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
@ -47,7 +46,7 @@ import static org.junit.Assert.assertThat;
@SdkSuppress(minSdkVersion = 18)
public class InitialTest {
private static final String OWNCLOUD_APP_PACKAGE = "com.owncloud.android";
private static final String OWNCLOUD_APP_PACKAGE = "com.nextcloud.client";
private static final String ANDROID_SETTINGS_PACKAGE = "com.android.settings";
private static final String SETTINGS_DATA_USAGE_OPTION = "Data usage";