Method and device for determining focus test, storage medium and electronic device
Patent Information
- Application Number
- CN202310254907.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2043-03-07
AI Technical Summary
[0005]本申请实施例提供了一种重点测试的确定方法及装置、存储介质及电子装置,以至少解决相关技术中当前测试中的重点主要由固定对象确定的,使得应用的测试周期长的问题
[0019]通过本申请,获取目标应用中的N个待测功能模块;确定所述N个待测功能模块中每一个待测功能模块对应的出链信息,其中,所述出链信息用于指示第N个待测功能模块与N-1个待测功能模块之间的数据交互状态;根据所述出链信息确定所述每一个待测功能模块对应的目标矩阵,以根据所述目标矩阵对应的遍历情况确定所述N个待测功能模块中需要重点测试的目标待测试功能模块。也就是说,通过确定待测功能模块的出链信息以及出链信息对应的目标矩阵,进而根据目标矩阵的遍历情况从待测功能模块中确定需要重点测试的目标待测试功能模块,解决了相关技术中当前测试中的重点主要由固定对象确定的,使得应用的测试周期长的问题,达到了有效压缩测试时间的效果。
Smart Images

Figure CN116467173B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of artificial intelligence technology, and more specifically, to a method and apparatus for determining key tests, a storage medium, and an electronic device. Background Technology
[0002] Currently, the planning of test tasks is done manually. That is, the product manager explains which functions are important, the developers explain which parts may have problems and need to be tested in detail, and then the testers plan the test scheme.
[0003] Given the short testing task cycles and limited human resources, planning in this focused manner will, to some extent, compress the already scarce testing time. However, no effective solution has yet been proposed for the problem that current testing in related technologies is primarily focused on fixed objects, leading to long application testing cycles.
[0004] Therefore, it is necessary to improve the relevant technology to overcome the aforementioned defects. Summary of the Invention
[0005] This application provides a method, apparatus, storage medium, and electronic device for determining key tests, to at least solve the problem in the related art where the key points in current tests are mainly determined by fixed objects, resulting in long test cycles.
[0006] According to one embodiment of this application, a method for determining key testing modules is provided, comprising: acquiring N functional modules to be tested in a target application; determining outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1th functional modules to be tested; determining a target matrix corresponding to each functional module to be tested based on the outgoing chain information, so as to determine the target functional modules to be tested that need to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix.
[0007] In an exemplary embodiment, after determining the outgoing chain information corresponding to each of the N functional modules to be tested, the method further includes: identifying whether each functional module to be tested interacts with functional modules other than the N functional modules to be tested; and, if the data interaction is determined, issuing a prompt message to the target object, wherein the prompt message is used to instruct the target object whether to directly initiate a correction process for the target matrix corresponding to each functional module to be tested.
[0008] In an exemplary embodiment, before determining the target functional modules that need to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix, the method further includes: determining the matrix exponentiation result corresponding to the target matrix; if the matrix exponentiation result is a preset outlier, determining that the traversal situation corresponding to the target matrix is abnormal, and initiating a correction process for the abnormal target matrix; if the matrix exponentiation result is not a preset outlier, determining that the traversal situation corresponding to the target matrix is normal, and determining the probability of focusing on testing each functional module to be tested based on the values in the target matrix.
[0009] In an exemplary embodiment, initiating a correction process for an abnormal target matrix includes: determining the damping factor corresponding to the target application, obtaining a preset correction matrix, and counting the number of modules associated with the abnormal target matrix; filling the damping factor, the correction matrix, and the number of modules into a preset correction formula to obtain a target correction formula; wherein the damping factor is a number between 0 and 1, and the correction matrix is an n-order matrix with all elements equal to 1; and using the target correction formula to correct the abnormal target matrix to obtain the corrected target matrix.
[0010] In an exemplary embodiment, determining the reminder content for the second object to be tested in a preset reminder manner includes: determining whether the second object exists only within a preset range of the message board device; if the second object exists only within the preset range, determining the reminder content for the second object to be tested in a preset reminder manner; if the second object does not exist only within the preset range, displaying the reminder content through the text display page of the message board device.
[0011] In an exemplary embodiment, the preset correction formula is determined at least by the following formula:
[0012]
[0013] Wherein, G is the corrected target matrix, a is the damping factor, U is the correction matrix, and M is the anomaly target matrix.
[0014] In an exemplary embodiment, determining the damping factor corresponding to a target application includes: obtaining a preset damping reference list, wherein the damping reference list contains multiple standard damping factors and correspondences between them and the types of applications to be tested, as well as preferred values of the standard damping factors corresponding to the types of applications to be tested; identifying the target type corresponding to the target application; matching the target type with the types of applications to be tested in the damping reference list, and determining the damping factor corresponding to the target application based on the matching result.
[0015] In an exemplary embodiment, after determining the target functional modules that need to be focused on testing among the N functional modules to be tested based on the traversal of the target matrix, the method further includes: when it is determined that there are at least two target functional modules to be tested among the N functional modules to be tested, determining the focus testing probability corresponding to the at least two target functional modules to be tested; and taking the target functional module to be tested with the highest focus testing probability as the first focus testing module in the testing phase.
[0016] According to another embodiment of this application, a device for determining the key testing of reminder content is also provided, comprising: an acquisition module for acquiring N functional modules to be tested in a target application; a determination module for determining outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction state between the Nth functional module to be tested and the N-1th functional modules to be tested; and a second determination module for determining a target matrix corresponding to each functional module to be tested based on the outgoing chain information, so as to determine the target functional modules to be tested that need to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix.
[0017] According to another embodiment of the present application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described method for determining key tests when running.
[0018] According to another embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the key test through the computer program.
[0019] This application obtains N functional modules to be tested in a target application; determines the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1th functional modules to be tested; and determines the target matrix corresponding to each functional module to be tested based on the outgoing chain information, so as to determine the target functional modules that need to be focused on testing among the N functional modules to be tested based on the traversal of the target matrix. In other words, by determining the outgoing chain information of the functional modules to be tested and the target matrix corresponding to the outgoing chain information, and then determining the target functional modules that need to be focused on testing from the functional modules to be tested based on the traversal of the target matrix, this solves the problem in related technologies where the focus of current testing is mainly determined by fixed objects, resulting in a long application testing cycle, and effectively compresses the testing time. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram of the hardware environment for an optional method for determining key tests according to an embodiment of this application;
[0023] Figure 2 This is a flowchart of an optional method for determining key tests according to an embodiment of this application;
[0024] Figure 3 This is a schematic diagram of an optional embodiment of an optional method for determining key tests according to an embodiment of this application;
[0025] Figure 4 This is a matrix diagram (a) of an optional embodiment of an optional method for determining key tests according to an embodiment of this application;
[0026] Figure 5 This is a matrix diagram (II) of an optional embodiment of an optional method for determining key tests according to an embodiment of this application;
[0027] Figure 6 This is a structural block diagram of an optional reminder content key test determination device according to an embodiment of this application. Detailed Implementation
[0028] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0030] According to one aspect of the embodiments of this application, a method for determining key tests is provided. This method for determining key tests is widely applicable to whole-house intelligent digital control application scenarios such as artificial intelligence, smart homes, smart home device ecosystems, and intelligencehouse ecosystems. Optionally, in this embodiment, the above-mentioned method for determining key tests can be applied to, for example... Figure 1 The hardware environment shown consists of multiple terminal devices 102 and a server 104. For example... Figure 1 As shown, server 104 is connected to multiple terminal devices 102 via a network and can be used to provide services (such as application services) to terminals or clients installed on terminals. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.
[0031] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.
[0032] This embodiment provides a method for determining key tests, including but not limited to those applied to terminal devices. Figure 2 This is a flowchart of a method for determining key tests according to an embodiment of this application, which includes the following steps:
[0033] Step S202: Obtain N functional modules to be tested in the target application; wherein, N is a positive integer greater than or equal to 1.
[0034] Step S204: Determine the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1 functional modules to be tested;
[0035] Step S208: Determine the target matrix corresponding to each functional module to be tested based on the outgoing chain information, so as to determine the target functional modules that need to be tested in the N functional modules to be tested based on the traversal of the target matrix.
[0036] Through the above steps, N functional modules to be tested in the target application are obtained; the outgoing chain information corresponding to each of the N functional modules to be tested is determined, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1th functional modules to be tested; the target matrix corresponding to each functional module to be tested is determined based on the outgoing chain information, so as to determine the target functional modules that need to be focused on testing among the N functional modules to be tested according to the traversal of the target matrix. In other words, by determining the outgoing chain information of the functional modules to be tested and the target matrix corresponding to the outgoing chain information, and then determining the target functional modules that need to be focused on testing from the functional modules to be tested according to the traversal of the target matrix, the problem that the focus of the current test in related technologies is mainly determined by fixed objects, resulting in a long test cycle of the application, is solved, and the test time is effectively compressed.
[0037] Optionally, after determining the outgoing chain information corresponding to each of the N functional modules to be tested, the method further includes: identifying whether each functional module to be tested interacts with functional modules other than the N functional modules to be tested; if the data interaction is determined, issuing a prompt message to the target object, wherein the prompt message is used to instruct the target object whether to directly initiate a correction process for the target matrix corresponding to each functional module to be tested.
[0038] In other words, in actual work, the data for a certain module may not originate from the module currently being tested; that is, there may be other modules besides the module under test. When the module under test interacts with other modules, it is necessary to prompt the target object whether to correct the matrix corresponding to each module under test.
[0039] Optionally, before determining the target functional modules that need to be prioritized for testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix, the method further includes: determining the matrix exponentiation result corresponding to the target matrix; if the matrix exponentiation result is a preset outlier, determining that the traversal situation corresponding to the target matrix is outlier, and initiating a correction process for the outlier target matrix; if the matrix exponentiation result is not a preset outlier, determining that the traversal situation corresponding to the target matrix is normal, and determining the probability of prioritizing testing for each functional module to be tested based on the values in the target matrix.
[0040] Optionally, taking a preset anomaly value of 0 as an example, when the result of exponentiation of the target matrix is 0, the target matrix lacks traversability, thus requiring correction. However, when the result of exponentiation of the target matrix is not equal to 0, the target matrix possesses traversability. Therefore, the functional modules requiring focused testing can be determined based on the values in the target matrix.
[0041] Optionally, a correction process for the abnormal target matrix is initiated, including: determining the damping factor corresponding to the target application, obtaining a preset correction matrix, and counting the number of modules associated with the abnormal target matrix; filling the damping factor, the correction matrix, and the number of modules into a preset correction formula to obtain a target correction formula; wherein the damping factor is a number between 0 and 1, and the correction matrix is an n-order matrix with all elements equal to 1; and using the target correction formula to correct the abnormal target matrix to obtain the corrected target matrix.
[0042] Optionally, the preset correction formula is determined at least by the following formula:
[0043]
[0044] Wherein, G is the corrected target matrix, a is the damping factor, U is the correction matrix, and M is the anomaly target matrix.
[0045] In short, when the multiplication of the target matrix results in 0, meaning the target matrix lacks traversability, the target matrix is corrected. This correction is performed using G = aM + (1-a)¹ / n U. It should be noted that 'a' is a damping factor, a number between 0 and 1; 'M' refers to the aforementioned abnormal target matrix; 'n' is the number of nodes; that is, if the current functional module under test is 4, then 'n' = 4; and 'U' is an n-order matrix with all elements equal to 1. After this correction, all elements in the abnormal target matrix can be greater than 0, thus improving its traversability.
[0046] Optionally, determining the damping factor corresponding to the target application includes: obtaining a preset damping reference list, wherein the damping reference list contains multiple standard damping factors and correspondences between them and the types of applications to be tested, as well as preferred values of the standard damping factors corresponding to the types of applications to be tested; identifying the target type corresponding to the target application; matching the target type with the types of applications to be tested in the damping reference list, and determining the damping factor corresponding to the target application based on the matching result.
[0047] It should be noted that in practical applications, different applications under test may correspond to different damping factors. Therefore, it is necessary to set different damping factors for different applications under test. This can be achieved by pre-setting a damping lookup table; once the target type corresponding to the target application is identified, the damping factor corresponding to the target type can be determined according to the damping lookup table.
[0048] Optionally, after determining the target functional modules that need to be focused on testing among the N functional modules to be tested based on the traversal of the target matrix, the method further includes: when it is determined that there are at least two target functional modules to be tested among the N functional modules to be tested, determining the focus testing probability corresponding to the at least two target functional modules to be tested; and taking the target functional module to be tested with the highest focus testing probability as the first focus testing module in the testing phase.
[0049] In practical applications, there are often multiple target functional modules to be tested. When there are multiple (two or more) target functional modules to be tested, it is necessary to determine the key testing probability of each functional module to be tested. The higher the probability, the greater the importance.
[0050] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. To better understand the method for determining the key tests described above, the process is explained below with reference to embodiments, but this is not intended to limit the technical solutions of the embodiments of this application. Specifically:
[0051] Figure 3This is a schematic diagram of an optional embodiment of an optional method for determining key tests according to an embodiment of this application, as shown below. Figure 3 As shown, the steps are as follows:
[0052] PageRank is a function that assigns a real value to each page on the web. Its intention is that the higher a page's PageRank, the more "important" it is. Suppose there are four pages, composed of... Figure 3 The directed graph shown uses a web transition matrix to describe the next browsing action of a random surfer. Let A, B, C, and D be four modules. A data-providing module to a data-receiving module is considered an outgoing chain (e.g., C has one outgoing chain pointing to A, and A has three outgoing chains pointing to B, C, and D respectively). If the number of web pages is n (n=4 in this example), then the matrix M is an n x n square matrix. If web page j has k outgoing chains, then for each web page i to which an outgoing chain leads, the supporting element mij in the i-th row and j-th column of the matrix has a value of 1 / k, while the mij value for other web pages i is 0. Figure 3 The embodiments shown can yield the following results: Figure 4 The transition matrix shown is Figure 4 This is a matrix diagram (a) of an optional embodiment of an optional method for determining key tests according to an embodiment of this application.
[0053] like Figure 4 As stated, M is based on Figure 3 The resulting matrix is a Markov matrix. It should be noted that every element in the Markov matrix is greater than 0, and the sum of each column is 1. Furthermore, one of the largest eigenvalues of the Markov matrix is 1, and the absolute values of all other eigenvalues are less than 1.
[0054] Figure 5 This is a matrix diagram (II) of an optional embodiment of an optional method for determining key tests according to an embodiment of this application, as shown in the example. Figure 5 As shown:
[0055] Assuming that a random surfer has the same initial probability of being on n web pages, i.e., 1 / n, then the M matrix will have the following... Figure 5 The changes shown indicate that, under the influence of the Markov matrix, the probability distribution vector gradually approaches a steady state.
[0056] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0057] This embodiment also provides a device for determining the focus of the reminder content test. This device is used to implement the above embodiments and preferred embodiments, and will not be repeated for details already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0058] Figure 6 This is a structural block diagram of an optional reminder content focus test determination device according to an embodiment of this application. The device includes:
[0059] Acquisition module 62 is used to acquire N functional modules to be tested in the target application;
[0060] The first determining module 64 is used to determine the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1 functional modules to be tested.
[0061] The second determining module 66 is used to determine the target matrix corresponding to each functional module to be tested based on the outgoing chain information, so as to determine the target functional module to be tested that needs to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix.
[0062] Using the aforementioned device, N functional modules to be tested in the target application are acquired; the outgoing chain information corresponding to each of the N functional modules to be tested is determined, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1th functional modules to be tested; a target matrix corresponding to each functional module to be tested is determined based on the outgoing chain information, and the target functional modules that need to be focused on testing among the N functional modules to be tested are determined based on the traversal of the target matrix. In other words, by determining the outgoing chain information of the functional modules to be tested and the target matrix corresponding to the outgoing chain information, and then determining the target functional modules that need to be focused on testing from the functional modules to be tested based on the traversal of the target matrix, the problem that the focus of current testing in related technologies is mainly determined by fixed objects, resulting in long application testing cycles, is solved, achieving the effect of effectively compressing testing time.
[0063] Optionally, the determining module 62 is further configured to identify whether each of the tested functional modules interacts with functional modules other than the N tested functional modules; if the data interaction is determined, a prompt message is sent to the target object, wherein the prompt message is used to instruct the target object whether to directly initiate a correction process for the target matrix corresponding to each tested functional module.
[0064] In other words, in actual work, the data for a certain module may not originate from the module currently being tested; that is, there may be other modules besides the module under test. When the module under test interacts with other modules, it is necessary to prompt the target object whether to correct the matrix corresponding to each module under test.
[0065] Optionally, the second determining module 68 is further configured to determine the matrix exponentiation result corresponding to the target matrix; if the matrix exponentiation result is a preset abnormal value, determine that the traversal situation corresponding to the target matrix is abnormal and initiate a correction process for the abnormal target matrix; if the matrix exponentiation result is not a preset abnormal value, determine that the traversal situation corresponding to the target matrix is normal, and determine the probability of focusing on testing each functional module under test based on the value in the target matrix.
[0066] Optionally, taking a preset anomaly value of 0 as an example, when the result of exponentiation of the target matrix is 0, the target matrix lacks traversability, thus requiring correction. However, when the result of exponentiation of the target matrix is not equal to 0, the target matrix possesses traversability. Therefore, the functional modules requiring focused testing can be determined based on the values in the target matrix.
[0067] Optionally, the second determining module 68 is further configured to determine the damping factor corresponding to the target application, obtain a preset correction matrix, and count the number of modules associated with the abnormal target matrix; fill the damping factor, the correction matrix, and the number of modules into a preset correction formula to obtain a target correction formula; wherein the damping factor is a number between 0 and 1, and the correction matrix is an n-order matrix with all elements being 1; and use the target correction formula to correct the abnormal target matrix to obtain the corrected target matrix.
[0068] Optionally, the second determining module 68 is also used for G = aM + (1-a)1 / n U;
[0069] Wherein, G is the corrected target matrix, a is the damping factor, U is the correction matrix, and M is the anomaly target matrix.
[0070] In short, when the multiplication of the target matrix results in 0, meaning the target matrix lacks traversability, the target matrix is corrected. This correction is performed using G = aM + (1-a)¹ / n U. It should be noted that 'a' is a damping factor, a number between 0 and 1; 'M' refers to the aforementioned abnormal target matrix; 'n' is the number of nodes; that is, if the current functional module under test is 4, then 'n' = 4; and 'U' is an n-order matrix with all elements equal to 1. After this correction, all elements in the abnormal target matrix can be greater than 0, thus improving its traversability.
[0071] Optionally, the second determining module 68 is further configured to obtain a preset damping comparison list, wherein the damping comparison list contains multiple correspondences between standard damping factors and application types to be tested, as well as preferred values of standard damping factors corresponding to the application types to be tested; identify the target type corresponding to the target application; match the target type with the application types to be tested in the damping comparison list, and determine the damping factor corresponding to the target application based on the matching result.
[0072] It should be noted that in practical applications, different applications under test may correspond to different damping factors. Therefore, it is necessary to set different damping factors for different applications under test. This can be achieved by pre-setting a damping lookup table; once the target type corresponding to the target application is identified, the damping factor corresponding to the target type can be determined according to the damping lookup table.
[0073] Optionally, the second determining module 68, when determining that at least two target test modules exist simultaneously among the N test modules, determines the key test probability corresponding to the at least two target test modules; and selects the target test module with the highest key test probability as the first key test module in the testing phase.
[0074] In practical applications, there are often multiple target functional modules to be tested. When there are multiple (two or more) target functional modules to be tested, it is necessary to determine the key testing probability of each functional module to be tested. The higher the probability, the greater the importance.
[0075] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0076] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0077] S1, Obtain N functional modules to be tested in the target application;
[0078] S2, determine the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1 functional modules to be tested;
[0079] S3, determine the target matrix corresponding to each functional module to be tested based on the outgoing chain information, and determine the target functional modules to be tested that need to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix.
[0080] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0081] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0082] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0083] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0084] S1, Obtain N functional modules to be tested in the target application;
[0085] S2, determine the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1 functional modules to be tested;
[0086] S3, determine the target matrix corresponding to each functional module to be tested based on the outgoing chain information, and determine the target functional modules to be tested that need to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix.
[0087] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0088] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0089] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0090] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for determining key tests, characterized in that, include: Obtain N functional modules to be tested in the target application; Determine the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1 functional modules to be tested; Based on the outgoing chain information, the target matrix corresponding to each functional module to be tested is determined, and based on the traversal of the target matrix, the target functional modules to be tested that need to be focused on are determined among the N functional modules to be tested. Before determining the target functional modules that need to be focused on testing among the N functional modules to be tested based on the traversal of the target matrix, the method further includes: Determine the result of the matrix exponentiation corresponding to the target matrix; If the result of the matrix exponentiation is a preset outlier, the traversal of the target matrix is determined to be outlier, and a correction process for the outlier target matrix is initiated. If the result of the matrix exponentiation is not a preset outlier, the traversal of the target matrix is determined to be normal, and the probability of focusing on testing each functional module under test is determined based on the values in the target matrix. The process of initiating the correction of the abnormal target matrix includes: Determine the damping factor corresponding to the target application, obtain the preset correction matrix, and count the number of modules that are associated with the target matrix of the anomaly. The damping factor, the correction matrix, and the number of modules are filled into a preset correction formula to obtain the target correction formula; wherein, the damping factor is a number between 0 and 1, and the correction matrix is an n-order matrix with all elements being 1; The target matrix of the anomaly is corrected using the target correction formula to obtain the corrected target matrix.
2. The method for determining key tests according to claim 1, characterized in that, After determining the outgoing chain information corresponding to each of the N functional modules to be tested, the method further includes: Identify whether each of the tested functional modules interacts with functional modules other than the N tested functional modules; Upon confirming the data interaction, a prompt message is sent to the target object, wherein the prompt message is used to instruct the target object whether to directly initiate a correction process for the target matrix corresponding to each functional module under test.
3. The method for determining key tests according to claim 1, characterized in that, The preset correction formula is determined by at least the following formula: ; Wherein, G is the corrected target matrix, a is the damping factor, U is the correction matrix, and M is the anomaly target matrix.
4. The method for determining key tests according to claim 3, characterized in that, Determine the damping factor corresponding to the target application, including: Obtain a preset damping reference list, wherein the damping reference list contains various correspondences between standard damping factors and the type of application to be tested, as well as the preferred values of the standard damping factors corresponding to the type of application to be tested; Identify the target type corresponding to the target application; The target type is matched with the application type to be tested in the damping comparison list, and the damping factor corresponding to the target application is determined based on the matching result.
5. The method for determining key tests according to any one of claims 1-4, characterized in that, After determining the target functional modules that need to be focused on testing among the N functional modules to be tested based on the traversal of the target matrix, the method further includes: If it is determined that at least two target functional modules exist among the N functional modules to be tested, the probability of key testing corresponding to the at least two target functional modules to be tested is determined. The target functional module with the highest probability of being the focus of testing will be the first focus testing module in the testing phase.
6. A device for determining the focus of a test on reminder content, characterized in that, include: The acquisition module is used to acquire N functional modules to be tested in the target application. The first determining module is used to determine the outgoing chain information corresponding to each of the N functional modules to be tested, wherein the outgoing chain information is used to indicate the data interaction status between the Nth functional module to be tested and the N-1 functional modules to be tested. The second determining module is used to determine the target matrix corresponding to each functional module to be tested based on the outgoing chain information, so as to determine the target functional modules to be tested that need to be focused on testing among the N functional modules to be tested based on the traversal situation corresponding to the target matrix. The second determining module is further configured to: determine the matrix exponentiation result of the target matrix before determining the target functional module that needs to be tested among the N functional modules to be tested based on the traversal situation corresponding to the target matrix; if the matrix exponentiation result is a preset outlier, determine that the traversal situation corresponding to the target matrix is abnormal and initiate a correction process for the abnormal target matrix; if the matrix exponentiation result is not a preset outlier, determine that the traversal situation corresponding to the target matrix is normal, and determine the probability of each functional module to be tested being tested for key testing based on the values in the target matrix. The second determining module is further configured to determine the damping factor corresponding to the target application, obtain a preset correction matrix, and count the number of modules associated with the abnormal target matrix; fill the damping factor, the correction matrix, and the number of modules into a preset correction formula to obtain a target correction formula; wherein the damping factor is a number between 0 and 1, and the correction matrix is an n-order matrix with all elements being 1; and use the target correction formula to correct the abnormal target matrix to obtain the corrected target matrix.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 5.
8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 5 through the computer program.
Citation Information
Patent Citations
Fault propagation probability model-based fault mode preferential selection method
CN104898039A
Application program quality monitoring method and device, computer equipment and storage medium
CN110865939A