A human-computer interaction testing method, apparatus and electronic device

By adding custom manual test items and entry controls to the traditional MMI test APK, the lack of custom tests in MMI testing is solved, improving product quality and reducing the impact on production efficiency.

CN120780585BActive Publication Date: 2026-06-30HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-05-27
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

The lack of custom manual test items in the existing MMI testing makes it difficult to guarantee the quality of products leaving the factory, and adding custom manual test items to the existing testing procedures will affect production efficiency.

Method used

Add code for custom manual test items to the traditional test program MMI test APK, and add a manual test entry control to the operation interface. Manual clicks can map to the relevant test program, thus realizing the introduction of custom manual test items.

Benefits of technology

This improved the quality of finished products, reduced the impact on production efficiency, and avoided problems such as redundant testing and long modification cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120780585B_ABST
    Figure CN120780585B_ABST
Patent Text Reader

Abstract

This application provides an MMI testing method, apparatus, and electronic device, relating to the field of smart terminals. The method is applied to an electronic device including a first test program and a second test program. The method includes: upon detecting a first operation, running the first test program to enter an automated test of a first function; subsequently running the second test program and displaying an operation interface including a manual test entry control for the second function and an automated test start icon for a third function; upon detecting that the manual test entry control is clicked, entering the manual test of the second function; subsequently starting the automated test of the third function based on the automated test start icon; and exiting the second test program after the test is completed. Based on this application's solution, custom manual test items can be introduced into the current MMI testing, thereby improving the quality of manufactured products.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart terminals, and in particular to a human-computer interaction testing method, apparatus, and electronic device. Background Technology

[0002] Human-machine interaction (MMI) testing is used to conduct comprehensive testing on electronic devices such as mobile phones, tablets, and wearable devices before they leave the factory to ensure the quality of the shipped electronic devices. Test items may include buttons, headphones, universal serial bus (USB) interface, audio, touch panel (TP), front and rear cameras, flash, sensors, communication functions, etc.

[0003] Current technology primarily implements MMI testing through the MMI2S APK and MMI test APK testing programs. The MMI2S APK is mainly used for automated testing of functions such as touchscreen line drawing, while the MMI test APK is mainly used for automated testing of screen, camera, sensor, and audio functions. Furthermore, to improve the quality of manufactured products, it is necessary to add custom manual test items to MMI testing, such as manual tests for screen and camera functions. Therefore, how to incorporate custom manual test items into current MMI testing is a pressing technical problem that needs to be solved. Summary of the Invention

[0004] This application provides an MMI testing method, apparatus, and electronic device that can introduce custom manual test items into current MMI testing, thereby improving the quality of outgoing products.

[0005] In a first aspect, embodiments of this application provide an MMI testing method applied to an electronic device. The electronic device includes a first test program and a second test program. The first test program is used to implement automated testing of a first function, and the second test program is used to implement manual testing of a second function and automated testing of a third function. The method includes: running the first test program when a first operation is detected; entering automated testing of the first function in response to running the first test program; running the second test program after detecting the completion of automated testing of the first function; displaying an operation interface in response to running the second test program, the operation interface including a manual testing entry control for the second function and an automated testing start icon for the third function; entering manual testing of the second function when the manual testing entry control is clicked; starting automated testing of the third function based on the automated testing start icon after detecting the completion of manual testing of the second function; and exiting the second test program after detecting the completion of automated testing of the third function.

[0006] The manual test for the second function can be understood as the aforementioned custom manual test item; the first test program can be understood as the aforementioned test program MMI2S APK; the second test program can be understood as the test program obtained by upgrading the aforementioned traditional test program MMItest APK framework. In this application, the second test program can be referred to as the test program MMI test APK.

[0007] It should be noted that traditional MMI test APKs typically only include automated test code for the third function, and traditional user interfaces usually only include an automated test launch icon for the third function. Therefore, before implementing the solution in this application, it is necessary to pre-add the relevant code for manual testing of the second function to the traditional MMI test APK, and add a manual test entry control for the second function to the user interface that includes the automated test launch icon for the third function. This manual test entry control should have a mapping relationship with the relevant code for the manual test of the second function, so that when the electronic device runs the second test program, the user interface including the manual test entry control for the second function and the automated test launch icon for the third function can be displayed. Based on this, testers can click the entry control, and subsequently, when the electronic device detects that the manual test entry control for the second function has been clicked, it can enter the manual test for the second function. Based on this, custom manual test items can be introduced into the current MMI test, thereby improving the quality of the manufactured products.

[0008] Furthermore, it should be noted that the aforementioned test program MMI2S APK is a general-purpose APK developed by the company and used in all of its products. Adding custom manual test items to the MMI2S APK would present three problems: First, because the MMI2S APK is a general-purpose APK, modifications to it must undergo rigorous verification, which takes a long time and impacts production efficiency. Second, since this APK is used in all of the company's products, adding custom manual test items would require all products to undergo this manual testing, even though only some products may actually require it. This would lead to redundant manual testing and further impact production efficiency. Third, if subsequent automated testing is sufficient to meet quality requirements and manual testing is no longer needed, the APK would need to be modified and verified again, which takes a long time and impacts production efficiency.

