CN112199246B - Terminal test method and device, storage medium and mobile terminal - Google Patents

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

Info

Publication number
CN112199246B
CN112199246B CN202011155616.8A CN202011155616A CN112199246B CN 112199246 B CN112199246 B CN 112199246B CN 202011155616 A CN202011155616 A CN 202011155616A CN 112199246 B CN112199246 B CN 112199246B
Authority
CN
China
Prior art keywords
test
application
terminal
preset
item identifier
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.)
Active
Application number
CN202011155616.8A
Other languages
Chinese (zh)
Other versions
CN112199246A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a terminal testing method, a device, a storage medium and a mobile terminal, wherein the terminal testing 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 identifier; executing the test item corresponding to the test item identifier according to a preset test flow, and obtaining a test result; the test result is sent to the test application for the test application to display the test result to a user, so that the independence of the application and the device interaction 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 test 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, a device, a storage medium, and a mobile terminal.
Background
With the continuous advancement of technology, the production test automation of mobile devices (such as mobile phones) is well established. The mobile equipment needs to be used for supporting factory testing, so that an application or an interface capable of judging whether the tested device works normally or not in a production line is needed, and workers can operate the mobile equipment to confirm that the mobile terminal device works normally.
At present, manufacturers of mobile equipment develop applications by themselves, calling functions and test logic are written in the applications, and testers call a hardware abstraction layer in the mobile equipment and a bottom device to interact through an application interface so as to judge whether the device works normally.
Disclosure of Invention
The embodiment of the application provides a terminal test method, a device, a storage medium and a mobile terminal, which can realize the independence of application and device interaction in the factory test process and avoid the phenomenon of test failure caused by the application logic problem.
The embodiment of the application provides a terminal test 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 identifier;
executing the test item corresponding to the test item identifier 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 application also provides a terminal testing device which is applied to the mobile terminal and comprises:
the receiving module is used for receiving a test instruction sent by the test application, wherein 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 identifier 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.
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 items corresponding to the test item identifiers by using the calling function according to the calling sequence.
The terminal test device further comprises a storage module, wherein the storage module is used for:
acquiring a plurality of test item identifiers and a plurality of preset test flows which are input by a user;
establishing an association relation between each test item identifier and a corresponding preset test flow;
storing the association relationship in a test database;
the determining module is specifically configured to: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the association relation.
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 the test instruction carrying the test item identifier.
Wherein, still include the open module for:
and when the mobile terminal is started, the socket interface is in an open state.
Embodiments of the present application also provide a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the above-described terminal test methods.
The embodiment of the application also 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 terminal testing method.
The terminal test method, the device, the storage medium and the mobile terminal are applied to the mobile terminal, the test instruction sent by the test application is received, the test instruction carries the test item identification, the preset test flow corresponding to the test item identification is determined, then the test item corresponding to the test item identification is executed according to the preset test flow, the test result is obtained, and then the test result is sent to the test application for the test application to display the test result to a user, so that the independence of the interaction between the application and the device can be realized in the factory test process, the phenomenon of test failure caused by the application of the logic problem is avoided, and the test accuracy is improved.
Drawings
The technical solution and other advantageous effects of the present application will be made apparent by the following detailed description of the specific embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a flow chart of a terminal test method according to an embodiment of the present application.
Fig. 2 is a flow chart of another terminal testing method according to an embodiment of the present application.
Fig. 3 is a schematic diagram illustrating an operation procedure of a camera function test according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a terminal testing device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of another terminal testing device 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 following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a terminal test method, a terminal test device, a storage medium and a mobile terminal.
As shown in fig. 1, fig. 1 is a flow chart of a terminal test method provided by an embodiment of the present application, where the terminal test method is applied to a mobile terminal, and the mobile terminal may be a smart phone, an iPad, etc., 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 identifier is a unique identifier of different test items in the factory test, and the test items can include a complete machine function test, such as a display function test, a camera function test, a loudspeaker function test, and other tests including a complete machine current test, a coupling test, and the like. The test application may be a manufacturer designed application, different manufacturers may have different test applications, and different test applications may have different user 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;
s1012, analyzing the test request to extract a test instruction carrying the test item identification.
The socket interface refers to a socket interface, and is encapsulation of a TCP/IP protocol. In the open state means that the call can be made by others. The test request is usually an http (hypertext transfer protocol) request, and the request body needs to be obtained through parsing, so that the test item identification is extracted.
Specifically, referring to fig. 3, when a tester needs to perform a factory test, a test application M installed in a mobile terminal may be started. All the test items that the test application M can provide can be displayed on the application homepage, such as a display function test, a camera function test, a speaker function test, etc., and the user can generate a test request by clicking a key of the corresponding test item on the application homepage, such as clicking a "camera function" to generate a test request carrying item identifier "1", clicking a "display function" to generate a test request carrying item identifier "2", which needs to be generated according to a prescribed protocol, such as an http protocol. And then, the test application transmits the test request to the terminal system through the socket interface so that the mobile terminal executes corresponding test operation.
In addition, before the step S101, the terminal testing method may further include:
s105, when the mobile terminal is started, the socket interface is in an open state.
The socket interface can be automatically exposed when the mobile terminal is started so as to be called by a third party application (such as a test application).
Before the mobile terminal leaves the factory, factory testing is required to ensure the quality and the functional qualification and the stability of the terminal product leaves the factory. Before testing, a tester can install a test application in the mobile terminal, so that the test operation of the terminal can be simply and quickly realized by operating the test application, detailed test parameters can be obtained, and meanwhile, the problem can be quickly found when the test fails. At present, since the existing test application includes design of a user operation interface and design of a calling function and processing logic, whether the factory test can be successfully performed depends on the design of the test application to some extent, for example, if the application design logic is problematic, the test cannot be performed normally, so that UI interaction of the test application and mutual independence of the mobile terminal are difficult to achieve, and different test applications may need to be designed for different terminal systems.
The application adopts B/S (Browser/Server) or C/S (Client/Server) architecture, designs calling functions and processing logic in the mobile terminal, and the test application only needs to provide a user operation interface, thereby avoiding the problem of test failure caused by the design of the test application itself as far as possible, and testing different terminal systems through the same test application, thereby reducing the test cost.
S102, determining a preset test flow corresponding to the test item identifier.
The preset test procedures should be pre-stored in the mobile terminal, and different test item identifiers should correspond to different preset test procedures, for example, the camera function test items may sequentially include steps of starting a camera, capturing an image, analyzing the captured image, and the like.
Specifically, before executing the step S102, the terminal testing method further includes:
acquiring a plurality of test item identifiers and a plurality of preset test flows which are input by a user;
establishing an association relationship between each test item identifier and a corresponding preset test flow;
storing the association in a test database;
at this time, the step S102 specifically includes: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the association relation.
The terminal developer can set corresponding project identifiers and test flows in advance according to the projects to be tested, and store the project identifiers and the test flows in an associated mode, wherein the setting rules of the project identifiers are the same as the setting rules of test application.
S103, executing the test item corresponding to the test item identifier 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.
Where a calling function is a function involved in a factory test procedure, generally referred to as a function used to complete a related command when a computer compiles or runs. In general, a test item may involve multiple calling functions, different calling functions may have different execution orders, and calling functions between different test items may be completely different or may be partially the same.
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 is returned, such as "entering camera normal, camera setting is normal, exiting camera normal, photographing interface display is normal, photographing is normal" and the like, which indicate test results of camera function normal, or "entering camera normal, camera setting is normal, exiting camera normal, view finding frame display is abnormal" and the like, which indicate test results of camera function abnormal, so that subsequent developers can conveniently adjust hardware or software of the mobile terminal, and the purpose of testing is achieved.
As can be seen from the foregoing, the terminal test method provided by the present application is applied to a mobile terminal, and the test instruction sent by the test application is received, where the test instruction carries a test item identifier, and determines a preset test flow corresponding to the test item identifier, then the test item corresponding to the test item identifier is executed according to the preset test flow, and a test result is obtained, and then the test result is sent to the test application, so that the test application displays the test result to a user, thereby realizing independence of application and device interaction in a factory test process, avoiding a test failure phenomenon caused by application logic problem, and improving test accuracy.
According to the method described in the above embodiments, this embodiment will be further described from the point of view of a terminal test device, which may be implemented as a separate entity, or may be integrated in a mobile terminal, where the mobile terminal may be a device with a camera, such as a smart phone, an iPad, or the like.
Referring to fig. 4, fig. 4 specifically illustrates a terminal testing apparatus provided by an 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 transmitting module 40, wherein:
(1) Receiving module 10
The receiving module 10 is configured to receive a test instruction sent by the test application, where the test instruction carries a test item identifier.
The test item identifier is a unique identifier of different test items in the factory test, and the test items can include a complete machine function test, such as a display function test, a camera function test, a loudspeaker function test, and other tests including a complete machine current test, a coupling test, and the like. The test application may be a manufacturer designed application, different manufacturers may have different test applications, and different test applications may have different user 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 the test instruction carrying the test item identifier.
The socket interface refers to a socket interface, and is encapsulation of a TCP/IP protocol. In the open state means that the call can be made by others. The test request is usually an http (hypertext transfer protocol) request, and the request body needs to be obtained through parsing, so that the test item identification is extracted.
Specifically, referring to fig. 3, when a tester needs to perform a factory test, a test application M installed in a mobile terminal may be started. All the test items that the test application M can provide can be displayed on the application homepage, such as a display function test, a camera function test, a speaker function test, etc., and the user can generate a test request by clicking a key of the corresponding test item on the application homepage, such as clicking a "camera function" to generate a test request carrying item identifier "1", clicking a "display function" to generate a test request carrying item identifier "2", which needs to be generated according to a prescribed protocol, such as an http protocol. And then, the test application transmits the test request to the terminal system through the socket interface so that the mobile terminal executes corresponding test operation.
In addition, referring to fig. 5, the terminal test device further includes an opening module 50 for:
when the mobile terminal is started, the socket interface is in an open state.
The socket interface can be automatically exposed when the mobile terminal is started so as to be called by a third party application (such as a test application).
Before the mobile terminal leaves the factory, factory testing is required to ensure the quality and the functional qualification and the stability of the terminal product leaves the factory. Before testing, a tester can install a test application in the mobile terminal, so that the test operation of the terminal can be simply and quickly realized by operating the test application, detailed test parameters can be obtained, and meanwhile, the problem can be quickly found when the test fails. At present, since the existing test application includes design of a user operation interface and design of a calling function and processing logic, whether the factory test can be successfully performed depends on the design of the test application to some extent, for example, if the application design logic is problematic, the test cannot be performed normally, so that UI interaction of the test application and mutual independence of the mobile terminal are difficult to achieve, and different test applications may need to be designed for different terminal systems.
The application adopts B/S (Browser/Server) or C/S (Client/Server) architecture, designs calling functions and processing logic in the mobile terminal, and the test application only needs to provide a user operation interface, thereby avoiding the problem of test failure caused by the design of the test application itself as far as possible, and testing different terminal systems through the same test application, thereby reducing the test cost.
(2) Determination module 20
The determining module 20 is configured to determine a preset test flow corresponding to the test item identifier.
The preset test procedures should be pre-stored in the mobile terminal, and different test item identifiers should correspond to different preset test procedures, for example, the camera function test items may sequentially include steps of starting a camera, capturing an image, analyzing the captured image, and the like.
Specifically, the terminal test device further includes a storage module 60, configured to:
before the determining module 20 determines a 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 association relationship between each test item identifier and a corresponding preset test flow;
the association is stored in a test database.
At this time, the determining module 20 specifically is configured to: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the association relation.
The terminal developer can set corresponding project identifiers and test flows in advance according to the projects to be tested, and store the project identifiers and the test flows in an associated mode, wherein the setting rules of the project identifiers are the same as the setting rules of 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.
Where a calling function is a function involved in a factory test procedure, generally referred to as a function used to complete a related command when a computer compiles or runs. In general, a test item may involve multiple calling functions, different calling functions may have different execution orders, and calling functions between different test items may be completely different or may be partially the same.
(4) Transmitting 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 the 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 is returned, such as "entering camera normal, camera setting is normal, exiting camera normal, photographing interface display is normal, photographing is normal" and the like, which indicate test results of camera function normal, or "entering camera normal, camera setting is normal, exiting camera normal, view finding frame display is abnormal" and the like, which indicate test results of camera function abnormal, so that subsequent developers can conveniently adjust hardware or software of the mobile terminal, and the purpose of testing is achieved.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
As can be seen from the foregoing, the terminal testing device provided in this embodiment is applied to a mobile terminal, the receiving module 10 receives a testing instruction sent by a testing application, the testing instruction carries a testing item identifier, the determining module 20 determines a preset testing flow corresponding to the testing item identifier, then the executing module 30 executes a testing item corresponding to the testing item identifier according to the preset testing flow, and obtains a testing result, and the sending module 40 sends the testing result to the testing application, so that the testing application displays the testing result to a user, thereby realizing independence of interaction between the application and a device in a factory testing process, avoiding a phenomenon of testing failure caused by application of a logic problem, and improving testing accuracy.
Correspondingly, the embodiment of the application also provides a terminal test system, which comprises any terminal test device provided by the embodiment of the application, and the terminal test device can be integrated in a 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 identifier 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 embodiments, and will not be repeated here.
The terminal test system can comprise any terminal test device provided by the embodiment of the application, so that the beneficial effects of any terminal test device provided by the embodiment of the application can be realized, and detailed descriptions of the previous embodiments are omitted.
In addition, the embodiment of the application also provides a mobile terminal which can be a smart phone, an intelligent 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 the instructions corresponding to the processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 executes the application programs stored in the memory 202, thereby implementing various functions.
Fig. 7 shows a specific block diagram of a mobile terminal according to an embodiment of the present application, which may be used to implement the terminal testing method provided in the above embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is configured to receive and transmit electromagnetic waves, and to perform mutual conversion between the electromagnetic waves and the 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 the like. The RF circuitry 310 may communicate with various networks such as the internet, intranets, wireless networks, or other devices via wireless networks. The wireless network may include 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 communications (Global System for Mobile Communication, GSM), enhanced mobile communications technology (Enhanced Data GSM Environment, EDGE), wideband code division multiple access technology (Wide band Code Division Multiple Access, WCDMA), code division multiple access technology (Code Division Access, CDMA), time division multiple access technology (Time Division Multiple Access, TDMA), wireless fidelity technology (Wireless Fidelity, wi-Fi) (e.g., institute of electrical and electronics engineers standards IEEE 802.11a,IEEE 802.11b,IEEE802.11g and/or IEEE802.11 n), internet telephony (Voice over Internet Protocol, voIP), worldwide interoperability for microwave access (Worldwide Interoperability for Microwave Access, wi-Max), other protocols for mail, instant messaging, and short messaging, as well as any other suitable communication protocols, even including those not currently developed.
The memory 320 may be used for storing software programs and modules, such as program instructions/modules corresponding to the front-end camera photographing automatic light filling system and method in the above embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, that is, implements the front-end camera photographing automatic light filling function. 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, memory 320 may further include memory located remotely from processor 380, which may be connected to 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 to 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 display screen or a touch pad, may collect touch operations thereon or thereabout by a user (e.g., operations of the user on the touch-sensitive surface 331 or thereabout using any suitable object or accessory such as a finger, stylus, etc.), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth 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 detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 380, and can receive and execute commands sent from the processor 380. In addition, the touch-sensitive surface 331 may be implemented in a variety of types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 331, the input unit 330 may also comprise other input devices 332. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 340 may be used to display information input by a user or information provided to the user and various graphical user interfaces of the mobile terminal 300, which may be composed 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, the touch sensitive surface 331 may overlay the display panel 341 and, upon detection of a touch operation thereon or thereabout by the touch sensitive surface 331, is communicated to the processor 380 to determine the type of touch event, and the processor 380 then provides a corresponding visual output on the display panel 341 based on the type of touch event. Although in fig. 7 the touch sensitive surface 331 and the display panel 341 are implemented as two separate components, in some embodiments the touch sensitive surface 331 may be integrated with the display panel 341 to implement the 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 moves to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and the direction when the mobile phone is stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and knocking), and the like; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the mobile terminal 300 are not described in detail herein.
Audio circuitry 360, a speaker 361, and a microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the received electrical signal converted from audio data to the speaker 361, and the electrical signal is converted into a sound signal by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signals into electrical signals, receives the electrical signals from the audio circuit 360, converts the electrical signals into audio data, outputs the audio data to the processor 380 for processing, and transmits the audio data to, for example, another terminal via the RF circuit 310, or outputs the audio data to the memory 320 for further processing. Audio circuitry 360 may also include an ear bud jack to provide communication of the peripheral ear bud with mobile terminal 300.
The mobile terminal 300 may facilitate user email, web browsing, streaming media access, etc. via the transmission module 370 (e.g., wi-Fi module), which provides wireless broadband internet access to the user. 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 as needed within the scope of not changing the essence of the application.
Processor 380 is the control center of mobile terminal 300, connects the various parts of the overall handset using various interfaces and lines, and performs various functions and processes data of mobile terminal 300 by running or executing software programs and/or modules stored in memory 320, and invoking data stored in memory 320, thereby performing overall monitoring of the handset. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the 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 perform functions such as managing charging, discharging, and power consumption via the power management system. The power supply 190 may also include one or more of any of a direct current or alternating current power supply, 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., front camera, rear camera), a bluetooth module, etc., which will not be described herein. In particular, 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, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including 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 identifier 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 the implementation, each module may be implemented as an independent entity, or may be combined arbitrarily, and implemented as the same entity or several entities, and the implementation of each module may be referred to the foregoing method embodiment, which is not described herein again.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the terminal test methods provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The instructions stored in the storage medium can execute the steps in any terminal test method provided by the embodiment of the present application, so that the beneficial effects that any terminal test method provided by the embodiment of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted herein.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
In view of the foregoing, it will be evident to those skilled in the art that these embodiments are thus presented in terms of a preferred embodiment, and that these embodiments are not limited to the particular embodiments disclosed herein, as these embodiments are intended to be included within the scope of the application as defined by the following claims.

