CN117743058A - Terminal test method, device and system - Google Patents
Terminal test method, device and system Download PDFInfo
- Publication number
- CN117743058A CN117743058A CN202311801951.4A CN202311801951A CN117743058A CN 117743058 A CN117743058 A CN 117743058A CN 202311801951 A CN202311801951 A CN 202311801951A CN 117743058 A CN117743058 A CN 117743058A
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- tested
- function
- items
- 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.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 10
- 238000012360 testing method Methods 0.000 claims abstract description 443
- 238000000034 method Methods 0.000 claims abstract description 36
- 230000006870 function Effects 0.000 claims description 135
- 238000004590 computer program Methods 0.000 claims description 7
- 238000003825 pressing Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 13
- 230000004044 response Effects 0.000 abstract description 5
- 238000004519 manufacturing process Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 235000019580 granularity Nutrition 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000013102 re-test Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a terminal test method, a device and a system, comprising the following steps: and loading all the test function dynamic libraries in response to a control instruction of starting the test system by a user, registering the test interface of each test function dynamic library as a callback function and storing the callback function in a function linked list, wherein the test function dynamic library is installed on the terminal to be tested by burning a mirror image package of a test system program on the terminal to be tested. And displaying M test items in the test system on the terminal to be tested, and responding to the selection operation of the user on the test items to generate a target test command. And finding out a corresponding target test interface in the function linked list according to the target test command, calling a corresponding target callback function, executing a target test task by the terminal to be tested to obtain a test result, and displaying the test result on the terminal to be tested. The invention does not need to build complex test environment, has simple test process and shortens test time. When testing on different hardware, only the corresponding test function dynamic library needs to be dynamically loaded.
Description
Technical Field
The present invention relates to the field of testing technologies, and in particular, to a method, an apparatus, and a system for testing a terminal.
Background
After the embedded equipment is produced in a factory, as the production line process may have process errors or the basic components may have yield problems, the embedded equipment cannot be guaranteed to be in a normal usable state, the embedded equipment needs to be tested by a complete machine, and after each basic function of the embedded equipment is verified, the embedded equipment can be delivered from the factory.
According to the technical scheme, equipment is basically required to be started normally, a testing environment is built, when hardware is different, the built testing environment is required to be correspondingly adjusted, an upper computer is connected for auxiliary equipment testing, the testing process is complex, and the testing time is long.
Therefore, it is necessary to provide a terminal testing method, device and system to solve the above problems.
Disclosure of Invention
The invention aims to provide a terminal test method, device and system, which are used for solving the problems that the existing test process for building a test environment is complicated, the test time is long, and the test environment needs to be adjusted when hardware is different.
In a first aspect, the present invention provides a terminal testing method, applied to a terminal to be tested, the method comprising:
responding to a control instruction of a user for starting a test system, loading all test function dynamic libraries, registering a test interface of each test function dynamic library as a callback function and storing the callback function into a function linked list, wherein the terminal to be tested is burnt with a mirror image package of a test system program, and the test function dynamic library is installed on the terminal to be tested;
displaying M test items in the test system on the terminal to be tested, and responding to the selection operation of a user on the test items to generate a target test command, wherein M is a positive integer;
and finding out a corresponding target test interface in the function linked list according to the target test command, calling a corresponding target callback function, executing a target test task by the terminal to be tested to obtain a test result, and displaying the test result on the terminal to be tested.
In one possible embodiment, finding a corresponding target test interface in the function linked list according to the target test command includes:
and finding a corresponding target interface function pointer in the test system according to the target test command, wherein the test interface in the function linked list is stored in a function pointer chain list of the test system in a function pointer form.
In one possible embodiment, before displaying the M test items in the test system on the terminal under test, the method further includes:
and reading and analyzing the configuration file of the terminal to be tested, and determining M test items required by the terminal to be tested from N test items in the test system according to the configuration file, wherein N is a positive integer greater than or equal to M.
In a possible embodiment, when a new test item is added to new hardware, a test command of the new test item is added to the test system, and a test function dynamic library of the new test item is installed on the terminal to be tested; and/or the number of the groups of groups,
when the new firmware is replaced, the test function dynamic library matched with the new firmware is replaced.
In one possible embodiment, in response to a control instruction from a user to activate the test system, the method includes:
and responding to the key operation of the test key by a user to start the test system, wherein the key operation of the test key comprises at least one of key pressing of a combination key and continuous key pressing setting time of an independent key.
In one possible embodiment, the selection categories of the test items include a single test, a plurality of tests, and an automatic test, wherein the single test is a test of a single test item, the plurality of tests is a test of K test items, and the automatic test is an automatic test of all test items, wherein K is a positive integer greater than 1.
In one possible embodiment, after the terminal to be tested performs the target test task to obtain the test result, the method further includes:
and storing the test result in the test system for inquiring the test result.
In one possible embodiment, loading all of the dynamic libraries of test functions includes:
and opening a catalog of the test function dynamic library, and traversing all the test function dynamic libraries, wherein test interface functions are contracted in the test function dynamic library in the form of test commands.
In a second aspect, an embodiment of the present invention further provides a terminal testing device, applied to a terminal to be tested, where the device includes a module/unit that performs a method of any one of the possible designs of the first aspect. These modules/units may be implemented by hardware, or may be implemented by hardware executing corresponding software.
In a third aspect, an embodiment of the present invention further provides a terminal test system, where a mirror image packet of a program of the terminal test system is burned on the terminal to be tested, where the terminal test system includes: the system comprises a dynamic library interface management module, a test item management module, a configuration file analysis module and an interface display module.
In a fourth aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory. Wherein the memory is for storing one or more computer programs; the one or more computer programs, when executed by the processor, enable the electronic device to implement the method of any one of the possible designs of the first aspect described above.
The invention has the beneficial effects that: and by dynamically loading the dynamic library of the test function, a corresponding target test interface is found in the function linked list according to the target test command, and a corresponding target callback function is called, so that the test of the terminal to be tested can be realized, a complex test environment is not required to be built, the test process is simple, the test time is shortened, and the test efficiency is improved. When testing on different hardware, only the corresponding test function dynamic library is needed to be dynamically loaded, and the test environment is not needed to be manually adjusted, so that the method is more flexible and quick.
Drawings
Fig. 1 is a flow chart of a terminal test method according to the present invention.
Fig. 2 is a flow chart of a terminal test method according to an embodiment of the invention.
Fig. 3 is a schematic diagram of a terminal test device according to the present invention.
FIG. 4 is a schematic diagram of the interaction between the terminal test system and the dynamic library of test functions according to the present invention.
FIG. 5 is a schematic diagram showing the interaction of the test item management module, the dynamic library interface management module, and the test function dynamic library according to the present invention.
Fig. 6 is a schematic diagram of an electronic device of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Technical terms related to the present invention are explained below.
Terminal equipment: the terminal equipment is usually installed in a convenient place where it can be connected to a remote computer by means of a communication facility, and is mainly composed of a communication interface control device and a dedicated or selected input-output device.
Mirror image package: the image file is similar to a compressed package in nature, and it makes a series of files into a single file according to a specific format, so that the user can conveniently download and use the file.
Dynamic library: the code library is convenient to use by combining one or a plurality of target files together, and comprises a static library and a shared library. The dynamic library is also called as a dynamic shared library, and is loaded into the memory together when the program is called, and jumps to the dynamic library from the calling position of the program to run when the calling statement is executed. Unlike static libraries, dynamic libraries are loaded at program runtime, rather than linking into executable files at compile time.
When the embedded terminal equipment is produced in a factory production line, the embedded terminal equipment needs to be subjected to a complete machine test to verify whether the basic function is normal. For a factory production line, the testing process is as convenient and quick as possible, so that the production line testing efficiency is improved; for an enterprise, the test program should be as easy as possible to adapt to a variety of devices, avoiding oversubscribing modifications.
The current terminal test method needs to build a test environment, correspondingly adjusts the test environment aiming at different hardware, has complicated test process and long test time, and needs to support the development of upper computer software in an enterprise matching way.
In view of the problems existing in the above technology, an embodiment of the present invention provides a terminal testing method, applied to a terminal to be tested, see fig. 1 and 2, including:
s101: and loading all the test function dynamic libraries in response to a control instruction of starting the test system by a user, registering the test interface of each test function dynamic library as a callback function and storing the callback function in a function linked list, wherein the test function dynamic library is installed on the terminal to be tested by burning a mirror image package of a test system program on the terminal to be tested.
S102: and displaying M test items in the test system on the terminal to be tested, and responding to the selection operation of the user on the test items to generate a target test command, wherein M is a positive integer.
S103: and finding out a corresponding target test interface in the function linked list according to the target test command, calling a corresponding target callback function, executing a target test task by the terminal to be tested to obtain a test result, and displaying the test result on the terminal to be tested.
In this embodiment, the terminal to be tested is burned with a mirror package of the test system program, and the test function dynamic library is directly installed on the terminal to be tested. This means that no additional equipment or complicated setup is required to build the test environment. Once the user starts the test system, all the test function dynamic libraries are automatically loaded, greatly simplifying the preparation work before testing. The scheme adopts a unified callback function registration mechanism. The test interface of each test function dynamic library is registered as a callback function and stored in a function linked list, so that a clear and unified interface management mode is provided, and the corresponding test interface can be quickly found and called according to the needs during operation. Conventional test schemes often rely on a host computer to control and manage the test process. However, the scheme directly executes all operations on the terminal to be tested, including loading a test function dynamic library, registering a callback function, displaying test items and results, and the like, so that the dependence on an upper computer is reduced, the test flow is further simplified, the test efficiency and flexibility are improved, and the test complexity and cost are reduced.
In a specific embodiment, loading all test function dynamic libraries includes: and opening a catalog of the test function dynamic library, and traversing all the test function dynamic libraries, wherein test interface functions are contracted in the test function dynamic library in the form of test commands. Preferably, the plurality of test function dynamic libraries is provided, and each test item corresponds to one test function dynamic library. Specifically, the kinds of test items include Wi-Fi (wireless internet surfing), bluetooth, GPS (Global Positioning System ), mobile network, and the like.
In a specific embodiment, in response to a control instruction from a user to activate the test system, the method includes: and responding to the key operation of the test key by the user, starting up the terminal to be tested in the test mode and starting the test system, wherein the key operation of the test key comprises at least one of key pressing of the combination key and continuous key pressing setting time of the single key. Specifically, the combination key includes at least two individual keys, for example, a volume up key and a power key, a volume down key and a power key, and the like. The key or the starting-up mode of any combination is within the protection scope of the scheme and is not limited herein.
In this embodiment, after the test key is turned on, the test program can be automatically started, and the whole machine test mode is entered. Different from a normal starting-up mode, the system in the mode cuts all unnecessary services, only starts specified services such as a test program and the like, does not need to go through a normal complete starting-up process, shortens the starting-up time of the terminal to be tested, and improves the starting-up efficiency.
In one possible embodiment, referring to fig. 2, the types of test items selected include a single test, a plurality of tests, wherein the single test is a single test item test, the plurality of tests is a K test items test, and an automatic test, wherein the automatic test is an automatic test of all test items, wherein K is a positive integer greater than 1.
In the embodiment, the test system supports single-item test, specific test items can be selected according to a menu to conduct targeted test, multiple test items can be selected to conduct test one by one, the test program also provides an automatic test function of the whole machine, the test of all the test items can be automatically finished in sequence, the result is fed back, the production efficiency of a production line is improved, and the risk of manual omission is reduced.
In a preferred embodiment, referring to fig. 2, before displaying M test items in the test system on the terminal under test, the method further includes: and reading and analyzing the configuration file of the terminal to be tested, and determining M test items required by the terminal to be tested from N test items in a test system by the root configuration file, wherein N is a positive integer greater than or equal to M.
In this embodiment, on different hardware devices, the configuration file defines which test items can be supported by the terminal device, and after the test system parses the configuration file, only the supported test items defined in the configuration file are displayed to dynamically adapt to the differences of the different hardware devices. The introduction of the configuration file reduces the dependence on the upper computer software. When the equipment is replaced, only the configuration file is needed to be rewritten, and additional software change is not needed, so that the purposes of single soft and multiple hard are realized.
In a preferred embodiment, referring to fig. 5, finding a corresponding target test interface in the function linked list according to the target test command includes: finding out a corresponding target interface function pointer in the test system according to the target test command, wherein the test interface in the function linked list is stored in a function pointer chain table of the test system in a function pointer form.
In a preferred embodiment, when a new test item is added to new hardware, a test command of the new test item is added to a test system, and a test function dynamic library of the new test item is installed on a terminal to be tested; and/or when the new firmware is replaced, replacing the test function dynamic library matched with the new firmware.
The method for dynamically loading the external test function dynamic library adopted by the invention is a technology for dynamically loading and using the external library in the running process. This approach differs from conventional statically linked libraries in that it allows external libraries to be dynamically loaded and unloaded at program runtime without the need to link the libraries at compile time. After loading, the program can directly call the functions and data in the libraries without knowing the specific implementation details of the functions and the data, namely without needing to link function symbols, without needing to know the function name of each test interface of the test function dynamic library, and without depending on the test function dynamic library during compiling. Instead, only one fixed register interface obtaining function is specified to register all test interfaces, when the external test function dynamic library is loaded, the register interface of each test function dynamic library is found according to the test interface name, and the test interfaces defined in the function linked list in the test function dynamic library are obtained by using the register interface. Each test interface is bound with a test command, and a function pointer and the test command are obtained simultaneously when the test interface is registered. In the test items in the whole machine test system, the corresponding relation between the test functions and the test commands can be defined, and when the test items are carried out, the test can be carried out only by finding out the function pointers corresponding to the test commands in the interface management module according to the test commands. The invention decouples the test function dynamic library and the whole machine test program in this way. The test system and the test function dynamic library can be developed and maintained by different personnel respectively. The test system divides the functions into different granularities such as display channels, data channels, specific test items and the like, and only needs to add a test function dynamic library of the new test items according to requirements aiming at the new hardware new test items, test commands of the new test items are added in a test mode, large-scale code modification is not needed, and different hardware platforms can be compatible. If the display component of the system needs to be replaced, the codes of other modules do not need to be changed, and only the display module of the test system needs to be directly replaced.
In one possible embodiment, after the terminal to be tested performs the target test task to obtain the test result, the method further includes: the test results are stored in the test system for querying the test results. In the embodiment, the test system provides test result inquiry, so that result statistics and inquiry are facilitated, the test results are stored in files, power failure does not occur, and historical test results can be checked after shutdown.
The terminal test method only needs the starting operation of the terminal to be tested, does not need an external auxiliary environment, does not need to make a great deal of modification to different machine types by test system software, supports single-phase test and multiple automatic tests in a test mode, does not need excessive manual intervention, automatically outputs and saves results, and greatly simplifies the production cost. The test system has good expansibility, can be compatible with different hardware platforms, controls test items of the terminal to be tested according to the configuration file, realizes single softness and multiple hardness, and reduces the development cost of enterprises.
Referring to fig. 2, a test flow of the terminal test method is described in detail below with reference to a specific embodiment.
And when the terminal to be tested is in a shutdown state, the volume key and the power key are pressed for a long time, and after the terminal to be tested enters a test mode, a test program is operated.
First stage, initializing:
1) Opening a designated test function dynamic library catalog, traversing all test function dynamic libraries, appointing test interface functions in the test function dynamic library in the form of test commands, loading the dynamic library, registering the test interfaces as callback functions, and storing the callback functions in a function linked list.
2) Initializing a display component and creating a background work thread of a User Interface (UI).
3) Analyzing the configuration file of the terminal to be tested, defining test items to be started through the configuration file, and determining items to be tested of the terminal to be tested according to the content of the configuration file.
4) If the equipment is started for the first time, a test result file is created and initialized, and all the occupation information is written as 'untested'.
5) And displaying a main interface, wherein the main interface displays a function list and can be controlled and selected by a touch screen or keys.
A second stage of selecting a test function on the list of main interfaces:
1) Selecting a single test
Entering a single test interface, and displaying all supported test items in a list. Selecting a certain test item, entering the test item, displaying an interface corresponding to the test item, defining a test command in the test item, finding out a corresponding test interface in a callback function linked list registered in a test function dynamic library according to the test command, and calling to start testing. And waiting for the test to finish, analyzing the returned test result information, and displaying the test result information on an interface. After the test result is confirmed, the test result is written into the file in real time and is saved and returned to the single test interface.
2) Selecting automatic test
In order, the program automatically executes each test item. The test flow is similar to the single test, after each test item is tested, the test result is written into the file, the current test item interface is exited, the next test is continued to enter a new interface, and the last test item is finished to display the whole result of the automatic test. And after the confirmation is finished, returning to the main interface.
3) Selecting to view test results
Entering a test result display interface, and displaying the latest test results of all the test items in a list, wherein the latest test results comprise three states: testing failure, test success. And a certain test item can be directly selected from the test result display interface to retest, the test flow is similar to that of a single test result, the test is finished, the result display list interface is returned, and the result of the corresponding test item is updated.
After the test is finished, the main interface can be restarted, the terminal to be tested is turned off and restarted, and the normal working mode is entered.
In addition, the invention also provides a terminal testing device, which is applied to the terminal to be tested, and referring to fig. 3, the device comprises: the loading unit 301 is configured to respond to a control instruction for a user to start a test system, load N test function dynamic libraries installed in a terminal to be tested, register a test interface of each test function dynamic library as a callback function and store the callback function in a function linked list, where the terminal to be tested is burned with a mirror package of a test system program, the test function dynamic library is installed on the terminal to be tested, and N is a positive integer; the generating unit 302 is configured to display M test items in the test system on a terminal to be tested, and generate a target test command in response to a user selection operation of the test items, where M is a positive integer; and the test unit 303 is configured to find a corresponding target test interface in the function linked list according to the target test command, call a corresponding target callback function, execute a target test task by the terminal to be tested to obtain a test result, and display the test result on the terminal to be tested. All relevant contents of each step related to the above method embodiment may be cited to the functional descriptions of the corresponding functional modules, which are not described herein.
In addition, the invention also provides a terminal test system, referring to fig. 4 and 5, applied to a terminal to be tested, the mirror image package of the terminal test system program is burnt on the terminal to be tested, and the terminal test system comprises: the dynamic library interface management module 401 is configured to load N test function dynamic libraries installed in a terminal to be tested, register a test interface of each test function dynamic library as a callback function and store the callback function in a function linked list, where N is a positive integer; the dynamic library interface management module 401 is further configured to establish a connection with N test function dynamic libraries after the test function dynamic libraries are loaded, so as to call callback functions in the test function dynamic libraries; a test item management module 402, configured to manage M test items in a test system, where M is a positive integer; the configuration file analysis module 403 is configured to read and analyze a configuration file of a terminal to be tested, where the root configuration file determines M test items required by the terminal to be tested from N test items in the test system, where N is a positive integer greater than or equal to M; the interface display module 404 is configured to display M test items and test results required by the terminal to be tested. All relevant contents of each step related to the above method embodiment may be cited to the functional descriptions of the corresponding functional modules, which are not described herein.
In a specific embodiment, referring to fig. 4, the terminal test system further comprises: and the test result management module 405 is configured to store and query the test result.
In other embodiments of the present invention, embodiments of the present invention disclose an electronic device, see fig. 6, which may include: one or more processors 601; a memory 602; a display 603; one or more applications (not shown); and one or more computer programs 604, which may be connected via one or more communication buses 605. Wherein the one or more computer programs 604 are stored in the memory 602 and configured to be executed by the one or more processors 601, the one or more computer programs 604 comprise instructions that may be used to perform the various steps as in fig. 1 and 3 and the corresponding embodiments.
From the foregoing description of the embodiments, it will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of functional modules is illustrated, and in practical application, the above-described functional allocation may be implemented by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to implement all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The functional units in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
While embodiments of the present invention have been described in detail hereinabove, it will be apparent to those skilled in the art that various modifications and variations can be made to these embodiments. It is to be understood that such modifications and variations are within the scope and spirit of the present invention as set forth in the following claims. Moreover, the invention described herein is capable of other embodiments and of being practiced or of being carried out in various ways. Unless otherwise defined, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. As used herein, the word "comprising" and the like means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof without precluding other elements or items.
Claims (10)
1. A terminal test method, applied to a terminal to be tested, the method comprising:
responding to a control instruction of a user for starting a test system, loading all test function dynamic libraries, registering a test interface of each test function dynamic library as a callback function and storing the callback function into a function linked list, wherein the terminal to be tested is burnt with a mirror image package of a test system program, and the test function dynamic library is installed on the terminal to be tested;
displaying M test items in the test system on the terminal to be tested, and responding to the selection operation of a user on the test items to generate a target test command, wherein M is a positive integer;
and finding out a corresponding target test interface in the function linked list according to the target test command, calling a corresponding target callback function, executing a target test task by the terminal to be tested to obtain a test result, and displaying the test result on the terminal to be tested.
2. The method of claim 1, wherein finding a corresponding target test interface in the function linked list according to the target test command comprises:
and finding a corresponding target interface function pointer in the test system according to the target test command, wherein the test interface in the function linked list is stored in a function pointer chain list of the test system in a function pointer form.
3. The method of claim 1, further comprising, prior to displaying the M test items in the test system on the terminal under test:
and reading and analyzing the configuration file of the terminal to be tested, and determining M test items required by the terminal to be tested from N test items in the test system according to the configuration file, wherein N is a positive integer greater than or equal to M.
4. The method according to claim 1, wherein when a new test item is added to new hardware, a test command of the new test item is added to the test system, and a test function dynamic library of the new test item is installed on the terminal to be tested; and/or the number of the groups of groups,
when the new firmware is replaced, the test function dynamic library matched with the new firmware is replaced.
5. The method of claim 1, wherein responding to a control instruction from a user to activate the test system comprises:
and responding to the key operation of the test key by a user to start the test system, wherein the key operation of the test key comprises at least one of key pressing of a combination key and continuous key pressing setting time of an independent key.
6. The method of claim 1, wherein the types of selection of test items include a single test, a plurality of tests, and an automatic test, wherein the single test is a test of a single test item, the plurality of tests is a test of K test items, and the automatic test is an automatic test of all test items, wherein K is a positive integer greater than 1.
7. The method of claim 1, wherein after the terminal to be tested performs the target test task to obtain the test result, further comprising:
and storing the test result in the test system for inquiring the test result.
8. A terminal test device for use with a terminal under test, the device comprising:
the loading unit is used for responding to a control instruction of a user starting a test system, loading N test function dynamic libraries installed in the terminal to be tested, registering a test interface of each test function dynamic library as a callback function and storing the callback function into a function linked list, wherein the terminal to be tested is burnt with a mirror image package of a test system program, the test function dynamic library is installed on the terminal to be tested, and N is a positive integer;
the generating unit is used for displaying M test items in the test system on the terminal to be tested, and responding to the selection operation of the user on the test items to generate a target test command, wherein M is a positive integer;
and the test unit is used for finding out a corresponding target test interface in the function linked list according to the target test command, calling a corresponding target callback function, executing a target test task by the terminal to be tested to obtain a test result, and displaying the test result on the terminal to be tested.
9. The terminal test system is characterized by being applied to a terminal to be tested, wherein a mirror image package of a terminal test system program is burnt on the terminal to be tested, and the terminal test system comprises:
the dynamic library interface management module is used for loading N test function dynamic libraries installed in the terminal to be tested, registering the test interface of each test function dynamic library as a callback function and storing the callback function into a function linked list, wherein N is a positive integer;
the test item management module is used for managing M test items in the test system, wherein M is a positive integer;
the configuration file analysis module is used for reading and analyzing the configuration file of the terminal to be tested, and determining M test items required by the terminal to be tested from N test items in the test system according to the configuration file, wherein N is a positive integer greater than or equal to M;
and the interface display module is used for displaying M test items and test results required by the terminal to be tested.
10. An electronic device, comprising: a processor and a memory for storing a computer program; the processor is configured to execute the computer program stored in the memory, to cause the electronic device to perform the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311801951.4A CN117743058A (en) | 2023-12-25 | 2023-12-25 | Terminal test method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311801951.4A CN117743058A (en) | 2023-12-25 | 2023-12-25 | Terminal test method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117743058A true CN117743058A (en) | 2024-03-22 |
Family
ID=90282990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311801951.4A Pending CN117743058A (en) | 2023-12-25 | 2023-12-25 | Terminal test method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117743058A (en) |
-
2023
- 2023-12-25 CN CN202311801951.4A patent/CN117743058A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9645911B2 (en) | System and method for debugging firmware/software by generating trace data | |
CN101430662B (en) | Method for debugging Java language program and virtual machine program together | |
CN112783761B (en) | Method, device and system for testing cold start duration of application program | |
CN110825370A (en) | Mobile terminal application development method, device and system | |
CN112231206A (en) | Script editing method for application program test, computer readable storage medium and test platform | |
KR20080039080A (en) | Terminal having an interfacing function of the heterogeneity language compile library, api calling method and compile function generating method | |
CN114924737A (en) | Battery management system source code integration test method and device and electronic equipment | |
CN115617780A (en) | Data import method, device, equipment and storage medium | |
CN100489780C (en) | Software installation method and apparatus thereof | |
CA2021833C (en) | Data processing method and apparatus for verifying adapter description file choices | |
KR20220132248A (en) | Method, apparatus and server for surpporting programmable logic controller program | |
CN112446625A (en) | Process line generation system, method, platform and storage medium | |
CN117743058A (en) | Terminal test method, device and system | |
CN116643761A (en) | Customized mirror image manufacturing and deploying method, device, terminal and medium | |
CN110334031A (en) | Memory Allocation code detection method, device, computer equipment and storage medium | |
CN112320515B (en) | Elevator control system debugging method, elevator control system and computer storage medium | |
CN100349119C (en) | Software installation and integration method | |
CN115080113A (en) | Item code detection method and device, readable storage medium and electronic equipment | |
CN113821219B (en) | Method and system for realizing application program containerization | |
JP4925514B2 (en) | Program execution control method, program, execution control apparatus, and recording medium by internal / external event driven system | |
CN116126366B (en) | Chip input/output interface configuration method, device, medium and electronic equipment | |
CN116578651B (en) | Data table structure synchronization method, system and equipment | |
KR20190129617A (en) | Mobile app auto-test device | |
CN112231207A (en) | Multi-machine testing method for application program testing, computer readable storage medium and testing platform | |
CN100418067C (en) | Back method and system of testing for bug by computer program |
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 |