Terminal testing method, terminal testing device and storage medium

By establishing a test node model to characterize terminal test items and their sequential relationships, the problem of low terminal test efficiency in the existing technology is solved, a unified test method is implemented, and test efficiency and development speed are improved.

CN112905439BActive Publication Date: 2024-10-29BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201911223403.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-12-03
Publication Date
2024-10-29
Estimated Expiration
2039-12-03

AI Technical Summary

Technical Problem

In the existing technology, testing of each component of the terminal requires writing separate test codes, which results in a long development cycle, low testing efficiency, and high coupling between test items and test processes, which affects the overall testing efficiency.

Method used

By establishing a test node model to characterize the test items of the terminal and the test process sequence relationship between them, a unified testing method is achieved. The model is used to determine the test sequence in parallel or cascade connection, optimize the test process, and reduce code modifications.

Benefits of technology

It improves the efficiency of terminal testing, realizes unified testing of various terminals, reduces the development cycle, and reduces the coupling between test items and test processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905439B_ABST
    Figure CN112905439B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a terminal testing method, a terminal testing device and a storage medium. The terminal testing method includes: after determining that the terminal has completed the test of the current test item, starting the test of the next-level test item connected to the current test item in the test node model, the test node model represents the test items of the terminal and the test flow sequence relationship between the test items; when the terminal completes the test items corresponding to the terminal in the test node model, determining that the terminal test is finished. Through the present disclosure, it is possible to implement a unified test method for testing each terminal, thereby improving the terminal test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of mobile communication terminals, and in particular to a terminal testing method, a terminal testing device and a storage medium. Background Art

[0002] In the terminal production process, after the entire mobile phone is assembled, it is usually necessary to test the various components of the terminal. Taking the mobile phone as an example, it is necessary to test the various components of the mobile phone, such as various acoustic components (speakers, microphones, etc.), optical components (cameras, etc.), motion devices (vibrators), and electromagnetic devices (antennas).

[0003] In the related art, when testing each component of each terminal, it is necessary to write test code for each terminal separately for testing. For example, each component to be tested is regarded as a test item, and the test items are written as some functions or classes (such as Android Activity). The test items are combined into a test sequence by modifying the code. The test items are usually executed sequentially. If it is found that the test time is too long, it is also necessary to manually modify the code of the test item to achieve the purpose of optimization.

[0004] Test codes are written separately for each terminal, and the code needs to be modified every time the product is updated, which affects the development cycle. In addition, the writing of test items will also affect the entire test process. The test items and the test process are highly coupled, there is no parallel relationship between the test items, and the test efficiency is low. Summary of the invention

[0005] In order to overcome the problems existing in the related art, the present disclosure provides a terminal testing method, a terminal testing device and a storage medium.

[0006] According to the first aspect of an embodiment of the present disclosure, a terminal testing method is provided, the terminal testing method comprising: after determining that the terminal has completed the test of the current test item, starting the test of the next-level test item connected to the current test item in the test node model, the test node model represents the test items of the terminal and the test process sequence relationship between the test items; when the terminal completes the test items corresponding to the terminal in the test node model, determining that the terminal test is completed.

[0007] In one example, the test node model is predetermined in the following manner: determine the test items of the terminal and the test flow sequence relationship between the test items; correspond each test item of the terminal to a test item node; sequentially cascade connect the test item nodes with the test sequence in pairs to obtain a test node model including the test items and the test flow sequence relationship between the test items; wherein, in the test item nodes sequentially cascade connected in pairs, the test item tested first corresponds to the upper-level test item node, and the test item tested later corresponds to the lower-level test item node.

[0008] In one example, after determining that the terminal has completed the test of the current test item, the next-level test item connected to the current test item in the test node model is started, including: after determining that the terminal has completed the test of the current test item, deleting the next-level cascade relationship with the current test item as the previous-level test item node; in the test node model in which the next-level cascade relationship is deleted, starting the test of the test item corresponding to the test item node without the previous-level cascade relationship.