Claims (8)

1. A terminal test method, applied to a mobile terminal, comprising:
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 identifier according to the preset test flow, and obtaining a test result;
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; the calling function is designed in the mobile terminal by adopting a browser/server mode or a client/server mode architecture, and the test application provides a user operation interface;
executing the test items corresponding to the test item identifiers by using the calling function according to the calling sequence;
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 testing method according to claim 1, further comprising:
acquiring a plurality of test item identifiers and a plurality of preset test flows which are input by a user;
establishing an association relation between each test item identifier and a corresponding preset test flow;
storing the association relationship in a test database;
the determining the preset test flow corresponding to the test item identifier comprises the following steps: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the association relation.
3. The terminal test method according to claim 1, wherein the receiving the test instruction sent by the test application includes:
receiving a test request sent by a test application through a socket interface in an open state;
and analyzing the test request to extract the test instruction carrying the test item identifier.
4. A terminal test method according to claim 3, further comprising, prior to receiving the test instruction sent by the test application:
and when the mobile terminal is started, the socket interface is in an open state.
5. A terminal test device, characterized in that it is applied to a mobile terminal, comprising:
the receiving module is used for receiving a test instruction sent by the test application, wherein 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 identifier according to the preset test flow and obtaining a test result;
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; the calling function is designed in the mobile terminal by adopting a browser/server mode or a client/server mode architecture, and the test application provides a user operation interface;
executing the test items corresponding to the test item identifiers by using the calling function according to the calling sequence;
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.
6. The terminal test device of claim 5, further comprising a memory module configured to:
acquiring a plurality of test item identifiers and a plurality of preset test flows which are input by a user;
establishing an association relation between each test item identifier and a corresponding preset test flow;
storing the association relationship in a test database;
the determining module is specifically configured to: and acquiring a preset test flow corresponding to the test item identifier from the test database according to the association relation.
7. A computer readable storage medium, characterized in that the storage medium has stored therein a plurality of instructions adapted to be loaded by a processor to perform the terminal test method of any of claims 1 to 4.
8. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being for storing instructions and data, the processor being for performing the steps of the terminal test method of any of claims 1 to 4.
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 CN112199246A (en) 2021-01-08
CN112199246B true 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)