[0009] The MMI test APK is a third-party developed program specifically for MMI testing. The company uses it for MMI testing of some products. Compared to adding custom manual test items to the MMI2S test APK, adding custom manual test items to the MMI test APK has the following advantages: First, since the MMI test APK is a dedicated third-party MMI test program, modifications to it have minimal impact. Therefore, after modification and compliance testing, it can be used with minimal impact on production efficiency. Second, since this APK is only used for some products, testing can be performed only on products with testing needs, thus avoiding test redundancy and minimizing impact on production efficiency. Third, this implementation method can utilize traditional MMI test... The APK testing framework adds a custom manual testing item entry control to the operation interface, which is then mapped to the relevant test program by manual clicking. Therefore, the modifications are minimal, which can reduce the online time of the test program and thus reduce the impact on production efficiency. Fourth, if subsequent automated testing is sufficient to meet the quality requirements and manual testing is no longer needed, the APK can be directly archived. That is, there is no need to modify or verify the APK again. Instead, in subsequent testing, the testing equipment can control the automation test of the third function to not check whether the manual test has been completed. This means that the automation test of the third function can be started regardless of whether the manual test has been performed or completed.

[0010] Furthermore, compared to developing a new test program to implement custom test items, adding custom manual test items to the MMI test APK requires less modification, which can reduce the test program's deployment time and thus reduce the impact on production efficiency.

[0011] In conjunction with the first aspect described above, in some implementations of the first aspect, before detecting the first operation, the method further includes: receiving a flag instruction sent by the test device; flagging the first test program and the second test program based on the flag instruction; sending a flag success notification to the test device; receiving an MMI test start instruction sent by the test device; and generating a prompt message to prompt the tester to perform the first operation.

[0012] Specifically, before the electronic device starts the MMI test, the test device can send a flag command to the electronic device, so that the electronic device can flag the first test program and the second test program based on the flag command. After the electronic device completes the flagging, it can feed back the flagging result to the test device. Then, after the test device confirms that the flagging is successful, it can send an MMI test start command to the electronic device. Based on this, the electronic device can perform the MMI test based on the start command and the flagged test program.

[0013] In conjunction with the first aspect above, in some implementations of the first aspect, when starting the automated test of the third function based on the automated test start icon, the method further includes: sending a first inspection instruction to the test device, the first inspection instruction being used to request the test device to check the completion status of the manual test; receiving a first inspection result sent by the test device; when it is determined based on the first inspection result that there are missing items in the manual test, exiting the automated test of starting the third function and retesting the missing items; or, when it is determined based on the first inspection result that there are no missing items in the manual test, continuing the automated test of the third function.

[0014] It should be understood that this implementation method can be understood as a mistake-proofing check for electronic devices. Based on this mistake-proofing check, when a missing item is detected, the missing item can be retested, thereby ensuring the quality of the products leaving the factory.

[0015] In conjunction with the first aspect above, in some implementations of the first aspect, after exiting the second test program, the method further includes: restoring factory settings.

[0016] In conjunction with the first aspect above, in some implementations of the first aspect, after exiting the second test program, the method further includes: sending a second inspection instruction to the test device, the second inspection instruction being used to request the test device to inspect the completion status of the entire MMI test; receiving a second inspection result sent by the test device; if it is determined based on the second inspection result that there is a missing item in the entire MMI test, retesting the missing item; or, if it is determined based on the second inspection result that there is no missing item in the entire MMI test, restoring factory settings.

[0017] It should be understood that this implementation method can be understood as a mistake-proofing check for electronic devices. Based on this mistake-proofing check, when a missing item is detected, the missing item can be retested, thereby ensuring the quality of the products leaving the factory.

[0018] In conjunction with the first aspect described above, in some implementations of the first aspect, the automated test that initiates the third function based on the automated test launch icon includes: scanning the automated test launch icon to establish a wireless network connection; and after detecting the wireless network connection, initiating the automated test of the third function. Based on this implementation, automated testing of the third function can be achieved. Optionally, the icon can be a QR code or other icons; this application does not limit this.

[0019] In conjunction with the first aspect above, in some implementations of the first aspect, the third function includes the second function and the fourth function, and the automated test that starts the third function based on the automated test launch icon includes: starting the automated test of the second function based on the automated test launch icon; and starting the automated test of the fourth function after detecting that the automated test of the second function has been completed.

[0020] It should be understood that when the third function includes the second and fourth functions, the operation of the second test program can achieve both manual testing and automated testing of the second function, thereby improving the quality of the delivered product.

[0021] In conjunction with the first aspect above, in some implementations of the first aspect, the first function includes one or more of the following: touch screen drawing function, microphone function, radio function, gravity sensing function, etc.; the second function includes screen-related functions and / or camera-related functions, etc.; and the fourth function includes audio functions and / or sensor functions, etc.

[0022] In conjunction with the first aspect above, in some implementations of the first aspect, the electronic device includes a volume down button, and the first operation includes pressing the volume down button.

[0023] In conjunction with the first aspect above, in some implementations of the first aspect, the first test program and the second test program are tested by the Google binary test suite (BTS).

[0024] Based on this implementation method, the compliance of the first and second test program code can be guaranteed, ensuring that the first and second test programs will not snoop on user privacy information after leaving the factory, and users can uninstall the test program and will not be able to start the test program.

[0025] In a second aspect, embodiments of this application provide an MMI testing apparatus applied to an electronic device, the apparatus comprising: a processor for performing any of the possible methods described in the first aspect above.

[0026] Thirdly, embodiments of this application provide an electronic device, including: one or more processors; one or more memories; the memories storing one or more programs, which, when executed by the processor, cause the electronic device to perform any of the possible methods described in the first aspect above.