[0009] In one example, testing a test item includes: determining a test item type, the type including a system control test item type and a non-system control test item type; for test items of the non-system control test item type, testing in parallel on running resources of the non-system control test item type; for test items of the system control test item type, binding the parallel running resources of the system control test item type to the running resources of the non-system control test item type, and testing the test items of the system control test item type in parallel using the bound running resources of the system control test item type.

[0010] In one example, the use of bound system control test item type running resources to test the test items of the system control test item type in parallel includes: providing the parallel running resource function of the system control test item type to the running resource of the non-system control test item type; and calling the parallel running resource function of the non-system control test item type for the test items of the system control test item type through a reflection mechanism; and using the called parallel running resource function to test the test items of the system control test item type in parallel.

[0011] According to the second aspect of an embodiment of the present disclosure, a terminal testing device is provided, and the terminal testing device includes: a testing unit, configured to start the test of the next-level test item connected to the current test item in the test node model after determining that the terminal completes the test of the current test item, and the test node model represents the test items of the terminal and the test process sequence relationship between the test items; a determination unit, configured to determine that the terminal test is completed when the terminal completes the test items corresponding to the terminal in the test node model.

[0012] In one example, the determination unit is further configured to: determine the test items of the terminal, and the test process sequence relationship between the test items; correspond each test item of the terminal to a test item node; sequentially cascade connect the test item nodes with the test sequence in pairs to obtain a test node model including the test items and characterizing the test process sequence relationship between the test items; wherein, among the test item nodes sequentially cascade connected in pairs, the test item tested first is the upper-level test item node, and the test item tested later is the lower-level test item node.

[0013] In one example, the test unit starts the next-level test item connected to the current test item in the test node model in the following manner: after the determination unit determines that the terminal has completed the test of the current test item, the next-level cascade relationship with the current test item as the previous-level test item node is deleted; in the test node model in which the next-level cascade relationship is deleted, the test of the test item corresponding to the test item node without the previous-level cascade relationship is started.

[0014] In one example, the test unit is configured to test the test items in the following manner: determine the test item type, the type including a system control test item type and a non-system control test item type; for test items of the non-system control test item type, perform tests in parallel on the running resources of the non-system control test item type; for test items of the system control test item type, bind the parallel running resources of the system control test item type to the running resources of the non-system control test item type, and use the bound system control test item type running resources to test the test items of the system control test item type in parallel.

[0015] In one example, the test unit is configured to use the bound system control test item type running resources to test the test items of the system control test item type in parallel in the following manner: provide the parallel running resource function of the system control test item type to the running resources of the non-system control test item type; and call the parallel running resource function of the non-system control test item type for the test item of the system control test item type through the reflection mechanism; and use the called parallel running resource function to test the test items of the system control test item type in parallel.

[0016] The technical solution provided by the embodiments of the present disclosure may include the following beneficial effects: terminal testing is performed through a test node model, and the test node model represents the test items of the terminal and the test process sequence relationship between the test items, so as to implement testing of each terminal using a unified test method and improve terminal testing efficiency.

[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0019] Figure 1 The present invention is a flowchart of a terminal testing method according to an exemplary embodiment.

[0020] Figure 2 The present invention is a flow chart of a method for determining a test node model according to an exemplary embodiment.

[0021] Figure 3 The present invention is a flowchart of a terminal testing method according to an exemplary embodiment.

[0022] Figure 4 The figure is a test item node model example diagram according to an exemplary embodiment.

[0023] Figure 5 The present invention is a flowchart of a terminal testing method according to an exemplary embodiment.

[0024] Figure 6 The invention is a block diagram of a terminal testing device according to an exemplary embodiment.

[0025] Figure 7 It is a block diagram of a device according to an exemplary embodiment. DETAILED DESCRIPTION

[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0027] In the related art, when testing the hardware of a terminal, due to the different structures of each terminal and the different designs of the hardware of each terminal, some of the hardware of the terminal can be tested in parallel, while some need to be tested sequentially.

