CN112199246A - Terminal testing method and device, storage medium and mobile terminal - Google Patents

Terminal testing method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112199246A
CN112199246A CN202011155616.8A CN202011155616A CN112199246A CN 112199246 A CN112199246 A CN 112199246A CN 202011155616 A CN202011155616 A CN 202011155616A CN 112199246 A CN112199246 A CN 112199246A
Authority
CN
China
Prior art keywords
test
application
terminal
preset
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011155616.8A
Other languages
Chinese (zh)
Other versions
CN112199246B (en
Inventor
张敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202011155616.8A priority Critical patent/CN112199246B/en
Publication of CN112199246A publication Critical patent/CN112199246A/en
Application granted granted Critical
Publication of CN112199246B publication Critical patent/CN112199246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested

Abstract

The application discloses a terminal test method, a device, a storage medium and a mobile terminal, wherein the terminal test method comprises the following steps: receiving a test instruction sent by a test application, wherein the test instruction carries a test item identifier; determining a preset test flow corresponding to the test item identification; executing the test item corresponding to the test item identification according to a preset test flow, and obtaining a test result; and sending the test result to the test application for the test application to display the test result to a user, so that the independence of the interaction of the application and the device can be realized in the factory test process, and the phenomenon of test failure caused by the logic problem of the application is avoided.

Description

Terminal testing method and device, storage medium and mobile terminal
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a terminal testing method and apparatus, a storage medium, and a mobile terminal.
Background
With the continuous progress of technology, the production test automation of mobile devices (such as mobile phones) has matured considerably. The mobile equipment needs to support factory testing, so that an application or an interface which can judge whether the testing device works normally or not in a production line needs to be provided, workers can operate the application or the interface, and the mobile terminal device is confirmed to be normal.
At present, each mobile equipment manufacturer develops and applies by itself, a calling function and a testing logic are written in the application, a tester calls a hardware abstraction layer and a bottom layer device in the mobile equipment through an application interface to interact to judge whether the device works normally, the testing mode depends on the support of an API (application programming interface) in a middle layer of a system, the independence of the interaction of the application and the device is difficult to achieve, the phenomenon of device testing failure caused by the problem of the self logic of the application is easy to occur, and the testing accuracy is not easy to improve.
Disclosure of Invention
The embodiment of the application provides a terminal testing method, a terminal testing device, a storage medium and a mobile terminal, which can realize independence of application and device interaction in a factory testing process and avoid the phenomenon of test failure caused by the self logic problem of the application.
The embodiment of the application provides a terminal testing method, which is applied to a mobile terminal and comprises the following steps:
receiving a test instruction sent by a test application, wherein the test instruction carries a test item identifier;
determining a preset test flow corresponding to the test item identification;
executing the test item corresponding to the test item identification according to the preset test flow, and obtaining a test result;
and sending the test result to the test application so that the test application can display the test result to a user.
The embodiment of the present application further provides a terminal testing device, which is applied to a mobile terminal, and includes:
the receiving module is used for receiving a test instruction sent by a test application, and the test instruction carries a test item identifier;
the determining module is used for determining a preset test flow corresponding to the test item identifier;
the execution module is used for executing the test item corresponding to the test item identification according to the preset test flow and obtaining a test result;
and the sending module is used for sending the test result to the test application so that the test application can display the test result to a user.
Wherein the execution module is specifically configured to:
determining all calling functions corresponding to the preset test flow and the calling sequence of each calling function;
and executing the test item corresponding to the test item identification by using the calling function according to the calling sequence.
Wherein, the terminal testing device further comprises a storage module, which is used for:
acquiring a plurality of test item identifications and a plurality of preset test processes input by a user;
establishing an incidence relation between each test item identification and the corresponding preset test flow;
storing the incidence relation in a test database;
the determining module is specifically configured to: and acquiring a preset test flow corresponding to the test item identification from the test database according to the incidence relation.
Wherein the receiving module is specifically configured to:
receiving a test request sent by a test application through a socket interface in an open state;
and analyzing the test request to extract a test instruction carrying the test item identifier.
Wherein, still include open module, be used for:
and when the mobile terminal is started, enabling the socket interface to be in an open state.
The embodiment of the application also provides a computer-readable storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute any one of the terminal testing methods.
The embodiment of the application further provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in any one of the terminal testing methods.
The terminal testing method, the device, the storage medium and the mobile terminal are applied to the mobile terminal, the testing instruction is sent by receiving the testing application, the testing instruction carries the testing item identification, the preset testing flow corresponding to the testing item identification is determined, then the testing item corresponding to the testing item identification is executed according to the preset testing flow, the testing result is obtained, the testing result is sent to the testing application, the testing application displays the testing result to a user, therefore, independence of application and device interaction can be achieved in a factory testing process, the phenomenon of testing failure caused by the logic problem of the application is avoided, and testing accuracy is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a terminal testing method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of another terminal testing method according to an embodiment of the present application.
Fig. 3 is a schematic view of an operation process of a camera function test according to an embodiment of the present disclosure.
Fig. 4 is a schematic structural diagram of a terminal testing apparatus according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of another terminal testing apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a terminal testing method and device, a storage medium and a mobile terminal.
As shown in fig. 1, fig. 1 is a schematic flowchart of a terminal testing method provided in the embodiment of the present application, where the terminal testing method is applied to a mobile terminal, the mobile terminal may be a smart phone, an iPad, and the like, and a specific flow may be as follows:
s101, receiving a test instruction sent by a test application, wherein the test instruction carries a test item identifier.
The test item identifiers are unique identifiers of different test items in factory tests, and the test items can include complete machine function tests, such as display function tests, camera function tests, loudspeaker function tests and the like, and also include complete machine current tests, coupling tests and other tests. The test application may be an application designed by a manufacturer, and the test application may be different for different manufacturers, and different test applications may have different user operation interfaces and systems.
Specifically, referring to fig. 2, the step S101 may include:
s1011, receiving a test request sent by a test application through a socket interface in an open state;
and S1012, analyzing the test request to extract a test instruction carrying the test item identifier.
Wherein, socket interface refers to socket interface, which is encapsulation of TCP/IP protocol. Being in an open state means that others can be called for use. The test request is usually an http (hypertext transfer protocol) request, and a request body is obtained by parsing, so as to extract the test item identifier.
Specifically, referring to fig. 3, when a tester needs to perform a factory test, a test application M installed in the mobile terminal may be started. The application homepage of the test application M can display all the test items that it can provide, such as display function test, camera function test, speaker function test, etc., and the user can click the key of the corresponding test item on the application homepage to generate a test request, such as clicking "camera function" to generate a test request carrying item identifier "1", and clicking "display function" to generate a test request carrying item identifier "2", where these requests need to be generated according to a prescribed protocol, such as http protocol. And then, the test application transmits the test request to the terminal system through the socket interface so that the mobile terminal can execute corresponding test operation.
In addition, before the step S101, the terminal testing method may further include:
and S105, when the mobile terminal is started, enabling the socket interface to be in an open state.
The socket interface can be automatically exposed when the mobile terminal is powered on, so that a third-party application (such as a test application) can call the socket interface.
It should be noted that before the mobile terminal leaves the factory, a factory test is required to ensure the quality of the terminal product leaving the factory and the qualification and stability of the functions. Before testing, a tester can install a test application in the mobile terminal, so that the test operation on the terminal can be simply and quickly realized by operating the test application, detailed test parameters can be obtained, and meanwhile, a problem can be quickly found when the test fails. At present, because the existing test application includes not only the design of a user operation interface but also the design of a calling function and a processing logic, whether a factory test can be successfully performed depends on the design of the test application itself to a certain extent, for example, if the application design logic has a problem, the test cannot be normally performed, so that the mutual independence of the UI interaction of the test application and the mobile terminal is difficult to achieve, and different test applications may need to be designed for different terminal systems.
The method adopts a B/S (Browser/Server) or C/S (Client/Server) architecture, a calling function and a processing logic are designed in the mobile terminal, and the test application only needs to provide a user operation interface, so that the problem of test failure caused by the design of the test application can be avoided as much as possible, and for different terminal systems, the test can be performed through the same test application, and the test cost is reduced.
And S102, determining a preset test flow corresponding to the test item identification.
The preset test flow should be pre-stored in the mobile terminal, and the different test item identifiers should correspond to different preset test flows, for example, the camera function test item may sequentially include the steps of starting a camera, shooting an image, analyzing the shot image, and the like.
Specifically, before executing step S102, the terminal testing method further includes:
acquiring a plurality of test item identifications and a plurality of preset test processes input by a user;
establishing an incidence relation between each test item identification and the corresponding preset test flow;
storing the incidence relation in a test database;
in this case, the step S102 specifically includes: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the incidence relation.
The terminal developer can set a corresponding project identifier and a test flow in advance according to a project to be tested, and store the corresponding project identifier and the test flow in an associated manner, wherein the set rule of the project identifier is the same as the set rule of the test application.
And S103, executing the test item corresponding to the test item identification according to the preset test flow, and obtaining a test result.
Specifically, the step S103 may include:
s1031, determining all calling functions corresponding to the preset test flow and the calling sequence of each calling function;
s1032, executing the test item corresponding to the test item identification by using the calling function according to the calling sequence.
The calling function is a function involved in a factory test process, and generally refers to a function used for completing a relevant command when a computer is compiled or run. In general, a test item may involve multiple calling functions, different calling functions may have different execution orders, and the calling functions may be completely different or partially the same between different test items.
And S104, sending the test result to the test application so that the test application can display the test result to a user.
For example, in fig. 3, when the mobile terminal completes the "camera function" test, information about whether some photographing processes are normal or abnormal may be returned, for example, a test result indicating that the camera function is normal, such as "enter camera normal, camera set normal, exit camera normal, display of photographing interface normal, photographing normal", or a test result indicating that the camera function is abnormal, such as "enter camera normal, camera set normal, exit camera normal, display of finder box abnormal", is so provided that a subsequent developer adjusts hardware or software of the mobile terminal to achieve the test purpose.
Therefore, the terminal testing method provided by the application is applied to the mobile terminal, the testing instruction is sent by the testing application, the testing instruction carries the testing item identification, the preset testing process corresponding to the testing item identification is determined, then the testing item corresponding to the testing item identification is executed according to the preset testing process, the testing result is obtained, and then the testing result is sent to the testing application so that the testing application can display the testing result to a user, so that the independence of application and device interaction can be realized in the factory testing process, the phenomenon of testing failure caused by the self logic problem of the application is avoided, and the testing accuracy is improved.
According to the method described in the foregoing embodiment, the embodiment will be further described from the perspective of a terminal testing device, which may be specifically implemented as an independent entity or integrated in a mobile terminal, where the mobile terminal may be a device with a camera, such as a smart phone or an iPad.
Referring to fig. 4, fig. 4 specifically describes a terminal testing apparatus provided in the embodiment of the present application, which is applied to a mobile terminal, and the terminal testing apparatus may include: a receiving module 10, a determining module 20, an executing module 30 and a sending module 40, wherein:
(1) receiving module 10
The receiving module 10 is configured to receive a test instruction sent by a test application, where the test instruction carries a test item identifier.
The test item identifiers are unique identifiers of different test items in factory tests, and the test items can include complete machine function tests, such as display function tests, camera function tests, loudspeaker function tests and the like, and also include complete machine current tests, coupling tests and other tests. The test application may be an application designed by a manufacturer, and the test application may be different for different manufacturers, and different test applications may have different user operation interfaces and systems.
Specifically, the receiving module 10 is configured to:
receiving a test request sent by a test application through a socket interface in an open state;
and analyzing the test request to extract a test instruction carrying the test item identifier.
Wherein, socket interface refers to socket interface, which is encapsulation of TCP/IP protocol. Being in an open state means that others can be called for use. The test request is usually an http (hypertext transfer protocol) request, and a request body is obtained by parsing, so as to extract the test item identifier.
Specifically, referring to fig. 3, when a tester needs to perform a factory test, a test application M installed in the mobile terminal may be started. The application homepage of the test application M can display all the test items that it can provide, such as display function test, camera function test, speaker function test, etc., and the user can click the key of the corresponding test item on the application homepage to generate a test request, such as clicking "camera function" to generate a test request carrying item identifier "1", and clicking "display function" to generate a test request carrying item identifier "2", where these requests need to be generated according to a prescribed protocol, such as http protocol. And then, the test application transmits the test request to the terminal system through the socket interface so that the mobile terminal can execute corresponding test operation.
In addition, referring to fig. 5, the terminal testing apparatus further includes an opening module 50 for:
when the mobile terminal is powered on, the socket interface is in an open state.
The socket interface can be automatically exposed when the mobile terminal is powered on, so that a third-party application (such as a test application) can call the socket interface.
It should be noted that before the mobile terminal leaves the factory, a factory test is required to ensure the quality of the terminal product leaving the factory and the qualification and stability of the functions. Before testing, a tester can install a test application in the mobile terminal, so that the test operation on the terminal can be simply and quickly realized by operating the test application, detailed test parameters can be obtained, and meanwhile, a problem can be quickly found when the test fails. At present, because the existing test application includes not only the design of a user operation interface but also the design of a calling function and a processing logic, whether a factory test can be successfully performed depends on the design of the test application itself to a certain extent, for example, if the application design logic has a problem, the test cannot be normally performed, so that the mutual independence of the UI interaction of the test application and the mobile terminal is difficult to achieve, and different test applications may need to be designed for different terminal systems.
The method adopts a B/S (Browser/Server) or C/S (Client/Server) architecture, a calling function and a processing logic are designed in the mobile terminal, and the test application only needs to provide a user operation interface, so that the problem of test failure caused by the design of the test application can be avoided as much as possible, and for different terminal systems, the test can be performed through the same test application, and the test cost is reduced.
(2) Determination module 20
The determining module 20 is configured to determine a preset test procedure corresponding to the test item identifier.
The preset test flow should be pre-stored in the mobile terminal, and the different test item identifiers should correspond to different preset test flows, for example, the camera function test item may sequentially include the steps of starting a camera, shooting an image, analyzing the shot image, and the like.
Specifically, the terminal testing apparatus further includes a storage module 60, configured to:
before the determining module 20 determines the preset test flow corresponding to the test item identifier, acquiring a plurality of test item identifiers and a plurality of preset test flows input by a user;
establishing an incidence relation between each test item identification and the corresponding preset test flow;
the association is stored in a test database.
At this time, the determining module 20 is specifically configured to: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the incidence relation.
The terminal developer can set a corresponding project identifier and a test flow in advance according to a project to be tested, and store the corresponding project identifier and the test flow in an associated manner, wherein the set rule of the project identifier is the same as the set rule of the test application.
(3) Execution module 30
The execution module 30 is configured to execute the test item corresponding to the test item identifier according to the preset test flow, and obtain a test result.
Specifically, the execution module 30 may be configured to:
determining all calling functions corresponding to the preset test flow and the calling sequence of each calling function;
and executing the test item corresponding to the test item identification by using the calling function according to the calling sequence.
The calling function is a function involved in a factory test process, and generally refers to a function used for completing a relevant command when a computer is compiled or run. In general, a test item may involve multiple calling functions, different calling functions may have different execution orders, and the calling functions may be completely different or partially the same between different test items.
(4) Sending module 40
And the sending module 40 is configured to send the test result to the test application, so that the test application displays the test result to a user.
For example, in fig. 3, when the mobile terminal completes the "camera function" test, information about whether some photographing processes are normal or abnormal may be returned, for example, a test result indicating that the camera function is normal, such as "enter camera normal, camera set normal, exit camera normal, display of photographing interface normal, photographing normal", or a test result indicating that the camera function is abnormal, such as "enter camera normal, camera set normal, exit camera normal, display of finder box abnormal", is so provided that a subsequent developer adjusts hardware or software of the mobile terminal to achieve the test purpose.
In a specific implementation, the above units may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and the specific implementation of the above units may refer to the foregoing method embodiments, which are not described herein again.
It can be known from the above description that the terminal testing apparatus provided in this embodiment is applied to a mobile terminal, a test instruction sent by a test application is received through the receiving module 10, the test instruction carries a test item identifier, the determining module 20 determines a preset test flow corresponding to the test item identifier, then the executing module 30 executes the test item corresponding to the test item identifier according to the preset test flow, and obtains a test result, the sending module 40 sends the test result to the test application, so that the test application displays the test result to a user, thereby implementing independence of application and device interaction in a factory test process, avoiding a test failure phenomenon caused by a logic problem of the application itself, and improving test accuracy.
Correspondingly, the embodiment of the invention also provides a terminal test system which comprises any one of the terminal test devices provided by the embodiment of the invention, and the terminal test device can be integrated in the mobile terminal.
Receiving a test instruction sent by a test application, wherein the test instruction carries a test item identifier; determining a preset test flow corresponding to the test item identifier; executing the test item corresponding to the test item identification according to the preset test flow, and obtaining a test result; and sending the test result to the test application so that the test application can display the test result to a user.
The specific implementation of each device can be referred to the previous embodiment, and is not described herein again.
Since the terminal testing system may include any terminal testing device provided in the embodiments of the present invention, the beneficial effects that can be achieved by any terminal testing device provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
In addition, the embodiment of the application also provides a mobile terminal, and the mobile terminal can be a smart phone, a smart vehicle and other devices. As shown in fig. 6, the mobile terminal 200 includes a processor 201, a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the mobile terminal 200, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 201 in the mobile terminal 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, thereby implementing various functions.
Fig. 7 is a block diagram showing a specific structure of a mobile terminal according to an embodiment of the present invention, where the mobile terminal may be used to implement the terminal testing method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., Institute of Electrical and Electronics Engineers (IEEE) standard IEEE802.11 a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world Wide mail Access (Microwave Access for micro), wimax-1, other suitable short message protocols, and any other suitable Protocol for instant messaging, and may even include those protocols that have not yet been developed.
The memory 320 may be configured to store software programs and modules, such as program instructions/modules corresponding to the automatic light supplement system and method for front-facing camera photographing in the foregoing embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the function of automatic light supplement for front-facing camera photographing. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 7, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 7 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
receiving a test instruction sent by a test application, wherein the test instruction carries a test item identifier;
determining a preset test flow corresponding to the test item identifier;
executing the test item corresponding to the test item identification according to the preset test flow, and obtaining a test result;
and sending the test result to the test application so that the test application can display the test result to a user.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, embodiments of the present invention provide a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute steps in any one of the terminal testing methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any terminal testing method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any terminal testing method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (10)

1. A terminal test method is applied to a mobile terminal and comprises the following steps:
receiving a test instruction sent by a test application, wherein the test instruction carries a test item identifier;
determining a preset test flow corresponding to the test item identification;
executing the test item corresponding to the test item identification according to the preset test flow, and obtaining a test result;
and sending the test result to the test application so that the test application can display the test result to a user.
2. The terminal test method according to claim 1, wherein the executing the test item corresponding to the test item identifier according to the preset test flow includes:
determining all calling functions corresponding to the preset test flow and the calling sequence of each calling function;
and executing the test item corresponding to the test item identification by using the calling function according to the calling sequence.
3. The terminal testing method according to claim 1, further comprising:
acquiring a plurality of test item identifications and a plurality of preset test processes input by a user;
establishing an incidence relation between each test item identification and the corresponding preset test flow;
storing the incidence relation in a test database;
the determining of the preset test flow corresponding to the test item identifier includes: and acquiring a preset test flow corresponding to the test item identification from the test database according to the incidence relation.
4. The terminal test method according to claim 1, wherein the receiving the test instruction sent by the test application comprises:
receiving a test request sent by a test application through a socket interface in an open state;
and analyzing the test request to extract a test instruction carrying the test item identifier.
5. The terminal test method according to claim 4, before receiving the test instruction sent by the test application, further comprising:
and when the mobile terminal is started, enabling the socket interface to be in an open state.
6. A terminal testing device, applied to a mobile terminal, includes:
the receiving module is used for receiving a test instruction sent by a test application, and the test instruction carries a test item identifier;
the determining module is used for determining a preset test flow corresponding to the test item identifier;
the execution module is used for executing the test item corresponding to the test item identification according to the preset test flow and obtaining a test result;
and the sending module is used for sending the test result to the test application so that the test application can display the test result to a user.
7. The terminal testing device according to claim 6, wherein the execution module is specifically configured to:
determining all calling functions corresponding to the preset test flow and the calling sequence of each calling function;
and executing the test item corresponding to the test item identification by using the calling function according to the calling sequence.
8. The terminal testing device according to claim 6, further comprising a storage module for:
acquiring a plurality of test item identifications and a plurality of preset test processes input by a user;
establishing an incidence relation between each test item identification and the corresponding preset test flow;
storing the incidence relation in a test database;
the determining module is specifically configured to: and acquiring a preset test flow corresponding to the test item identification from the test database according to the incidence relation.
9. A computer readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the method of any of claims 1 to 5.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the terminal testing method according to any one of claims 1 to 5.
CN202011155616.8A 2020-10-26 2020-10-26 Terminal test method and device, storage medium and mobile terminal Active CN112199246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011155616.8A CN112199246B (en) 2020-10-26 2020-10-26 Terminal test method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011155616.8A CN112199246B (en) 2020-10-26 2020-10-26 Terminal test method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112199246A true CN112199246A (en) 2021-01-08
CN112199246B CN112199246B (en) 2023-11-10

Family

ID=74011552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011155616.8A Active CN112199246B (en) 2020-10-26 2020-10-26 Terminal test method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112199246B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113063563A (en) * 2021-03-15 2021-07-02 读书郎教育科技有限公司 Distance induction-based factory assembly line test auxiliary method
CN113132522A (en) * 2021-03-19 2021-07-16 深圳市几米物联有限公司 Test method, device, server and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060205397A1 (en) * 2005-03-11 2006-09-14 Yahoo! Inc. Tester for determining the validity of a feature in a remote device
CN105320598A (en) * 2015-11-24 2016-02-10 广州华多网络科技有限公司 Software testing method and device
CN105511977A (en) * 2015-12-04 2016-04-20 北京远特科技股份有限公司 Vehicle-mounted navigation system testing method and device
CN106844188A (en) * 2015-12-04 2017-06-13 北京奇虎科技有限公司 A kind of test agent method, device and test system
CN107315665A (en) * 2017-06-07 2017-11-03 深圳市鼎盛光电有限公司 The detection method and its device of a kind of multimedia board

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060205397A1 (en) * 2005-03-11 2006-09-14 Yahoo! Inc. Tester for determining the validity of a feature in a remote device
CN105320598A (en) * 2015-11-24 2016-02-10 广州华多网络科技有限公司 Software testing method and device
CN105511977A (en) * 2015-12-04 2016-04-20 北京远特科技股份有限公司 Vehicle-mounted navigation system testing method and device
CN106844188A (en) * 2015-12-04 2017-06-13 北京奇虎科技有限公司 A kind of test agent method, device and test system
CN107315665A (en) * 2017-06-07 2017-11-03 深圳市鼎盛光电有限公司 The detection method and its device of a kind of multimedia board

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113063563A (en) * 2021-03-15 2021-07-02 读书郎教育科技有限公司 Distance induction-based factory assembly line test auxiliary method
CN113132522A (en) * 2021-03-19 2021-07-16 深圳市几米物联有限公司 Test method, device, server and medium

Also Published As

Publication number Publication date
CN112199246B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN106371964B (en) Method and device for prompting message
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN112199246B (en) Terminal test method and device, storage medium and mobile terminal
WO2014166307A1 (en) Method for determining performance of process of application and computer system
CN110069407B (en) Function test method and device for application program
CN111427644B (en) Target behavior identification method and electronic equipment
CN111045737B (en) Equipment identifier acquisition method, device, terminal equipment and storage medium
US20200125369A1 (en) Method, device, and terminal for accelerating startup of application
CN110225106B (en) Data transmission method, device and storage medium
CN110062412B (en) Wireless pairing method, system, storage medium and mobile terminal
CN107122204B (en) Application unloading state detection method and device
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN115328770A (en) Application program testing method and device, electronic equipment and storage medium
CN111596827B (en) Icon display control method and device, storage medium and mobile terminal
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN114518718A (en) Device control method, device, storage medium and electronic device
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN112667868A (en) Data detection method and device
CN110618798A (en) Multi-screen display method, multi-screen device, storage medium and terminal equipment
CN109995441B (en) Communication information processing method, device and storage medium
CN106033358B (en) Batch installation method and device of application programs
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN111182141B (en) Method, device and storage medium for acquiring state of terminal device
CN111026486B (en) Application sorting method, application sorting device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant