Document directory
- Android 2.3 hierarchyviewer. bat problems
1. Install JDK 6 and Android SDK 2.3.
2. Install eclipse 3.5.2 and adt8.0.1
Https://dl-ssl.google.com/android/eclipse/
3. helloandroid
E: \ Program Files \ Android-SDK-Windows \ docs \ resources \ tutorials \ hello-world.html
4. Android unittest
Hello testing:
E: \ Program Files \ Android-SDK-Windows \ docs \ resources \ tutorials \ Testing \ helloandroid_test.html
Activity testing:
E: \ Program Files \ Android-SDK-Windows \ docs \ resources \ tutorials \ Testing \ activity_test.html
5. robotium
Tutorial:
D: \ Android \ robotium \ robotiumforbeginners.pdf
Http://code.google.com/p/robotium/wiki/Getting_Started
Example:
Http://wiebe-elsinga.com/blog? P = 300
D: \ Android \ robobench \ exampletestproject_v2.0.zip
Robotium API help document:
Robotium-solo-2.0.2-javadoc
6. Monkey
UI/Application Exerciser monkey
E: \ Program Files \ Android-SDK-Windows \ docs \ guide \ developing \ tools \ monkey.html
Monkey source code:
Http://fanfq.javaeye.com/blog/781694
Android SDK source code:
Http://www.oschina.net/code/explore/android-2.2-froyo
7. monkeyrunner
E: \ Program Files \ Android-SDK-Windows \ docs \ guide \ developing \ tools \ monkeyrunner_concepts.html
8. ADB shell sendevent
Http://blog.csdn.net/roger_ge/archive/2010/05/03/5552740.aspx
9. Auxiliary Tools
Hierarchyviewer
Ddms
ADB
Bytes -------------------------------------------------------------------------------------------------------------
Android-related test tools:
Robotium:
Http://code.google.com/p/robotium/
Autoandroid:
Http://code.google.com/p/autoandroid/
Android scripting environment:
Http://code.google.com/p/android-scripting/
Bsquare testquest countdown and testquest Pro:
Http://www.bsquare.com/automated-testing-tools.aspx
Jamo:
Http://www.jamosolutions.com/documents/android.html
Test automation for smart devices-mobile test automation:
Http://www.deviceanywhere.com/mobile-application-testing-smart-devices.html
Qtp + seetest:
Http://experitest.com/download/
Http://experitest.com/support/tutorial/how-to/set-up-new-project/connect-an-external-device-e-g-android/
Http://www.advancedqtp.com/knowledge-base/articles/environment-techniques-id15/mobile-id777/test-android-with-qtp/
Bytes ---------------------------------------------------------------------------------------------------------------------------
Test Method 1: cts
It is used to ensure that a device complies with Android compatibility specifications.
Test Method 2: Monkey
1) application developers can test the robustness of their own applications.
[Robustness is the transliteration of robust, which means robustness and robustness.
Robustness is the robustness of the system. It is the key to system survival in exceptional and dangerous situations. For example, whether a computer software fails to crash or crash when input errors, disk faults, network overload, or intentional attacks are detected is the robustness of the software. The so-called "robustness" means that the control system maintains certain performance characteristics under a certain (structure, size) parameter disturbance. According to different definitions of performance, it can be classified into stable robustness and performance robustness. The fixed controller designed with the robustness of the closed-loop system as the target is called the robust controller. ]
2) device manufacturers can use monkeys to perform stress tests on their configurations. Depends on how long the device can last.
Monkey testing can be performed globally or on a certain part (a certain category, package, etc ).
The execution is simple and the effect is obvious.
Test method 3: ase
ASE indicates the android script environment, that is, we can use scripts (such as Python) to call the android function to customize some tests. Such as making phone calls, sending text messages, Browsing webpages, etc.
We can expand its APIs (Java part) and use Python scripts to call these APIs to implement a wide range of test functions.
For some APIs, you can access all the android APIs. python can be flexibly deployed and tested, so ASE is highly scalable.
Test Method 4: robotium
This tool is used for automated testing of the black box. You can test the target application with the source code or APK only.
Robotimu provides APIs that mimic user operations, such as clicking on a control and inputting text.
Test Method 5: unit test
Android has many unit test examples. We can imitate them as needed and perform unit tests on an application.
Note that the instrument mechanism of Android is very powerful and you can test the UI.
Summary
For CTS/monkey, we don't need to develop it. We only need to execute the test.
For ase, we can expand its existing APIs (Java) and call these Apis using python to implement a wide range of test functions.
Robotium imitates common user behaviors and can automate some tests originally performed by test engineers.
Bytes -------------------------------------------------------------------------------------------
Android 2.3 hierarchyviewer. bat problems
Http://www.androiddevelopers.info/android-discussions/android-2-3-hierarchyviewer-bat-problems/
In Android 2.3 SDK, The hierarchyviewer. Bat don't work, it shows
"Failed to get the ADB version: cannot run program into adb.exe ""
After I put all "Platform-tools" dir files to "tools" dir, it works fine.