[0027] Fourthly, embodiments of this application provide an apparatus included in an electronic device, which has the function of implementing the behaviors of the electronic device in the above aspects and possible implementations thereof. The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above functions. For example, a detection module or unit, a processing module or unit, etc.

[0028] Fifthly, embodiments of this application provide a chip, including a memory for storing program instructions; and a processor coupled to the memory for executing the program instructions to cause the chip to perform any of the possible methods in the first aspect described above.

[0029] In a sixth aspect, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform any of the possible methods described in the first aspect above.

[0030] In a seventh aspect, embodiments of this application provide a computer program product containing instructions, including: computer program code, which, when executed by an electronic device, causes the electronic device to perform any of the possible methods described in the first aspect above.

[0031] The technical effects achieved by the second to seventh aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0032] Figure 1 This is a schematic diagram of an MMI testing system provided in an embodiment of this application;

[0033] Figure 2 This is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application;

[0034] Figure 3 This is a schematic diagram of an MMI testing process;

[0035] Figure 4This is a schematic diagram of the user interface of a traditional testing program, MMI test APK.

[0036] Figure 5 This is a schematic flowchart of an MMI testing method provided in an embodiment of this application;

[0037] Figure 6 This is a schematic diagram of the operation interface of a second test program provided in an embodiment of this application;

[0038] Figure 7 This is a schematic diagram of the operation interface of another second test program provided in an embodiment of this application;

[0039] Figure 8 This is a schematic flowchart illustrating a specific implementation of an MMI testing method provided in an embodiment of this application;

[0040] Figure 9 This is a schematic diagram of the operation interface of another second test program provided in the embodiments of this application;

[0041] Figure 10 This is a schematic diagram of the structure of an MMI testing device provided in an embodiment of this application;

[0042] Figure 11 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0043] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" do not necessarily imply that they are different.

[0044] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0045] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0046] The following is a detailed description of the proposed solution with reference to the accompanying drawings.

[0047] Figure 1 This is a schematic diagram of an MMI testing system provided in an embodiment of this application. Figure 1 As shown, the MMI testing system 10 includes a testing device 11 and an electronic device 12. The testing device 11 and the electronic device 12 are connected via communication. This connection can be via USB, Bluetooth, or other methods, which are not limited in this application.

[0048] The testing device 11 sends a test start command to the electronic device 12, which instructs the electronic device 12 to start the MMI test. Accordingly, the electronic device 12 receives the test start command sent by the testing device 11 and starts the MMI test based on the test start command. Specifically, the electronic device 12 can run the MMI test program to test the relevant functions in the electronic device 12 (e.g., audio function, sensor function, camera function, touch screen function, etc.). In addition, after completing the test, the electronic device 12 can also feed back the test results to the testing device 11.

[0049] For example, the test device 11 can be a personal computer (PC) or an industrial personal computer (IPC), etc.

[0050] For example, electronic device 12 may also be referred to as user equipment (UE), terminal equipment, or user terminal, etc.; electronic device may be, but is not limited to, mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, vehicle-mounted device, ultra-mobile personal computer (UMPC), netbook, cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, etc., and the embodiments of this application do not limit it in this way.

[0051] For example, Figure 2 This is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0052] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0053] Processor 110 may include one or more processing units, such as application processors, satellite communication processors, modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0054] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0055] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0056] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0057] The power management module 141 connects the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, display screen 194, camera 193, and wireless communication module 160, etc. In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.

[0058] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0059] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0060] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the same device as at least some modules of the processor 110.

[0061] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0062] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with networks and other devices through wireless communication technology.

[0063] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0064] The display screen 194 is used to display images, display videos, and receive swipe operations, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0065] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0066] The ISP is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0067] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0068] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0069] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0070] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0071] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0072] Internal memory 121 can be used to store executable program code, including instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located within the processor.

[0073] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0074] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0075] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, touch operations applied to different applications (such as taking photos, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations applied to different areas of the display screen 194 can also correspond to different vibration feedback effects from motor 191. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0076] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0077] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0078] In current technology, MMI testing is primarily implemented using the test programs MMI2S APK and MMI test APK. MMI2S APK is mainly used for automated testing of touchscreen functions such as line drawing, while MMItest APK is mainly used for automated testing of screen, camera, sensor, and audio functions. Furthermore, to further improve the quality of manufactured products, it is necessary to add custom manual test items to MMI testing, such as manual test items for screen and camera functions.

[0079] In one possible implementation, custom manual test items can be added to the MMI2S test program APK. Based on this implementation, such as... Figure 3 As shown, the MMI test procedure 300 includes the following steps:

[0080] S310, Electronic device initiates MMI test;

[0081] Specifically, electronic devices can initiate MMI testing based on the startup command of the test equipment.

[0082] S320, electronic device running test program MMI2S APK;

[0083] In response to the running of the test program MMI2S APK, the electronic device sequentially performs automated testing of the TP scribing function, as well as manual testing of screen and camera functions.

[0084] S330, Electronic device runs test program MMI test APK;

[0085] In response to the execution of the test program MMI test APK, the electronic device sequentially performs automated tests on screen functions, camera functions, sensor functions, and audio functions.

[0086] Specifically, when the running test program MMI test APK is detected, the electronic device can display as follows: Figure 4 The operation interface shown includes an entry control for a QR code interface; subsequently, the tester or other execution device can click the entry control; after the electronic device detects that the entry control for the QR code interface has been clicked, it can display the QR code; subsequently, the electronic device scans the QR code to connect to Wi-Fi, and after the Wi-Fi connection is established, it automatically performs automated tests on screen functions, camera functions, sensor functions, and audio functions in sequence.