[0028] At present, when testing various types of terminals, the test sequence of the terminal hardware is determined first, and test code is written separately for the terminal according to the test sequence of the hardware. Since test code needs to be written separately for the terminal when testing the hardware of each type of terminal, the test items are highly coupled with the test process, and the test efficiency is low.

[0029] Therefore, in order to overcome the problem in the related art that when testing the test terminal, it is necessary to write test code separately for each type of terminal, and the test items and the test process are highly coupled, the present disclosure provides a terminal testing method that can uniformly test various types of terminals.

[0030] Figure 1 is a flow chart of a terminal testing method according to an exemplary embodiment. Figure 1 As shown, the terminal testing method includes the following steps.

[0031] In step S11, after determining that the terminal completes the test of the current test item, the test of the next level test item connected to the current test item in the test node model is started. The test node model represents the test items of the terminal and the test flow sequence relationship between the test items.

[0032] In the present disclosure, a test item may be understood as hardware in a terminal that needs to be tested.

[0033] For example, the hardware that needs to be tested in the terminal may include, but is not limited to, a display, a speaker, a camera, and a receiver.

[0034] The test node model may be a model that represents the test items that need to be tested by the terminal, and the test flow sequence relationship between the test items that need to be tested.

[0035] In actual testing, the terminal testing method disclosed herein can be implemented, for example, by a terminal hardware testing system including a parser and a planner. For example, a test node model representing the test items of the terminal and the test flow sequence relationship between the test items can be input into the test system in the form of a file in the form of json or xml, and the test system parses the file in the form of json or xml through a parser to obtain the test flow sequence relationship between the test items of the terminal. According to the test flow sequence relationship between the test items, the planner is used to plan the test sequence between the test items, and the test items with the test sequence after planning are tested in turn.

[0036] In the disclosed embodiment, if the test order of the terminal test items changes, the terminal test can be implemented by simply changing the test items representing the terminal and the test flow order relationship between the test items in the json or xml file, without having to rewrite the test code according to the order of the test items.

[0037] In one implementation, after the terminal completes the test of the current test item, the next level test item connected to the current test item is tested according to the test flow sequence relationship between the test items in the test node model.

[0038] In step S12, when the terminal completes each test item corresponding to the terminal in the test node model, it is determined that the terminal test is finished.

[0039] In the present disclosure, the test items of the terminal are tested according to the test flow sequence relationship between the test items in the test node model. When the terminal completes all the test items corresponding to the terminal in the test node model, it is determined that the terminal test is completed.

[0040] In an exemplary embodiment of the present disclosure, the test items of the terminal and the test flow sequence relationship between the test items can be described by the test node model. In the test of the terminal, if the test items or the test order of the test items change, it is only necessary to change the test items in the test node model or the test flow sequence of each test item to implement the test of each terminal. In this way, it is achieved that each terminal is tested using a unified test node model, thereby improving the terminal test efficiency.

[0041] The present disclosure will hereinafter describe in detail the terminal testing method involved in the present disclosure in combination with practical applications.

[0042] In the present disclosure, the test node model can be determined in advance, and the test items representing the terminal in the test node model and the test flow sequence relationship between the test items are used to test the terminal. Figure 2 shown.

[0043] Figure 2 is a flow chart of a method for determining a test node model according to an exemplary embodiment. Figure 2 As shown, the following steps are included.

[0044] In step S211, the test items of the terminal and the test flow sequence relationship between the test items are determined.

[0045] Since the hardware structure of each terminal is different, before testing the hardware of the terminal, it is necessary to first determine the hardware to be tested in the terminal, that is, the test items. And determine the test process sequence relationship between the hardware, and then test the terminal according to the test items of each terminal and the test process sequence relationship between the test items.

[0046] For example, terminal A includes a main camera device, and terminal B includes both a main camera device and a secondary camera device. When testing the main camera device of terminal A, since the main camera device generates relatively high heat, in order to prevent the hardware from being burned out by excessive temperature, it cannot be tested simultaneously with the hardware in terminal A that generates relatively high heat. For example, the main camera device and the hard disk of the terminal cannot be tested simultaneously. When testing terminal B, since the secondary camera device generates relatively low heat, it can be tested simultaneously with the hardware in terminal B that generates relatively high heat. For example, the secondary camera device and the hard disk of the terminal can be tested simultaneously.

