The full name of GTS is the Google Mobile services Test Suite, the so-called Google Mobility Services, which is the driving force for Google to develop and drive Android, and the soul of the Android system. GMS currently offers search, search by Voice, Gmail, contact sync, Calendar Sync, Talk, Maps, Street View, YouTube, Android Market (ICS To the Play Store) service. When users use Google, Google can embed ads in various Google services.
According to GMS, Google has given different degrees of authorization to Android phones, dividing the handset maker with Android into three levels
1. Free use of Android operating system, but not embedded in GMs.
2. Embedded part of the GMS, but the mobile phone can not be branded Google.
3. Embed all GMS services, or use Google trademarks. If Google's GMs service is built into Android phones, it is the same as Google's officially certified product.
GTS environment installation, execution, report analysis this series of operations, like CTS, only GTS must be connected to the VPN, the entire test process takes 1-2 hours, if the speed is not good, the test time is relatively long. The specific test steps are as follows:
1. Brush the machine into a version that needs to be tested;
2. Connect to a relatively high-speed WiFi, and ensure to be able to on the VPN;
3. Set the screen to sleep 30 minutes after inactivity, that is, settings, display, sleep to minutes;
4. Set Settings-Developer options, check "Stay awake" option, where the Developer options can be seen by clicking on seven build number.
5. Set the check "USB debugging" option, Settings-Developer options.
6. Set Settings-Developer options–> uncheck "Verify Apps over USB" option.
7. Set settings, Security, screen lock–> None.
8. If there is a Google browser is the default browser, you need to do some precondition, otherwise it may be due to open Google browser some initial screen fail to drop some cases.
· Open Google Chrome
· If "Welcome to Chrome" appears, click "ACCEPT & CONTINUE"
· If "Set up Chrome" appears, click "NO THANKS"
9. Click the menu key in the lower right corner to delete all recent apps.
PC-side operation:
· Installed the Java7
· The ADB is installed
Next is the specific run GTS:
1. Download the latest GTS test package from Google's website, unzip it onto your Linux computer, connect your phone, and check with ADB device to see if your phone is connected to your computer.
2. Enter the Android-xts/tools path, as shown in 1.
Figure 1 Entering the Android-xts/tools directory
3. Run the script via "./xts-tradefed" to enter the GTS console and identify the connected phone, as shown in 2.
Figure 2 Executing the xts-tradefed script
4. After the console input "run xts--plan xts" can be run all the GTS Packages,run will first wear a folder to store the results, before starting run package,3 shown.
Figure 3 Run full GTS
5. After the first round if there is a case with a not executed status, you can continue to run not executed by "Run XTs--continue-session session_id", where session_id can be passed " L R "view, 4 shown.
Figure 4 Continue not executed case
6. The fail item in the general warranty test runs three times, so you can create a session with "add Derivedplan--plan <plan_name>-S <session>-R fail" After the first round is complete The plan of the fail item, after creation, can be viewed with "L P" to see if the plan_name was successfully created, ensuring that the fail entry was rerun by "Run XTs--plan plan_name" After creation, as shown in 5.
Figure 5 Add and run fail plan
7. The test results are automatically generated to android-xts/repository/results and stored in a date-plus-time folder, where xtstestresult.xml can be opened in Firefox, viewing detailed test results, as shown in 6.
Figure 6 Detailed test results
So far, GTS from the environment to the test results analysis has been completed!
Android compatibility test gts-Environment setup, test execution, results analysis