[0087] S340, restore factory settings.

[0088] This means that once the electronic device detects that the test is complete, it can perform a factory reset.

[0089] It should be noted that the aforementioned MMI2S APK is a company-developed, general-purpose APK used in all of the company's products. Adding custom manual testing items to the MMI2S APK would present three problems: First, because the MMI2S APK is a general-purpose APK, modifications to it must undergo rigorous verification, which is time-consuming and impacts production efficiency. Second, since this APK is used in all the company's products, adding custom manual testing items would require all products to undergo this manual testing, even though only some products may actually require it. This would lead to redundant manual testing and further impact production efficiency. Third, if subsequent automated testing is sufficient to meet quality requirements and manual testing is no longer needed, the APK would require re-modification and verification, resulting in a lengthy process and impacting production efficiency.

[0090] Another possible implementation is to develop a new test program to implement custom test projects. However, developing a new APK requires manpower and has a long archiving time, which affects production efficiency.

[0091] Based on this, this application proposes to use the traditional MMI test APK testing framework, add a custom manual test item entry control to the operation interface, and map it to the relevant test program through manual clicking, so as to realize the introduction of custom manual test items in MMI testing.

[0092] Furthermore, it should be noted that the MMI test APK is a third-party developed program specifically for MMI testing, which the company uses for MMI testing of some products. Compared to adding custom manual test items to the MMI2S test program APK, adding custom manual test items to the MMI test APK has the following advantages: First, since the MMI test APK is a dedicated MMI test program developed by a third party, modifying it has minimal impact. Therefore, after modification and compliance testing, it can be used with minimal impact on production efficiency. Second, since this APK is only used for some products, testing can be performed only on products with testing needs, thus avoiding test redundancy and minimizing impact on production efficiency. Third, this implementation method can utilize traditional MMI test... The APK testing framework adds a custom manual test item entry control to the operation interface, which is then manually clicked and mapped to the relevant test program. Therefore, the modifications are minimal, reducing the test program's deployment time and thus minimizing the impact on production efficiency. Fourth, if subsequent automated testing sufficiently meets quality requirements and manual testing is no longer needed, the APK can be directly archived. This eliminates the need for further modification or verification of the APK; instead, the testing equipment can control the automation of the third function to not check for the completion of manual testing during subsequent testing. This means that automated testing of the third function can proceed regardless of whether manual testing has been performed or completed. Furthermore, compared to developing a new test program to implement custom test items, adding custom manual test items to the MMI test APK test program involves minimal modifications, reducing the test program's deployment time and thus minimizing the impact on production efficiency.

[0093] Figure 5 This is a schematic flowchart of an MMI testing method provided in an embodiment of this application. It should be understood that... Figure 5 The method 500 shown can be performed by an electronic device, or by a device, module, or chip within an electronic device. The electronic device could be, for example, a... Figure 1 The electronic device 12 shown or Figure 2 The electronic device 100 shown.

[0094] The electronic device may include a first test program and a second test program.

[0095] The first test program can be referred to as the test program MMI2S APK, which is mainly used in this application to implement automated testing of the first function.

[0096] The second test program can be referred to as the test program MMI test APK. In this application, the second test program is mainly used to implement manual testing of the second function and automated testing of the third function.

[0097] Optionally, the first and second test programs mentioned above can be test programs that have undergone Google BTS testing. Based on this, the compliance of the code for the first and second test programs can be guaranteed, ensuring that the first and second test programs will not snoop on user privacy information after leaving the factory, and that users can uninstall the test programs and will not be able to launch them.

[0098] like Figure 5 As shown, method 500 may include steps S510 to S570, which will be described in detail below.

[0099] S510, when the electronic device detects the first operation, it runs the first test program.

[0100] Before step S510 is executed, the following steps can be performed sequentially: establish a communication connection between the test device and the electronic device, for example, by establishing a communication connection between the test device and the electronic device via USB; the test device sends a flag instruction to the electronic device to flag the first test program and the second test program; after receiving the flag instruction sent by the test device, the electronic device flags the first test program and the second test program; after the flag is completed, the electronic device can send a flag success notification to the test device; after confirming the flag is successful, the test device can send an MMI test start instruction to the electronic device; after receiving the MMI test start instruction sent by the test device, the electronic device can start the MMI test.

[0101] Optionally, in the above process, after the test device sends a flag command to the electronic device to flag the first test program and the second test program, it can perform command readback verification to check whether the flag bit is 1. If the flag bit is 1, it indicates that the flag is successful. After confirming that the flag is successful, the test device can send an MMI test start command to the electronic device to start the first test program and the second test program through the electronic device. If the flag bit is 0, it indicates that the flagging has failed. In this case, the test device needs to resend the flag command to the electronic device to flag the first test program and the second test program so that the electronic device can re-flag the first test program and the second test program.

[0102] As an example, after receiving the MMI test start command sent by the test equipment, the electronic device can directly run the first test program.

[0103] As an example, after receiving the MMI test start command sent by the test equipment, the electronic device can generate a prompt message to prompt the tester to perform the first operation; subsequently, when the electronic device detects the first operation, it runs the first test program.

[0104] Optionally, the prompt message can be a voice message or a display message on the user interface, without limitation.

[0105] Optionally, the first operation may be a tester pressing a button on an electronic device, a voice command initiated by the tester, or other operations by the tester; this application does not limit this.