[0047] In step S212, each test item of the terminal corresponds to a test item node.

[0048] In the present disclosure, after determining the test items of the terminal and the test flow sequence relationship between the test items, each test item can be described in the form of a test item node in the manner of the test item corresponding to the test item node.

[0049] In step S213, test item nodes with a test sequence are sequentially cascaded and connected in pairs to obtain a test node model including each test item and representing the test flow sequence relationship between each test item.

[0050] In the embodiment of the present disclosure, after describing the test items in the form of test item nodes, the test item nodes with the test sequence are sequentially cascaded in pairs to obtain a test node model including the test items and the test flow sequence relationship between the test items. Among the test item nodes sequentially cascaded in pairs, the test item tested first is the upper-level test item node, and the test item tested later is the lower-level test item node.

[0051] In the disclosed embodiment, the terminal test items and the relationships between the test items are described by a test node model, so that during terminal testing, the test items can be tested in parallel or sequentially according to the relationships between the test items, thereby improving test efficiency.

[0052] Figure 3 is a flow chart of a terminal testing method according to an exemplary embodiment. Figure 3 As shown, the terminal testing method includes the following steps.

[0053] In step S31, a test node model is predetermined.

[0054] In one implementation, the embodiment of the present disclosure may predetermine a test node model. The test node model may be described, for example, by test nodes and cascade relationships between test nodes. The test nodes in the test node model represent test items, and the cascade relationships between test nodes represent the test flow sequence relationship between test items. An example diagram of the test node model may be as follows: Figure 4 shown.

[0055] Figure 4 The test node model in can also be called a computation node graph (CNG). CNG is used to describe the test process sequence of the final test items. Figure 4 In the example, each circle represents a test node, i.e., a test item. Circles are connected by directed line segments, which means that test item nodes are sequentially cascaded in pairs. Among them, circles that are not connected at the same level may be test items that can be tested in parallel. The circle connected to the starting point of the line segment is the test item node of the previous level, and the circle pointed by the line segment arrow is the test item node of the next level. By connecting circles with directed line segments, a single directed acyclic graph of directed connecting lines connecting each test item node is obtained, i.e., CNG.

[0056] In step S32, after determining that the terminal completes the test of the current test item, the next level cascade relationship with the current test item as the upper level test item node is deleted.

[0057] For example, in Figure 4 In the example, after the test of test node A is completed, the next level cascade relationship with test node A as the previous level test node is deleted, that is, the line segment starting from test node A and pointing to test node B is deleted.

[0058] In actual testing, the planner can be used to plan the test sequence between the test items, and the test items can be tested according to the test process sequence relationship between the test items planned by the planner. Figure 4 In the example, when the test item node A is tested, the planner deletes all segments starting from the test item node A. And when all the segments pointing to the test item node C are deleted, the test of the test item node C is executed.

[0059] In step S33, in the test node model with the next level of cascade relationship deleted, the test of the test item corresponding to the test item node without the previous level of cascade relationship is started, and when the terminal completes each test item corresponding to the terminal in the test node model, it is determined that the terminal test is completed.

[0060] For example, in Figure 4 In the test node model in which the cascade relationship between test node A and test node B is deleted, the test of the test item corresponding to the test item node B without the upper level cascade relationship is started, and when all cascade relationships are deleted and the test of the test item corresponding to the test item node C is executed, it is determined that the terminal test is completed.

[0061] In actual testing, the terminal testing method disclosed in the present invention can be applied to, for example, input the CNG representing the test items of the terminal and the test flow sequence relationship between the test items into the test system in the form of json or xml, and the test system parses the file in the form of json or xml through a parser to obtain the test flow sequence relationship between the test items of the terminal. According to the test flow sequence relationship between the test items, the planner is used to plan the test sequence between the test items, and the test items with the test sequence after planning are tested in sequence.