Families Citing this family (2)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7630708B2 (en) * 2005-03-11 2009-12-08 Yahoo! Inc. Tester for determining the validity of a feature in a remote device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112199246A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN107943489B (en) Data sharing method and mobile terminal
CN106371964B (en) Method and device for prompting message
CN107465841B (en) Fault information reporting method and terminal
CN106445596B (en) Method and device for managing setting items
CN110096203B (en) Screenshot method and mobile terminal
CN112199246B (en) Terminal test method and device, storage medium and mobile terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN107066374B (en) Data processing method and mobile terminal
CN110069407B (en) Function test method and device for application program
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN111427644B (en) Target behavior identification method and electronic equipment
CN109196480B (en) Method for displaying equipment identification, mobile terminal and terminal equipment
CN111310165B (en) Account switching or registering method and electronic equipment
CN111045737B (en) Equipment identifier acquisition method, device, terminal equipment and storage medium
CN110062412B (en) Wireless pairing method, system, storage medium and mobile terminal
CN108710789B (en) Unlocking method and terminal equipment
CN115328770A (en) Application program testing method and device, electronic equipment and storage medium
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN112004240B (en) Radio frequency parameter configuration method, device, storage medium and mobile terminal
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN109783379B (en) Script execution exception determining method and device
CN108646928B (en) Character input method and terminal equipment
CN108280798B (en) Method and device for rendering and displaying browser kernel
CN112486350A (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN112667868A (en) Data detection method and device

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