[0106] For example, after receiving the MMI test start command sent by the test equipment, the electronic device can generate a prompt message to prompt the tester to press a certain button on the electronic device, such as prompting the tester to press the volume down button.

[0107] For example, after receiving the MMI test start command sent by the test equipment, the electronic device can generate a prompt message to prompt the tester to initiate a voice command, such as prompting the tester to start the MMI test by voice instructing the electronic device.

[0108] As another example, after receiving the MMI test start command sent by the test equipment, the electronic device can generate an instruction message to instruct the test equipment to control a mechanical cylinder or robotic arm to press a button on the electronic device, for example, to control a mechanical cylinder or robotic arm to press the volume down button; then, when the electronic device detects the operation, it runs the first test program.

[0109] It should be understood that the above methods for starting MMI testing are merely examples, and other methods can be used in practice without limitation.

[0110] S520, in response to running the first test program, the electronic device enters the automated test of the first function.

[0111] For example, the first function may include one or more of the following: TP marking function, microphone function, radio function, gravity sensing function, etc. Based on this example, in response to running the first test program, the electronic device may specifically perform automated tests on one or more of the following: TP marking function, microphone function, radio function, gravity sensing function, etc.

[0112] S530: After the electronic device detects that the automated test of the first function has been completed, it runs the second test program.

[0113] In response to running the second test program, the S540 electronic device displays the operation interface.

[0114] like Figure 6 As shown, the user interface may include a manual test entry control (for the second function) and an automated test start icon (for the third function). For example, the second function may include screen-related functions and / or camera-related functions. The third function may include the aforementioned second and fourth functions, and the fourth function may include audio functions and / or sensor functions.

[0115] It should be noted that traditional test programs (MMI test APKs) typically only include automated test code for the third function, and traditional user interfaces usually only include an automated test launch icon for the third function. Therefore, before implementing the solution proposed in this application, it is necessary to pre-add the relevant code for manual testing of the second function to the traditional test program (MMI test APK), and add a manual test entry control for the second function to the user interface that includes the automated test launch icon for the third function. This manual test entry control should have a mapping relationship with the relevant code for the manual test of the second function, so that when the electronic device runs the second test program, it can display a user interface including the manual test entry control for the second function and the automated test launch icon for the third function. Based on this, testers can click the entry control, and when the electronic device detects that the manual test entry control for the second function has been clicked, it can enter the manual test for the second function.

[0116] Optionally, when the second function includes multiple functions, the manual test entry control for the second function may include multiple entry controls. For example, function 1 corresponds to manual test entry control 1, function 2 corresponds to manual test entry control 2, and so on. Figure 7 As shown. Based on this, when the manual test entry control 1 is clicked, the test of function 1 can be entered; when the manual test entry control 2 is clicked, the test of function 2 can be entered, and so on.

[0117] S550: When the electronic device detects that the manual test entry control has been clicked, it enters the manual test of the second function.

[0118] Based on the example of the second function described above, when the electronic device detects that the manual test entry control has been clicked, it can specifically perform manual tests on screen-related functions and / or camera-related functions. Among them, screen-related functions can be, for example, functions of LCD color and monochrome screens, and camera-related functions can be, for example, functions of rear main camera, depth of field, front camera, etc., without limitation.

[0119] Optionally, if the second test program exits midway, the above-mentioned operation interface can be accessed by entering a command or based on the set path. As an example, the command could be “*#*#2846579#*#*”; as an example, the set path could be “Settings - Engineering Menu - Software Upgrade - Launch Test Application - Second Test Program”. It should be understood that the above commands and set paths are merely examples, and the actual operation should be determined based on the specific settings in the electronic device; this application does not impose any limitations on them.

[0120] S560: After detecting that the manual test of the second function has been completed, the electronic device starts the automated test of the third function based on the automated test start icon.

[0121] Specifically, after detecting the completion of manual testing for the second function, the electronic device can scan the automated test launch icon to establish a Wi-Fi connection; and after detecting the Wi-Fi connection, it can initiate automated testing for the third function. Based on the example of the third function mentioned above, after detecting a Wi-Fi connection, the electronic device can perform automated tests on one or more of the following: screen functions, camera functions, audio functions, sensor functions, etc.

[0122] Optionally, if the third function includes the second and fourth functions, the electronic device may first start the automated test of the second function based on the automated test start icon; and then start the automated test of the fourth function after the automated test of the second function is detected to be completed.

[0123] It should be understood that when the third function includes the second and fourth functions, the operation of the second test program can achieve both manual testing and automated testing of the second function, thereby improving the quality of the delivered product.

[0124] Optionally, the launch icon can be a QR code or other icons, without limitation.

[0125] In one possible implementation, when the electronic device initiates the automated test of the third function based on the automated test start icon, it can send a first check instruction to the test device. The first check instruction is used to request the test device to check the completion status of the manual test. Accordingly, the test device checks the completion status of the manual test based on the first check instruction, obtains a first check result, and sends the first check result to the electronic device. Subsequently, the electronic device receives the first check result sent by the test device, and if it determines based on the first check result that there is an omission in the manual test, it exits the automated test of initiating the third function and retests the omission. Alternatively, if it determines based on the first check result that there is no omission in the manual test, it continues the automated test of the third function.

[0126] It should be understood that this implementation method can be understood as a mistake-proofing check for electronic devices. Based on this mistake-proofing check, when a missing item is detected, the missing item can be retested, thereby ensuring the quality of the products leaving the factory.