[0062] In the disclosed embodiment, if the test order of the terminal test items changes, the terminal test can be implemented by simply changing the test items representing the terminal and the CNG between the test items in the json or xml file, without rewriting the test code according to the order of the test items.

[0063] In an exemplary embodiment of the present disclosure, when using a predetermined test node model to test various types of terminals, if the terminal test items or the test order of the test items change, it is only necessary to change the test items in the test node model or the test flow order of each test item to implement the test of each terminal. In this way, it is possible to use a unified test node model to test the terminal and improve the terminal test efficiency.

[0064] Figure 5 is a flow chart of a terminal testing method according to an exemplary embodiment. Figure 5 As shown, the terminal testing method includes the following steps.

[0065] In step S51, the test item type is determined.

[0066] Among them, the test item types include system control test item types and non-system control test item types.

[0067] In the design and implementation of the terminal, some test items in the terminal are controlled by the operating system of the terminal, which are referred to as system-controlled test item types in this disclosure. Other test items are not controlled by the operating system of the terminal, which are referred to as non-system-controlled test item types in this disclosure. In the test of the terminal, it is necessary to determine the type of test item, and then according to different types of test items, test methods are adopted for different types of test items.

[0068] Taking the terminal as a mobile phone as an example, in the Android system, for example, the test items "Bluetooth" and "Camera" are system-controlled test item types controlled by the Android system. For example, the test items "Memory" and "Antenna" are non-system-controlled test item types that are not controlled by the Android system. When testing mobile phone test items, it is necessary to test the test methods adopted for different types of test items according to the type of test item.

[0069] In step S52, the test items of the non-system control test item type are tested in parallel on the running resources of the non-system control test item type.

[0070] In step S53, for the test items of the system control test item type, the parallel running resources of the system control test item type are bound to the running resources of the non-system control test item type, and the test items of the system control test item type are tested in parallel using the bound running resources of the system control test item type.

[0071] In the present disclosure, a parallel running resource function of a system control test item type is provided to a running resource of a non-system control test item type, and a parallel running resource function of a non-system control test item type is called for a test item of the system control test item type through a reflection mechanism. The test items of the system control test item type are tested in parallel using the called parallel running resource function.

[0072] The present disclosure will hereinafter take an Android mobile phone as an example to explain in detail the terminal testing method involved in the present disclosure.

[0073] In the Android operating system, according to the characteristics of the Android system, the test item types can be divided into system control test item types and non-system control test item types.

[0074] Specifically, in the Android system, the test item node can be understood to be composed of a non-system control test item node HTNode and a system control test item node ActivityNode.

[0075] For the test items of HTNode, the test can be performed in parallel on the running resource pool of the non-system control test items (for example, the resource pool of HandleThread).

[0076] For the test items of ActivityNode, due to the characteristics of the Android system, ActivityNode needs to run in Android Activity, and Android Activity is unique. Only one ActivityNode can be run at a time through Android Activity, which cannot meet the requirements of parallel testing of multiple system control test items. In order to solve the problem that multiple system control test items cannot be tested in parallel, ActivityNode can be run in the form of Android.View. Since multiple Android.View can be run in parallel in Android Activity, the purpose of running multiple ActivityNodes in parallel can be achieved through Android Activity.

[0077] Furthermore, in order to combine HTNode and ActivityNode to achieve unified testing of test items, that is, to achieve testing of terminals using test item node models, ActivityNode can be bound to HTNode, thereby achieving the function of ActivityNode providing HTNode with functions of controlling system control test items. When HTNode calls Android.View through Android Activity to achieve parallel testing of system control test items, AndroidActivity returns the called Android.View to the calling HTNode through the reflection mechanism, thereby both running multiple non-system control test items in parallel through HTNode and running multiple system control test items in parallel through HTNode calling Android Activity.

[0078] Therefore, based on the terminal of Android system, the terminal test items are tested by using the test node model.

