mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-18 19:22:36 +01:00
dev_scripts
doc
extras
scripts
wlauto
commands
templates
uiauto_template
UiAutomation.java
android_benchmark
android_uiauto_benchmark
basic_workload
setup.template
uiauto_AndroidManifest.xml
uiauto_build.gradle
uiauto_build_script
uiauto_workload
__init__.py
create.py
get_assets.py
list.py
record.py
run.py
show.py
common
core
devices
external
instrumentation
modules
resource_getters
result_processors
tests
tools
utils
workloads
__init__.py
agenda-example-biglittle.yaml
agenda-example-tutorial.yaml
config_example.py
exceptions.py
.gitignore
LICENSE
MANIFEST.in
README.rst
setup.py
Using the `android` command to create a new project has been deprecated in favour of using Android Studio. To avoid this constraint a template project has been added and this is simply duplicated with the relevant files populated when creating a new project.
33 lines
811 B
Java
33 lines
811 B
Java
package ${package_name};
|
|
|
|
import android.app.Activity;
|
|
import android.os.Bundle;
|
|
import org.junit.Test;
|
|
import org.junit.runner.RunWith;
|
|
import android.support.test.runner.AndroidJUnit4;
|
|
|
|
import android.util.Log;
|
|
import android.view.KeyEvent;
|
|
|
|
// Import the uiautomator libraries
|
|
import android.support.test.uiautomator.UiObject;
|
|
import android.support.test.uiautomator.UiObjectNotFoundException;
|
|
import android.support.test.uiautomator.UiScrollable;
|
|
import android.support.test.uiautomator.UiSelector;
|
|
|
|
|
|
import com.arm.wlauto.uiauto.BaseUiAutomation;
|
|
|
|
@RunWith(AndroidJUnit4.class)
|
|
public class UiAutomation extends BaseUiAutomation {
|
|
|
|
public static String TAG = "${name}";
|
|
|
|
@Test
|
|
public void runUiAutomation() throws Exception {
|
|
initialize_instrumentation();
|
|
// UI Automation code goes here
|
|
}
|
|
|
|
}
|