[0127] S570: After the electronic device detects that the automated test for the third function has been completed, it exits the second test program.

[0128] In one possible implementation, the electronic device can perform a factory reset operation after exiting the second test program.

[0129] In another possible implementation, after exiting the second test program, the electronic device can send a second check instruction to the test device, which requests the test device to check the completion status of the entire MMI test. Accordingly, the test device checks the completion status of the entire MMI test based on the second check instruction, obtains a second check result, and sends the second check result to the electronic device. Subsequently, the electronic device receives the second check result sent by the test device, and if it determines based on the second check result that there are missing items in the entire MMI test, it returns to retest the missing items; or if it determines based on the second check result that there are no missing items in the entire MMI test, it performs a factory reset operation.

[0130] It should be understood that this implementation method can be understood as a mistake-proofing check for electronic devices. Based on this mistake-proofing check, when a missing item is detected, the missing item can be retested, thereby ensuring the quality of the products leaving the factory.

[0131] It should be understood that the steps described above for error-proofing checks are merely examples. In practice, error-proofing checks can also be performed at other steps, without limitation.

[0132] In summary, this application utilizes the traditional MMI test APK testing framework, adds a custom manual test item entry control to the operation interface, and maps it to the relevant test program through manual clicking. On the one hand, it can realize the introduction of custom manual test items in MMI testing; on the other hand, this method requires minimal changes, thereby reducing software launch time and minimizing the impact on production efficiency.

[0133] The following is combined Figure 8 This application provides an exemplary implementation of one of the MMI testing methods. It should be understood that... Figure 8 The method 800 shown can be applied to a system including electronic equipment and testing equipment, the electronic equipment including test program MMI2S APK and test program MMI test APK. Figure 8 As shown, method 800 may include steps S801 to S810, which are described below.

[0134] S801, develop a test program MMI test APK with custom manual test items.

[0135] Specifically, developers need to merge the relevant code for custom manual test items (i.e., manual testing of screen-related functions and camera-related functions) into the traditional test program MMI test APK, and develop an entry control for merging the custom manual test items in the user interface, including the QR code icon, such as... Figure 9 As shown in the image. This QR code icon is primarily used for automated testing of features such as splash screens and camera-related functions.

[0136] Based on the developed test program, in this implementation method, the test program MMI2S APK is mainly used to test the TP line drawing function, microphone function, radio function, gravity sensor function, etc.; the test program MMI test APK is mainly used to perform manual testing of screen functions and camera functions, automated testing of screen functions and camera functions, and automated testing of audio functions and sensor functions.

[0137] S802, mark the test program MMI2S APK and the test program MMI test APK.

[0138] Specifically, the test device and the electronic device establish a connection via USB, and the test device sends an identification command to the electronic device; correspondingly, the electronic device receives the identification command sent by the test device and identifies the test program MMI2SAPK and the test program MMI test APK based on the identification command; after the identification is completed, step S803 is executed.

[0139] S803, determine whether to mark success.

[0140] If the flag is successfully set, proceed to step S804; if the flag is unsuccessful, return to step S802 and repeat the flag setting.

[0141] Specifically, the test device performs instruction readback verification and checks whether the flag bit is 1. If the flag bit is 1, it means that the flag is successful and continues to step S804; if the flag bit is 0, it means that the flag is unsuccessful and returns to step S802 to perform the flagging again.

[0142] S804: When an electronic device detects that the volume down button has been pressed, it performs tests on functions such as TP line drawing, microphone function, radio function, and gravity sensor function.

[0143] Specifically, after confirming the successful flag, the test device sends an instruction to the electronic device to start the MMI test; correspondingly, the electronic device receives the instruction to start the MMI test sent by the test device and generates a prompt message to prompt the operator to press the volume down button to start the MMI test. When the electronic device detects that the volume down button has been pressed, it runs the test program MMI2SAPK and sequentially performs tests on the TP line drawing function, microphone function, radio function, gravity sensor function, etc. After the electronic device detects that the above function tests have been completed, it executes step S805.

[0144] S805, the operation interface of the manual test entry control for electronic devices, including screen and camera functions, is used to enter the manual test based on the entry control.

[0145] Specifically, the electronic device runs the test program MMI test APK and displays... Figure 9 The operation interface shown includes controls for entering manual testing of functions such as screen and camera, as well as QR code icons. Based on the click operation of the tester, the tester can enter the manual testing of these custom manual testing items. After the manual testing is completed, the process continues to step S806.

[0146] S806 is an automated testing system for electronic devices, including those with QR code icon-based launch screens and camera-related functions.

[0147] Specifically, after manual testing is completed, the electronic device scans the QR code on the operation interface to connect to Wi-Fi and starts automated testing of functions such as screen and camera; at the same time, step S807 is executed to perform a foolproof check.

[0148] S807, check for any omissions in manual testing.

[0149] Specifically, the electronic device can send an inspection command to the testing device to request the testing device to check the completion status of the manual test; accordingly, the testing device checks the completion status of the manual test based on the inspection command, obtains the inspection result, and sends the inspection result to the electronic device; subsequently, the electronic device receives the inspection result sent by the testing device, and if it determines based on the inspection result that there are missing items in the manual test, it exits the automated test of functions such as the start screen and camera, and returns to step S805 to retest the missing items; if it determines based on the inspection result that there are no missing items in the manual test, it continues to perform automated tests of functions such as the screen and camera, and after the test is completed, it executes step S808.