[0079] In an exemplary embodiment of the present disclosure, a test item node model can be obtained by determining test items and the test flow sequence relationship between the test items. According to the test item node model, in terminal testing, non-system control test items are tested in parallel through the running resources of non-system control test items, and system control test items are bound to the running resources of non-system control test items through the parallel running resources of system control test items, and the test items of the system control test item type are tested in parallel using the bound system control test item running resources. Therefore, in actual testing, the test deployment of the test item node model that matches the terminal system can be realized according to the terminal system characteristics, and then various types of terminals can be tested according to the test node model.

[0080] Based on the same inventive concept, the present disclosure also provides a terminal testing device.

[0081] It is understandable that, in order to realize the above functions, the application control device provided by the embodiment of the present disclosure includes hardware structures and / or software modules corresponding to the execution of each function. In combination with the units and algorithm steps of each example disclosed in the embodiment of the present disclosure, the embodiment of the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present disclosure.

[0082] Figure 6is a block diagram of a terminal testing device according to an exemplary embodiment. Figure 6 , the device includes a testing unit 601 and a determining unit 602.

[0083] Among them, the test unit 601 is configured to start the test of the next-level test item connected to the current test item in the test node model after determining that the terminal completes the test of the current test item, and the test node model represents the test items of the terminal and the test process sequence relationship between the test items; the determination unit 602 is configured to determine that the terminal test is completed when the terminal completes the test items corresponding to the terminal in the test node model.

[0084] In one example, the determination unit 602 is further configured to: determine the test items of the terminal, and the test process sequence relationship between the test items; correspond each test item of the terminal to a test item node; sequentially cascade connect the test item nodes with the test sequence in pairs to obtain a test node model including the test items and characterizing the test process sequence relationship between the test items; wherein, among the test item nodes sequentially cascade connected in pairs, the test item tested first is the upper-level test item node, and the test item tested later is the lower-level test item node.

[0085] In one example, the test unit 601 starts the next-level test item connected to the current test item in the test node model in the following manner: after the determination unit 602 determines that the terminal has completed the test of the current test item, the next-level cascade relationship with the current test item as the previous-level test item node is deleted; in the test node model in which the next-level cascade relationship is deleted, the test of the test item corresponding to the test item node without the previous-level cascade relationship is started.

[0086] In one example, the test unit 601 is configured to test the test items in the following manner: determine the test item type, the test type includes a system control test item type and a non-system control test item type; for the test items of the non-system control test item type, perform tests in parallel on the running resources of the non-system control test item type; for the test items of the system control test item type, bind the parallel running resources of the system control test item type to the running resources of the non-system control test item type, and use the bound system control test item type running resources to test the test items of the system control test item type in parallel.

[0087] In one example, the test unit 601 is configured to use the bound system control test item type running resources to test the test items of the system control test item type in parallel in the following manner: provide the parallel running resource function of the system control test item type to the running resources of the non-system control test item type; and call the parallel running resource function of the non-system control test item type for the test items of the system control test item type through the reflection mechanism; and use the called parallel running resource function to test the test items of the system control test item type in parallel.

[0088] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0089] A non-transitory computer-readable storage medium enables the mobile terminal to perform a terminal testing method when instructions in the storage medium are executed by a processor of a mobile terminal.

[0090] Figure 7 700 is a block diagram of a device 700 for terminal testing according to an exemplary embodiment. For example, the device 700 may be provided as a server. Figure 7 , the apparatus 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732 for storing instructions executable by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform the terminal testing method described above.

[0091] The device 700 may also include a power supply component 726 configured to perform power management of the device 700, a wired or wireless network interface 750 configured to connect the device 700 to a network, and an input / output (I / O) interface 758. The device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0092] It is further understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar thereto. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0093] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0094] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0095] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0096] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A terminal testing method, characterized in that: The terminal testing method comprises: After determining that the terminal has completed the test of the current test item, start the test of the next level test item connected to the current test item in the test node model, the test node model represents the test items of the terminal and the test flow sequence relationship between the test items; When the terminal completes each test item corresponding to the terminal in the test node model, determining that the terminal test is finished; Among them, the test items are tested, including: Determine a test item type, wherein the type includes a system control test item type and a non-system control test item type; For test items of non-system control test item type, testing is performed in parallel on the running resources of the non-system control test item type; For the test items of the system control test item type, the parallel running resources of the system control test item type are bound to the running resources of the non-system control test item type, and the test items of the system control test item type are tested in parallel using the bound running resources of the system control test item type.

