Androge Repair Test Ideas

Source: Internet
Author: User

Our Android development has recently studied the function of heat repair, and the research is using Tinker; This is the development of the little brother dumped me Tinker document: Https://github.com/Tencent/tinker/wiki

First, clear test test point

Let's take a look at Tinker. Introduction:Tinker is the official Android hot fix solution that supports dynamic code, so libraries, and resources, enabling applications to be updated without the need to reinstall. Of course, you can also use Tinker to update your plugin. So, it can be understood as long as the code is modified. So library files and resource files can solve the problem, we can no longer contract solution ~ Then we are combining our Android APK file structure: 1, Java code files, 2, resource Files (res+assert), 3.so files, such as the test case on the success is divided into three effective equivalence classes.

    • Modify Code
    1. Everything changes the behavior of the code
    • Modify a resource file
    1. Res is an icon in the app, colors and animations and other files
    2. Assert is the resource, font, etc. of the H5 page that the app dives in
    • Modify. So dynamic library file
    1. Libraries written directly by C + + code that contain static libraries. A and dynamic libraries. So, these library files are generally not modified, so they are not included in the test scope

At the same time, the wiki has identified some tinker known issues: 1, Tinker does not support modification Androidmanifest.xml,tinker does not support the addition of four new components (1.9.0 support new non-export activity); 2, for resource substitution, modifying remoteview such as transition animation, notification icon, and desktop icons is not supported, as the test case above is successfully divided into two invalid equivalence classes.

    • Modify Androidmanifest.xml
    1. New Activiting not supported
    2. Registering a new service is not supported
    • Modifying RemoteView is not supported
    1. modifying system notification styles is not supported
    2. Modifying desktop icons is not supported

Above, clear the test point of our hot repair ~

Additional: Development takes into account the possibility of joining a hot fix may be temporarily unused, all added switch function, only the switch open version to perform the hot repair ~ switch is also to be measured!

Ii. Clear Testing process

    1. Development children's shoes upload a test package with bugs on the FTP server, and the hot fix switch opens
    2. Download the test pack to the app
    3. Development Students upload path package (vision-1) to the FTP server, the server will record the path path and version number
    4. Cold start, check whether repair
    5. Hot start, see if fix

This section of the introduction in combining the Android APK installation package file structure:

1. meta-inf\ (note: Jar files are often seen);

2. Res\ (Note: The directory where the resource files are stored);

3. Androidmanifest.xml (Note: Program global configuration file);

4. Classes.dex (Note: Dalvik byte code);

5. RESOURCES.ARSC (Note: Compiled binary resource file).

Androge Repair Test Ideas

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.