[0150] S808 is an automated test for electronic devices to start audio functions, sensor functions, etc.

[0151] After completing automated testing of audio functions, sensor functions, etc., exit the test program MMI test APK and execute step S809 to perform a foolproof check.

[0152] S809, check if there are any missing items in the entire MMI test.

[0153] Specifically, the electronic device can send an inspection command to the testing device to request the testing device to check the completion status of the entire MMI test; accordingly, the testing device checks the completion status of the entire MMI test based on the inspection command, obtains the inspection result, and sends the inspection result to the electronic device; subsequently, the electronic device receives the inspection result sent by the testing device, and if it determines based on the inspection result that there are missing items in the entire MMI test, it returns to the steps with missing items for retesting; if it determines based on the inspection result that there are no missing items in the entire MMI test, it continues to execute step S810.

[0154] S810, restore factory settings.

[0155] It should be noted that this implementation method is only an example, and other methods can be used in actual operation. For example, in actual operation, the above functions can be replaced by more or fewer other functions, and the error-proofing check can be performed in other steps, without limitation.

[0156] It should be understood that other relevant information can be found above, and will not be repeated here.

[0157] The above combination Figures 4 to 9 The embodiments of the method described in this application have been explained. The apparatus for performing the above method provided in the embodiments of this application is described below.

[0158] like Figure 10 As shown, Figure 10 This is a schematic diagram of an MMI testing device provided in an embodiment of this application. The device is applied to electronic devices; specifically, it can be an electronic device itself, or a chip or module disposed within an electronic device. The electronic device includes a first test program and a second test program. The first test program is used to automate testing of a first function, and the second test program is used to automate manual testing of a second function and automated testing of a third function. Figure 10 As shown, the device 1000 includes a processing unit 1010.

[0159] The processing unit 1010 is configured to: run a first test program when a first operation is detected; enter an automated test for a first function in response to running the first test program; run a second test program after the automated test for the first function is detected to be completed; display an operation interface in response to running the second test program, the operation interface including a manual test entry control for the second function and an automated test start icon for the third function; enter a manual test for the second function when the manual test entry control is detected to be clicked; start an automated test for the third function based on the automated test start icon after the manual test for the second function is detected to be completed; and exit the second test program after the automated test for the third function is detected to be completed.

[0160] In one possible implementation, the device 1000 may further include a transceiver unit 1020, which, before detecting the first operation, is configured to receive a flag instruction sent by the test equipment; the processing unit 1010 is further configured to flag the first test program and the second test program based on the flag instruction; the transceiver unit 1020 is further configured to send a flag success notification to the test equipment; and receive an MMI test start instruction sent by the test equipment; the processing unit 1010 is further configured to generate a prompt message, which prompts the tester to perform the first operation.

[0161] In one possible implementation, the transceiver unit 1020 is further configured to, when starting the automated test of the third function based on the automated test start icon, send a first check instruction to the test device, the first check instruction being used to request the test device to check the completion status of the manual test; receive the first check result sent by the test device; the processing unit 1010 is further configured to, when determining based on the first check result that there are missing items in the manual test, exit the automated test of starting the third function and retest the missing items; or, when determining based on the first check result that there are no missing items in the manual test, continue the automated test of the third function.

[0162] In one possible implementation, the transceiver unit 1020 is further configured to, after exiting the second test program, send a second inspection instruction to the test equipment, the second inspection instruction being used to request the test equipment to check the completion status of the entire MMI test; receive the second inspection result sent by the test equipment; the processing unit 1010 is further configured to, if it is determined based on the second inspection result that there are missing items in the entire MMI test, retest the missing items; or, if it is determined based on the second inspection result that there are no missing items in the entire MMI test, restore factory settings.

[0163] In one possible implementation, the processing unit 1010 is further configured to scan the automated test launch icon to establish a wireless network connection; and after detecting the wireless network connection, to launch the automated test of the third function.

[0164] In one possible implementation, the third function includes the second function and the fourth function, and the processing unit 1010 is further configured to: initiate the automated test of the second function based on the automated test start icon; and initiate the automated test of the fourth function after detecting that the automated test of the second function has been completed.

[0165] In one possible implementation, the first function includes one or more of the following: touch screen drawing function, microphone function, radio function, gravity sensing function, etc.; the second function includes screen-related functions and / or camera-related functions, etc.; and the fourth function includes audio functions and / or sensor functions, etc.

[0166] In one possible implementation, the electronic device may include a volume down button, and the first operation may include pressing the volume down button.

[0167] In one possible implementation, the first and second test programs can be test programs that have undergone Google BTS testing.

[0168] In one possible implementation, the device 1000 may further include a storage unit. This storage unit is connected to the processing unit 1010 and the transceiver unit 1020 via a line. The storage unit may include one or more memories, which can be devices in one or more devices or circuits used to store programs or data. The storage unit can exist independently and be connected to the processing unit via a communication bus. Alternatively, the storage unit may be integrated with the processing unit 1010 and the transceiver unit 1020.

[0169] The storage unit may store computer-executable instructions for the methods in the apparatus 1000, causing the apparatus 1000 to execute the methods described in the above embodiments. The storage unit may be a register, cache memory, or random access memory (RAM), etc. The storage unit may be a read-only memory (ROM) or other types of static storage devices capable of storing static information and instructions.