2. The terminal testing method according to claim 1, characterized in that: The test node model is predetermined in the following manner: Determine the test items of the terminal and the test process sequence relationship between the test items; Each test item of the terminal corresponds to a test item node; Sequentially cascade connecting test item nodes with a test sequence in pairs to obtain a test node model including the test items and characterizing the test flow sequence relationship between the test items; Among the test item nodes that are sequentially cascaded in pairs, the test item that is tested first corresponds to the previous level test item node, and the test item that is tested later corresponds to the next level test item node.

3. The terminal testing method according to claim 2, characterized in that: After confirming that the terminal has completed the test of the current test item, the next level test item connected to the current test item in the test node model is started, including: After determining that the terminal has completed the test of the current test item, deleting the next level cascade relationship with the current test item as the previous level test item node; In the test node model in which the next-level cascade relationship is deleted, the test of the test item corresponding to the test item node without the previous-level cascade relationship is enabled.

4. The terminal testing method according to claim 1, characterized in that: The using the bound system control test item type running resources to test the test items of the system control test item type in parallel includes: Providing the parallel running resource function of the system control test item type to the running resource of the non-system control test item type; And calling the parallel running resource function of the non-system control test item type for the test item of the system control test item type through the reflection mechanism; The test items of the system control test item type are tested in parallel by using the called parallel running resource function.

5. A terminal testing device, characterized in that: The terminal testing device comprises: A test unit configured to start the test of a next-level test item connected to the current test item in a test node model after determining that the terminal has completed the test of the current test item, wherein the test node model represents the test items of the terminal and the test flow sequence relationship between the test items; A determination unit, configured to determine that the terminal test is finished when the terminal completes each test item corresponding to the terminal in the test node model; The test unit is configured to test the test items in the following manner: Determine a test item type, wherein the type includes a system control test item type and a non-system control test item type; For test items of non-system control test item type, testing is performed in parallel on the running resources of the non-system control test item type; For the test items of the system control test item type, the parallel running resources of the system control test item type are bound to the running resources of the non-system control test item type, and the test items of the system control test item type are tested in parallel using the bound running resources of the system control test item type.

6. The terminal testing device according to claim 5, characterized in that: The determining unit is further configured to: Determine the test items of the terminal and the test process sequence relationship between the test items; Each test item of the terminal corresponds to a test item node; Sequentially cascade connecting test item nodes with a test sequence in pairs to obtain a test node model including the test items and characterizing the test flow sequence relationship between the test items; Among the test item nodes that are sequentially cascaded in pairs, the test item that is tested first is the previous level test item node, and the test item that is tested later is the next level test item node.

7. The terminal testing device according to claim 6, characterized in that: The test unit starts the next level test item connected to the current test item in the test node model in the following manner: After the determining unit determines that the terminal has completed the test of the current test item, deleting the next level cascade relationship with the current test item as the previous level test item node; In the test node model in which the next-level cascade relationship is deleted, the test of the test item corresponding to the test item node without the previous-level cascade relationship is enabled.

8. The terminal testing device according to claim 5, characterized in that: The test unit is configured to use the bound system control test item type running resources to test the test items of the system control test item type in parallel in the following manner: Providing the parallel running resource function of the system control test item type to the running resource of the non-system control test item type; And calling the parallel running resource function of the non-system control test item type for the test item of the system control test item type through the reflection mechanism; The test items of the system control test item type are tested in parallel by using the called parallel running resource function.

9. A terminal testing device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the terminal testing method according to any one of claims 1 to 4.

10. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the terminal testing method according to any one of claims 1 to 4 is executed.

Citation Information

Patent Citations

  • Bluetooth product testing method and system

    CN108829609A