2015-03-10 13:09:31 +00:00
|
|
|
package ${package_name};
|
|
|
|
|
|
|
|
import android.app.Activity;
|
|
|
|
import android.os.Bundle;
|
2017-05-30 17:26:39 +01:00
|
|
|
import org.junit.Test;
|
|
|
|
import org.junit.runner.RunWith;
|
|
|
|
import android.support.test.runner.AndroidJUnit4;
|
|
|
|
|
2015-03-10 13:09:31 +00:00
|
|
|
import android.util.Log;
|
|
|
|
import android.view.KeyEvent;
|
|
|
|
|
|
|
|
// Import the uiautomator libraries
|
2017-05-30 17:26:39 +01:00
|
|
|
import android.support.test.uiautomator.UiObject;
|
|
|
|
import android.support.test.uiautomator.UiObjectNotFoundException;
|
|
|
|
import android.support.test.uiautomator.UiScrollable;
|
|
|
|
import android.support.test.uiautomator.UiSelector;
|
|
|
|
|
2015-03-10 13:09:31 +00:00
|
|
|
|
|
|
|
import com.arm.wlauto.uiauto.BaseUiAutomation;
|
|
|
|
|
2017-05-30 17:26:39 +01:00
|
|
|
@RunWith(AndroidJUnit4.class)
|
|
|
|
public class UiAutomation extends BaseUiAutomation {
|
2015-03-10 13:09:31 +00:00
|
|
|
|
|
|
|
public static String TAG = "${name}";
|
|
|
|
|
2017-05-30 17:26:39 +01:00
|
|
|
@Test
|
|
|
|
public void runUiAutomation() throws Exception {
|
|
|
|
initialize_instrumentation();
|
2015-03-10 13:09:31 +00:00
|
|
|
// UI Automation code goes here
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|