[0170] Figure 11 A schematic diagram of a chip structure provided in an embodiment of this application is shown. It should be understood that this chip is used in electronic devices, such as... Figure 11 As shown, chip 1100 includes one or more (including two) processors 1101, communication lines 1102 and communication interfaces 1103. Optionally, chip 1100 also includes a memory 1104.

[0171] In some implementations, memory 1104 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.

[0172] The methods performed by the electronic device described above can be applied to, or implemented by, processor 1101. Processor 1101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods performed by the electronic device can be accomplished through integrated logic circuits in the hardware of processor 1101 or through software instructions. Processor 1101 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components.

[0173] The steps of the method executed by the electronic device disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 1104. The processor 1101 reads the information in memory 1104 and, in conjunction with its hardware, completes the steps of the method executed by the electronic device described above.

[0174] The processor 1101, memory 1104 and communication interface 1103 can communicate with each other via communication line 1102.

[0175] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.

[0176] This application also provides a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disk, hard disk, or magnetic tape), optical media (e.g., digital versatile disc (DVD)), or semiconductor media (e.g., solid-state disk (SSD)).

[0177] This application provides an MMI testing device, which is an electronic device or is contained in an electronic device. The device includes: one or more processors; one or more memories; the memories store one or more programs, and when the one or more programs are executed by the processor, the device performs the relevant technical solutions in the above method embodiments.

[0178] This application provides a chip. The chip includes a processor, which is used to call a computer program in memory to execute the relevant technical solutions in the above-described method embodiments. Its implementation principle and technical effects are similar to those in the above-described related embodiments, and will not be repeated here.

[0179] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program or instructions. When the computer program or instructions are executed by a processor, they implement the aforementioned related methods. The related methods described in the above embodiments can be implemented wholly or partially by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.

[0180] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, DVDs, floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0181] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0182] The above specific embodiments further illustrate the purpose, technical solution and beneficial effects of this application. It should be understood that the above are only specific embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this application.

Claims

1. A man-machine interface (MMI) testing method, characterized in that, The method is applied to an electronic device, which includes a first test program and a second test program. The first test program is used to automate testing of a first function, and the second test program is used to automate manual testing of a second function and automate testing of a third function. The method includes: Upon detection of the first operation, the first test program is executed; In response to the running of the first test program, the automated test of the first function is initiated; After the automated test of the first function is detected to be complete, the second test program is run; In response to running the second test program, an operation interface is displayed, the operation interface including a manual test entry control for the second function and an automated test start icon for the third function; When the manual test entry control is clicked, the manual test of the second function is initiated. After the manual testing of the second function is detected as complete, the automated testing of the third function is started based on the automated testing start icon; After the automated test of the third function is completed, the second test program exits. When the automated test for the third function is launched based on the automated test launch icon, it also includes: Send the first inspection command to the test equipment; Determine if any items were missed in the manual testing; If any items are missing in the manual test, the automated test will be exited and returned for retesting. The automated test that launches the third function based on the automated test launch icon includes: Scan the automated test launch icon to establish a wireless network connection; After the wireless network connection is detected, the automated test of the third function is initiated.

2. The method according to claim 1, characterized in that, Before detecting the first operation, the method further includes: Receive flag commands sent by the test equipment; The first test program and the second test program are marked based on the flag instruction; Send a success notification to the test device; Receive the MMI test start command sent by the test equipment; A prompt message is generated, which prompts the tester to perform the first operation.

3. The method according to claim 1 or 2, characterized in that, When launching the automated test of the third function based on the automated test launch icon, the method further includes: Send a first inspection instruction to the testing equipment, the first inspection instruction being used to request the testing equipment to inspect the completion status of the manual test; Receive the first inspection result sent by the test equipment; If, based on the first inspection result, it is determined that there are missing items in the manual test, the automated test that starts the third function is exited, and the missing items are retested. Alternatively, if it is determined from the first inspection result that there are no missing items in the manual test, the automated test of the third function can continue.

4. The method according to claim 1 or 2, characterized in that, After exiting the second test program, the method further includes: Send a second inspection command to the test equipment, the second inspection command being used to request the test equipment to inspect the completion status of the entire MMI test; Receive the second inspection result sent by the test equipment; If, based on the second inspection result, it is determined that there are any missing items in the entire MMI test, the missing items shall be retested; Alternatively, if it is determined, based on the second inspection result, that there are no missing items in the entire MMI test, restore factory settings.

5. The method according to claim 1, characterized in that, The third function includes the second and fourth functions, and the automated test that starts the third function based on the automated test launch icon includes: The automated test for the second function is launched based on the aforementioned automated test launch icon; After the automated test of the second function is detected to be completed, the automated test of the fourth function is started.

6. The method according to claim 5, characterized in that, The first function includes one or more of the following: touch screen drawing function, microphone function, radio function, and gravity sensor function; the second function includes screen-related functions and / or camera-related functions; and the fourth function includes audio functions and / or sensor functions.

7. The method according to claim 1, characterized in that, The electronic device includes a volume down button, and the first operation includes pressing the volume down button.

8. The method according to claim 1, characterized in that, The first and second test programs were tested using the Google Binary Test Suite (BTS).

9. A human-computer interaction (MMI) testing device, characterized in that, The device is applied to an electronic device, the device comprising: a processor for performing the method as described in any one of claims 1 to 8.

10. An electronic device, characterized in that, include: One or more processors; one or more memories; The memory stores one or more programs that, when executed by the processor, cause the electronic device to perform the method as described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 8.

12. A computer program product, characterized in that, include: Computer program code, when executed by an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 8.