├── README.rdoc ├── TmtsApp ├── .classpath ├── .project ├── AndroidManifest.xml ├── default.properties ├── gen │ └── com │ │ └── taobao │ │ └── R.java ├── proguard.cfg ├── res │ ├── drawable-hdpi │ │ ├── gallery_01.png │ │ ├── gallery_02.png │ │ ├── gallery_03.png │ │ ├── gallery_04.png │ │ ├── gallery_05.png │ │ ├── gallery_06.png │ │ ├── gallery_07.png │ │ ├── gallery_08.png │ │ ├── gallery_09.png │ │ ├── gallery_10.png │ │ ├── gallery_11.png │ │ ├── gallery_12.png │ │ ├── gallery_13.png │ │ ├── gallery_14.png │ │ ├── gallery_15.png │ │ ├── gallery_16.png │ │ ├── gallery_17.png │ │ ├── gallery_18.png │ │ ├── gallery_19.png │ │ ├── gallery_20.png │ │ ├── gallery_21.png │ │ ├── gallery_22.png │ │ ├── gallery_23.png │ │ ├── gallery_24.png │ │ ├── icon.png │ │ └── imagebg.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── layout │ │ ├── checkbox_layout.xml │ │ ├── listview_item_layout.xml │ │ ├── listview_layout.xml │ │ ├── main.xml │ │ ├── scrollview_layout.xml │ │ ├── textview_layout.xml │ │ ├── webview_extend_layout.xml │ │ └── webview_layout.xml │ └── values │ │ └── strings.xml └── src │ └── com │ └── taobao │ └── tmts │ └── framework │ └── app │ ├── ImageAdapter.java │ ├── ListViewActivity.java │ ├── MainActivity.java │ ├── ScrollActivity.java │ ├── TextViewActivity.java │ ├── WebViewActivity.java │ └── WebViewActivity2.java ├── TmtsTest ├── .classpath ├── .project ├── AndroidManifest.xml ├── default.properties ├── libs │ └── tmts.jar ├── proguard.cfg ├── res │ ├── drawable-hdpi │ │ └── icon.png │ ├── drawable-ldpi │ │ └── icon.png │ ├── drawable-mdpi │ │ └── icon.png │ ├── layout │ │ └── main.xml │ └── values │ │ └── strings.xml └── src │ └── com │ └── taobao │ └── tmts │ └── framework │ └── test │ ├── ListViewActivityTest.java │ ├── MainActivityTest.java │ ├── ScrollViewActivityTest.java │ ├── TextViewActivityTest.java │ └── WebViewTest.java └── Tmts_Java ├── .classpath ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── libs └── android.jar └── src └── com └── taobao └── tmts └── framework ├── Constants.java ├── TaobaoTestCase.java ├── Tmts.java ├── TmtsLog.java ├── TmtsTestCase.java ├── gen ├── LayoutViews.java └── TmtsGenClass.java ├── utils ├── ActivityUtils.java ├── ClickUtils.java ├── MatchCounter.java ├── ScrollUtils.java ├── Sleeper.java └── ViewUtils.java └── view ├── JavascriptInterface.java ├── TmtsAbsListView.java ├── TmtsAdapterView.java ├── TmtsAutoCompleteTextView.java ├── TmtsButton.java ├── TmtsCheckBox.java ├── TmtsCheckedTextView.java ├── TmtsEditText.java ├── TmtsFrameLayout.java ├── TmtsImageButton.java ├── TmtsImageView.java ├── TmtsListView.java ├── TmtsMultiAutoCompleteTextView.java ├── TmtsProgressBar.java ├── TmtsRelativeLayout.java ├── TmtsScrollView.java ├── TmtsTextView.java ├── TmtsView.java ├── TmtsViewAnimator.java ├── TmtsViewFlipper.java ├── TmtsViewGroup.java ├── TmtsViewSwitcher.java ├── TmtsWebElement.java └── TmtsWebView.java /README.rdoc: -------------------------------------------------------------------------------- 1 | ==Getting started 2 | * Follow the instructions below if you want to see how Tmts_Java(our framework) works and how an Android test project looks like. If you want to create a new test project then please go to the tutorials page. 3 | 4 | * When you have created a new test project you need to add the Tmts_Java jar to the build path. In Eclipse that is done by right clicking on the test project --> Properties --> Java Build Path --> Add (external) Jar. 5 | 6 | * Example test project 7 | In the source code section you will find TmtsTest which is an example test project created in Eclipse to test TmtsApp. TmtsApp is a sample android project. 8 | 9 | * In Eclipse click on File --> New --> Project --> Android Project --> Create Project from existing source --> TmtsApp. 10 | 11 | * Then you import TmtsApp by clicking on File --> Import --> Existing Project into workspace --> Select file --> TmtsApp. 12 | 13 | * Then you can run these test cases either on the emulator or on device. You right click the test project and select Run As --> Run As Android JUnit Test. 14 | 15 | * If you have problems running the test project or some Tmts_Java functionality is not working as it should then please add the following tag to the AndroidManifest.xml: 16 | 17 | 18 | 19 | 20 | == License 21 | 22 | TMTS is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 23 | -------------------------------------------------------------------------------- /TmtsApp/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TmtsApp/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | TmtsApp 4 | 5 | 6 | 7 | 8 | 9 | com.android.ide.eclipse.adt.ResourceManagerBuilder 10 | 11 | 12 | 13 | 14 | com.android.ide.eclipse.adt.PreCompilerBuilder 15 | 16 | 17 | 18 | 19 | org.eclipse.jdt.core.javabuilder 20 | 21 | 22 | 23 | 24 | com.android.ide.eclipse.adt.ApkBuilder 25 | 26 | 27 | 28 | 29 | 30 | com.android.ide.eclipse.adt.AndroidNature 31 | org.eclipse.jdt.core.javanature 32 | 33 | 34 | -------------------------------------------------------------------------------- /TmtsApp/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /TmtsApp/default.properties: -------------------------------------------------------------------------------- 1 | # This file is automatically generated by Android Tools. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must be checked in Version Control Systems. 5 | # 6 | # To customize properties used by the Ant build system use, 7 | # "build.properties", and override values to adapt the script to your 8 | # project structure. 9 | 10 | # Project target. 11 | target=android-8 12 | -------------------------------------------------------------------------------- /TmtsApp/gen/com/taobao/R.java: -------------------------------------------------------------------------------- 1 | /* AUTO-GENERATED FILE. DO NOT MODIFY. 2 | * 3 | * This class was automatically generated by the 4 | * aapt tool from the resource data it found. It 5 | * should not be modified by hand. 6 | */ 7 | 8 | package com.taobao; 9 | 10 | public final class R { 11 | public static final class attr { 12 | } 13 | public static final class drawable { 14 | public static final int icon=0x7f020000; 15 | } 16 | public static final class id { 17 | public static final int ItemImage=0x7f050003; 18 | public static final int ItemText=0x7f050005; 19 | public static final int ItemTitle=0x7f050004; 20 | public static final int LinearLayout01=0x7f050000; 21 | public static final int ListView01=0x7f050001; 22 | public static final int RelativeLayout01=0x7f050002; 23 | public static final int btn_back=0x7f050008; 24 | public static final int btn_close=0x7f050007; 25 | public static final int btn_goto_listview=0x7f050009; 26 | public static final int btn_next=0x7f050006; 27 | } 28 | public static final class layout { 29 | public static final int listview=0x7f030000; 30 | public static final int listviewlayout=0x7f030001; 31 | public static final int main=0x7f030002; 32 | public static final int second_activity=0x7f030003; 33 | } 34 | public static final class string { 35 | public static final int app_name=0x7f040001; 36 | public static final int back=0x7f040004; 37 | public static final int close=0x7f040003; 38 | public static final int goto_listview=0x7f040005; 39 | public static final int hello=0x7f040000; 40 | public static final int next=0x7f040002; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /TmtsApp/proguard.cfg: -------------------------------------------------------------------------------- 1 | -optimizationpasses 5 2 | -dontusemixedcaseclassnames 3 | -dontskipnonpubliclibraryclasses 4 | -dontpreverify 5 | -verbose 6 | -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* 7 | 8 | -keep public class * extends android.app.Activity 9 | -keep public class * extends android.app.Application 10 | -keep public class * extends android.app.Service 11 | -keep public class * extends android.content.BroadcastReceiver 12 | -keep public class * extends android.content.ContentProvider 13 | -keep public class com.android.vending.licensing.ILicensingService 14 | 15 | -keepclasseswithmembernames class * { 16 | native ; 17 | } 18 | 19 | -keepclasseswithmembernames class * { 20 | public (android.content.Context, android.util.AttributeSet); 21 | } 22 | 23 | -keepclasseswithmembernames class * { 24 | public (android.content.Context, android.util.AttributeSet, int); 25 | } 26 | 27 | -keepclassmembers enum * { 28 | public static **[] values(); 29 | public static ** valueOf(java.lang.String); 30 | } 31 | 32 | -keep class * implements android.os.Parcelable { 33 | public static final android.os.Parcelable$Creator *; 34 | } 35 | -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_01.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_02.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_03.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_04.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_05.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_06.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_07.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_08.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_09.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_10.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_11.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_12.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_13.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_14.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_15.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_16.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_17.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_18.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_19.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_20.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_21.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_22.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_23.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/gallery_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/gallery_24.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-hdpi/imagebg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-hdpi/imagebg.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-ldpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-ldpi/icon.png -------------------------------------------------------------------------------- /TmtsApp/res/drawable-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TMTS/Android-automation/c3f23d528a6334eac402fe95045624e083f2a31f/TmtsApp/res/drawable-mdpi/icon.png -------------------------------------------------------------------------------- /TmtsApp/res/layout/checkbox_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 8 | 9 | 14 | 15 | -------------------------------------------------------------------------------- /TmtsApp/res/layout/listview_item_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 13 | 16 | 17 | -------------------------------------------------------------------------------- /TmtsApp/res/layout/listview_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 7 | 8 | -------------------------------------------------------------------------------- /TmtsApp/res/layout/main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | 13 | 14 |