Test type determination method, device, server, medium and product
By calculating the distance between the product to be tested and the pre-trained tuple, the most similar test types are selected, which solves the problem of too long testing time in the prior art, and achieves rapid and accurate test type determination.
Patent Information
- Application Number
- CN202111355397.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-16
- Publication Date
- 2024-11-05
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art is difficult to effectively determine the type of test that the product is suitable for, resulting in too long testing time.
By obtaining product information of the product to be tested, the distance from the pre-trained tuple is calculated, the most similar test type is selected, and the appropriate test type is determined.
It enables rapid and accurate determination of the test type of product suitable for shorter testing time.
Smart Images

Figure CN114048136B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and more specifically, to a test type determination method, device, server, medium and product. Background Art
[0002] After the product is developed, such as an application, it needs to be tested before it is released to the public, for example, to test whether the performance or function of the product can meet the requirements. Test types include: unit test type, assembly test type, functional test type, and automated test type.
[0003] At present, since it is not certain which test type is suitable for a product, generally, each test type is applied to the product, and the test type with the most errors is suitable for the product. Since each test type needs to be applied to the product to get the test type suitable for the product, the testing time is long.
[0004] In summary, how to determine which test type a product is suitable for is a difficult problem that technicians in this field urgently need to solve. Summary of the invention
[0005] In view of this, the present application provides a test type determination method, device, server, medium and product.
[0006] To achieve the above objectives, this application provides the following technical solutions:
[0007] According to a first aspect of an embodiment of the present disclosure, a test type determination method is provided, including:
[0008] Acquire product information of the product to be tested, the product information including: development cycle, transaction types included in the product to be tested, the number of servers that have data interaction with the product to be tested, and the servers that have data interaction with the product to be tested;
[0009] Obtain a first priority queue, the first priority queue comprising a first number of nearest neighbor tuples, the first number of nearest neighbor tuples being the first number of tuples arbitrarily selected from a second number of tuples obtained through pre-training, each tuple comprising sample information corresponding to a plurality of sample products, the sample information of the sample products comprising: a development cycle, transaction types included in the sample products, the number of servers having data interaction with the sample products, servers having data interaction with the sample products, a test type suitable for the sample products, and error problems generated by the test type during the test process;
[0010] Calculate the first distance between the product information and the nearest neighbor tuple respectively;
[0011] Filter out target tuples that have not been selected from the second number of tuples;
[0012] Calculating a second distance between the product information and the target tuple;
[0013] comparing the second distance with a first distance corresponding to sample information of each sample product stored in the first priority queue;
[0014] If there is a first distance greater than the second distance, delete the target nearest neighbor tuple in the first priority queue, where the target nearest neighbor tuple is the nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance;
[0015] storing the target tuple as a nearest neighbor tuple in the first priority queue, returning to step 10 to filter out unselected target tuples from the second number of tuples until all of the second number of tuples have been selected;
[0016] If there is no first distance greater than the second distance, return to step 10 to filter out unselected target tuples from the second number of tuples until all the second number of tuples have been selected;
[0017] Divide the nearest neighbor tuples corresponding to the same test type among the first number of nearest neighbor tuples stored in the first priority queue into the same tuple set;
[0018] Obtaining, from the tuple set, a target tuple set containing the largest number of nearest neighbor tuples;
[0019] It is determined that the test type corresponding to the target element set is a target test type suitable for the product to be tested.
[0020] In combination with the first aspect, in a first possible implementation manner, a method for obtaining the second number of tuples includes:
[0021] Determine multiple setting parameters, and perform the following operations for each setting parameter:
[0022] Determine each sample product among the multiple sample products as a sample product to be tested, and perform the following operations:
[0023] Obtain a second priority queue, wherein the second priority queue includes sample information of a set parameter number of sample products, wherein the set parameter number of sample products are the set parameter number of sample products arbitrarily selected from a plurality of sample products;
[0024] Calculating a third distance between the sample information of the sample product to be tested and the sample information of a set parameter number of sample products included in the second priority queue;
[0025] Filtering sample information of target sample products that have not been selected from the multiple sample products;
[0026] Calculating a fourth distance between the sample information of the sample product to be tested and the sample information of the target sample product;
[0027] comparing the fourth distance with the third distance corresponding to the sample information of each sample product stored in the second priority queue;
[0028] If there is a third distance greater than the fourth distance, replace the sample information of the sample product corresponding to the largest third distance among the third distances greater than the fourth distance with the sample information of the target sample product, and return to the step of filtering out the sample information of the target sample product that has not been selected from the multiple sample products until all the multiple sample products have been selected;
[0029] If there is no third distance greater than the fourth distance, returning to the step of filtering out sample information of target sample products that have not been selected from the plurality of sample products until all the plurality of sample products have been selected;
[0030] Determine that the sample information of the sample product to be tested and the sample information of the set parameter sample products stored in the second priority queue belong to the same tuple to obtain multiple tuples;
[0031] Classify sample information of the sample products stored in the second priority queue that includes sample information of the same test type into the same sample set;
[0032] Obtaining a target sample set containing the most sample information from the sample set;
[0033] Determine the test type corresponding to the target sample set as the test type of the tuple, so as to obtain the test types corresponding to the plurality of tuples respectively;
[0034] Based on the test types respectively corresponding to the multiple tuples and the test types respectively corresponding to the sample products respectively contained in the multiple tuples, obtaining the error rates corresponding to the setting parameters, so as to obtain the error rates respectively corresponding to the multiple setting parameters;
[0035] Determine the setting parameter corresponding to the minimum error rate among the error rates corresponding to the multiple setting parameters as the target setting parameter;
[0036] Under the target setting parameters, the obtained multiple tuples are determined to be the second number of tuples.
[0037] In combination with the first aspect, in a second possible implementation manner, the following further includes:
[0038] Obtaining test cases belonging to the target test type;
[0039] The product to be tested is tested using test cases belonging to the target test type.
[0040] According to a second aspect of an embodiment of the present disclosure, there is provided a test type determination device, including:
[0041] A first acquisition module is used to acquire product information of the product to be tested, wherein the product information includes: development cycle, transaction types included in the product to be tested, the number of servers that have data interaction with the product to be tested, and the servers that have data interaction with the product to be tested;
[0042] A second acquisition module is used to acquire a first priority queue, wherein the first priority queue includes a first number of nearest neighbor tuples, wherein the first number of nearest neighbor tuples are the first number of tuples arbitrarily selected from a second number of tuples obtained through pre-training, and each tuple includes sample information corresponding to a plurality of sample products, wherein the sample information of the sample products includes: a development cycle, transaction types included in the sample products, the number of servers that have data interaction with the sample products, servers that have data interaction with the sample products, test types suitable for the sample products, and error problems generated by the test types during the testing process;
[0043] A first calculation module, used for calculating the first distance between the product information and the nearest neighbor tuple respectively;
[0044] A first screening module, used for screening out target tuples that have not been selected from the second number of tuples;
[0045] A second calculation module, used for calculating a second distance between the product information and the target tuple;
[0046] A first comparison module, configured to compare the second distance with a first distance corresponding to sample information of each sample product stored in the first priority queue;
[0047] A first deletion module, configured to delete a target nearest neighbor tuple in the first priority queue if there is a first distance greater than the second distance, wherein the target nearest neighbor tuple is a nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance;
[0048] A first returning module, configured to store the target tuple as a nearest neighbor tuple in the first priority queue, and to return to the step of filtering out unselected target tuples from the second number of tuples until all of the second number of tuples have been selected;
[0049] a second returning module, configured to return to the step of filtering out unselected target tuples from the second number of tuples if there is no first distance greater than the second distance, until all the second number of tuples have been selected;
[0050] A first partitioning module, configured to partition nearest neighbor tuples corresponding to the same test type among the first number of nearest neighbor tuples stored in the first priority queue into the same tuple set;
[0051] A third acquisition module is used to obtain a target tuple set containing the largest number of nearest neighbor tuples from the tuple set;
[0052] The first determination module is used to determine that the test type corresponding to the target element set is a test type suitable for the product to be tested.
[0053] In conjunction with the second aspect, in a first possible implementation manner, the present invention further includes:
[0054] The second determination module is used to determine a plurality of setting parameters, and perform the following operations for each setting parameter:
[0055] Determine each sample product among the multiple sample products as a sample product to be tested, and perform the following operations:
[0056] A fourth acquisition module is used to obtain a second priority queue, where the second priority queue includes sample information of a set parameter number of sample products, where the set parameter number of sample products are the set parameter number of sample products arbitrarily selected from a plurality of sample products;
[0057] A third calculation module, used for calculating a third distance between the sample information of the sample product to be tested and the sample information of a set parameter number of sample products included in the second priority queue;
[0058] A second screening module, used to screen out sample information of target sample products that have not been selected from the multiple sample products;
[0059] A fourth calculation module, used for calculating a fourth distance between the sample information of the sample product to be tested and the sample information of the target sample product;
[0060] A second comparison module, configured to compare the fourth distance with a third distance corresponding to sample information of each sample product stored in the second priority queue;
[0061] a third returning module, configured to replace the sample information of the sample product corresponding to the largest third distance among the third distances greater than the fourth distance with the sample information of the target sample product if there is a third distance greater than the fourth distance, and return to the step of filtering out the sample information of the target sample product that has not been selected from the multiple sample products until all the multiple sample products have been selected;
[0062] a fourth returning module, configured to return to the step of filtering out sample information of target sample products that have not been selected from the plurality of sample products if there is no third distance greater than the fourth distance, until all the plurality of sample products have been selected;
[0063] A third determination module is used to determine whether the sample information of the sample product to be tested and the sample information of the set parameter sample products stored in the second priority queue belong to the same tuple, so as to obtain multiple tuples;
[0064] A second division module, used for dividing the sample information of the sample products stored in the second priority queue, which includes sample information of the same test type, into the same sample set;
[0065] A fifth acquisition module, configured to obtain a target sample set containing the most sample information from the sample set;
[0066] A fourth determination module, used to determine that the test type corresponding to the target sample set is the test type of the tuple, so as to obtain the test types corresponding to the plurality of tuples respectively;
[0067] a sixth acquisition module, configured to obtain the error rates corresponding to the setting parameters based on the test types corresponding to the multiple tuples and the test types corresponding to the sample products respectively contained in the multiple tuples, so as to obtain the error rates corresponding to the multiple setting parameters;
[0068] A fifth determination module, configured to determine, among the error rates respectively corresponding to the plurality of setting parameters, a setting parameter corresponding to a minimum error rate as a target setting parameter;
[0069] The sixth determination module is used to determine the multiple tuples obtained under the target setting parameters as the second number of tuples.
[0070] In conjunction with the second aspect, in a second possible implementation manner, the following further includes:
[0071] A seventh acquisition module, used to acquire test cases belonging to the target test type;
[0072] The testing module is used to test the product to be tested by using the test cases belonging to the target test type.
[0073] According to a third aspect of an embodiment of the present disclosure, a server is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the test type determination method as described in the first aspect.
[0074] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of a server, the server is enabled to execute the test type determination method as described in the first aspect.
[0075] According to the fifth aspect of the embodiment of the present disclosure, a computer program product is provided, which can be directly loaded into the internal memory of a computer and contains software code. After being loaded and executed by the computer, the computer program can implement the test type determination method shown in the first aspect.
[0076] Through the above technical solution, it can be known that in the test type determination method provided by the present application, product information of the product to be tested is obtained; a first priority queue is obtained, the first priority queue includes a first number of nearest neighbor tuples, the first number of nearest neighbor tuples are the first number of tuples selected arbitrarily from the second number of tuples obtained in advance, and each tuple includes sample information corresponding to multiple sample products; a first distance between the product information and the nearest neighbor tuple is calculated; a target tuple that has not been selected is screened out from the second number of tuples; a second distance between the product information and the target tuple is calculated; the second distance is compared with the first distance corresponding to the sample information of each sample product stored in the first priority queue; if there is a first distance greater than the second distance, the target nearest neighbor tuple in the first priority queue is deleted, and the target The nearest neighbor tuple is marked as the nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance; the target tuple is stored in the first priority queue as the nearest neighbor tuple, and the step of returning to filter out the unselected target tuples from the second number of tuples is returned until the second number of tuples are all selected; if there is no first distance greater than the second distance, the step of returning to filter out the unselected target tuples from the second number of tuples is returned until the second number of tuples are all selected; the nearest neighbor tuples corresponding to the same test type in the first number of nearest neighbor tuples stored in the first priority queue are divided into the same tuple set; from the tuple set, the target tuple set containing the largest number of nearest neighbor tuples is obtained; and the test type corresponding to the target element set is determined to be the target test type suitable for the product to be tested. Thus, the purpose of determining the target test type suitable for the product to be tested is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0078] Figure 1 A structural diagram of the hardware architecture involved in the embodiments of the present application;
[0079] Figure 2 A flowchart of a method for determining a test type provided in an embodiment of the present application;
[0080] Figure 3 A structural diagram of a test type determination device provided in an embodiment of the present application;
[0081] Figure 4 It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION
[0082] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0083] The embodiments of the present application provide a test type determination method, device, server, medium and product. Before introducing the technical solution provided by the embodiments of the present application, the hardware architecture involved in the present application is first described.
[0084] like Figure 1 , which is a structural diagram of the hardware architecture involved in an embodiment of the present application, the hardware architecture includes: an electronic device 11 and a server 12.
[0085] Exemplarily, the electronic device 11 can be any electronic product that can interact with a user through one or more methods such as a keyboard, touchpad, touch screen, remote control, voice interaction or handwriting device, such as a mobile phone, a laptop computer, a tablet computer, a PDA, a personal computer, a wearable device, a smart TV, a PAD, etc.
[0086] It should be noted that Figure 1 This is just an example. There are many types of electronic devices, not limited to Figure 1 Laptop in the.
[0087] Exemplarily, the server 12 may be a single server, or a server cluster consisting of multiple servers, or a cloud computing server center. The server 12 may include a processor, a memory, a network interface, and the like.
[0088] Exemplarily, the user may upload product information of the product to be tested to the server 12 based on the electronic device 11 .
[0089] Exemplarily, the user may upload the product information of the product to be tested through a client running on the electronic device 11 or a user interface on a website.
[0090] Exemplarily, after receiving the product information of the product to be tested, the server 12 may execute the test type determination method provided in the embodiment of the present application.
[0091] Those skilled in the art should understand that the above-mentioned electronic devices and servers are only examples, and other existing or future electronic devices or servers that are applicable to the present disclosure should also be included in the protection scope of the present disclosure and are included here by reference.
[0092] The following describes the test type determination method provided by the embodiment of the present application in combination with the above hardware architecture. Figure 2 As shown, it is a flowchart of the method for determining the test type provided in an embodiment of the present application. The method can be applied to the server 12, and the method includes the following steps S201 to S212.
[0093] Step S201: Acquire product information of the product to be tested, the product information including: development cycle, transaction types included in the product to be tested, the number of servers that have data interaction with the product to be tested, and servers that have data interaction with the product to be tested.
[0094] Exemplarily, the product may be any one of an application program and a device.
[0095] The development cycle of different products is different. The following takes the development cycle of an application as an example to illustrate.
[0096] The development cycle of an application consists of six stages: The first stage: problem definition and solution. This round is a discussion between application developers and demanders to confirm the software development goals and feasibility. The second stage: demand analysis. When it is determined that the application development is feasible, each function that the application needs to implement will be analyzed in detail. The third stage: application design. In this stage, the entire application system will be designed according to the results of the demand analysis, such as system framework design, database design, etc. Application design is generally divided into overall design and detailed design. The fourth stage: program coding. This stage is to convert the results of application design into program code that can be run by the computer. In program coding, it is necessary to formulate unified and standard writing specifications. The fifth stage: application testing stage: find out the problems in the application design process and correct them. The sixth stage: operation and maintenance. Application maintenance is the longest time in the application life cycle. After the application development is completed and put into use, the application will no longer be able to adapt to the needs of users due to various reasons. In order to extend the life of the application, the application must be maintained. Application maintenance includes error correction maintenance and improved maintenance.
[0097] The duration of the application development cycle is determined by the complexity of the required application development. For example, the application development cycle can be from one and a half months to one and a half years.
[0098] Exemplarily, the development cycle included in the product information may include at least one of various stages included in the development cycle and the duration of the development cycle.
[0099] Exemplarily, the transaction type is related to the product, and the following description is made taking the product being a bank's mobile banking application as an example.
[0100] Exemplarily, the transaction type includes, but is not limited to, at least one of: a transfer type, a deposit type, a withdrawal type, a balance inquiry type, and an investment type.
[0101] It is understandable that the product may involve interactions with other systems during the execution of transactions corresponding to the transaction type. The following uses investment-type transactions as an example to illustrate this.
[0102] When users invest through mobile banking applications, if they need to buy funds, the bank card system needs to deduct the corresponding amount from the corresponding bank card, and the investment system needs to allocate the corresponding fund to the user. Investment type transactions may involve two systems.
[0103] It is understandable that problems may arise when a product interacts with other systems, so the parameter "other systems the product interacts with" is needed in the process of determining the type of testing that is appropriate for the product.
[0104] Exemplarily, in the embodiments of the present application, “a server that has data interaction with the product to be tested” refers to a server included in other systems that have data interaction with the product to be tested.
[0105] Exemplarily, “a server that interacts with the product to be tested and has data” may be “an API (Application Programming Interface) of the server that interacts with the product to be tested and has data”.
[0106] It is understandable that, for any two products, if the development cycle, transaction type, servers with which the products have data interaction, and the number of servers with which the products have data interaction are similar, then the test types suitable for the two products should also be the same. For example, if the distance between the product information of the product to be tested and the product information of sample information A is small, then the test type suitable for the sample product should also be suitable for the product to be tested.
[0107] Step S202: Obtain a first priority queue, where the first priority queue includes a first number of nearest neighbor tuples.
[0108] The first number of nearest neighbor tuples are the first number of tuples randomly selected from the second number of tuples obtained in advance, and each tuple includes sample information corresponding to multiple sample products. The sample information of the sample products includes: development cycle, transaction types included in the sample products, the number of servers that have data interaction with the sample products, servers that have data interaction with the sample products, test types suitable for the sample products, and error problems generated by the test types during the testing process.
[0109] Exemplarily, the second number is greater than the first number.
[0110] Exemplarily, the distance between the sample information of multiple sample products belonging to the same tuple is less than or equal to a preset threshold.
[0111] For the description of sample information of sample products, please refer to the description of product information of the product to be tested, which will not be repeated here.
[0112] It can be understood that, since it is a sample product, the test type suitable for the sample product has been determined. Exemplarily, the number of test types suitable for the sample product may be one or more.
[0113] “Error problems generated during the testing process of the test type” refers to bugs generated during the testing of sample products using test cases belonging to the test type, such as transaction failures.
[0114] Exemplarily, the first priority queue stores a first number of elements and a first distance between each element and the product information of the product to be tested, and one of the elements includes a nearest neighbor tuple.
[0115] The first priority queue belongs to the priority queue, and the priority queue is described below.
[0116] A priority queue is a collection of 0 or more elements, each of which has a distance. The operations performed on the priority queue include searching for elements, inserting elements, and deleting elements. In the disclosed embodiment, the searching for elements operation for the priority queue is used to search for the element with the largest distance in the priority queue. The deleting element operation for the priority queue is used to delete the element with the largest distance found.
[0117] Step S203: Calculate the first distance between the product information and the nearest neighbor tuples respectively.
[0118] In an optional implementation, for each nearest neighbor tuple, the first distance between the product information and the nearest neighbor tuple represents the dissimilarity index between the product to be tested and the nearest neighbor tuple. Exemplarily, the first distance between the product information and the nearest neighbor tuple may be the Euclidean distance or the Manhattan distance.
[0119] It can be understood that, since the nearest neighbor tuple includes sample information of multiple sample products, the first distance between the product information and the nearest neighbor tuple is determined based on the test categories contained in the sample information of multiple sample products contained in the nearest neighbor tuple, rather than the test category contained in the sample information of a single sample product. This is an advantage of the present application. That is, the first distance between the product information and the nearest neighbor tuple obtained in this way is more accurate.
[0120] Exemplarily, the first distance between the product information and the nearest neighbor tuple=the average value of the distances between the product information and sample information of multiple sample products included in the nearest neighbor tuple.
[0121] Step S204: Filter out target tuples that have not been selected from the second number of tuples.
[0122] In the present application, the tuple whose distance has been calculated with the product information of the product to be tested is the selected tuple.
[0123] Step S205: Calculate the second distance between the product information and the target tuple.
[0124] Exemplarily, the second distance between the product information and the target tuple may be Euclidean distance or Manhattan distance.
[0125] It is understandable that, since the target tuple includes sample information of multiple sample products, the second distance between the product information and the target tuple is determined based on the test categories contained in the sample information of multiple sample products contained in the target tuple, rather than the test category contained in the sample information of a single sample product. This is an advantage of the present application. That is, the second distance between the product information and the target tuple obtained in this way is more accurate.
[0126] Exemplarily, the second distance between the product information and the target tuple=the average value of the distances between the product information and sample information of multiple sample products included in the target tuple.
[0127] Step S206: Compare the second distance with the first distance corresponding to the sample information of each sample product stored in the first priority queue.
[0128] Step S207: If there is a first distance greater than the second distance, delete the target nearest neighbor tuple in the first priority queue, where the target nearest neighbor tuple is the nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance.
[0129] Exemplarily, if there is a first distance greater than the second distance in the first priority queue, it means that the target tuple is closer to the product to be tested, that is, the probability that the test type corresponding to the target tuple may be the same as the test type suitable for the product to be tested is greater than the probability that the test type corresponding to the target nearest neighbor tuple may be the same as the test type suitable for the product to be tested, so the target nearest neighbor tuple in the first priority queue is deleted.
[0130] If there are multiple first distances greater than the second distance in the first priority queue, the nearest neighbor tuple corresponding to the largest first distance is deleted.
[0131] In summary, the first number of nearest neighbor tuples stored in the first priority queue are the first number of tuples that are closest to the product information of the product to be tested.
[0132] Step S208: store the target tuple as the nearest neighbor tuple in the first priority queue, and return to step S204 until the second number of tuples have been selected.
[0133] Step S209: If there is no first distance greater than the second distance, return to step S204 until the second number of tuples are all selected.
[0134] Step S210: Divide the nearest neighbor tuples corresponding to the same test type among the first number of nearest neighbor tuples stored in the first priority queue into the same tuple set.
[0135] Exemplarily, the test types may be: unit test, assembly test, system test.
[0136] Step S211: Obtain, from the tuple set, a target tuple set containing the largest number of nearest neighbor tuples.
[0137] Assume that there are three tuple sets, namely: tuple set 1, tuple set 2, and tuple set 3. Tuple set 1 (corresponding to unit test) includes: nearest neighbor tuple 11, nearest neighbor tuple 12, nearest neighbor tuple 13; tuple set 2 (assembly test) includes: nearest neighbor tuple 21; tuple set 3 (corresponding to system test) includes: nearest neighbor tuple 31. Then the target tuple set containing the largest number of nearest neighbor tuples is tuple set 1.
[0138] Step S212: Determine that the test type corresponding to the target element set is a target test type suitable for the product to be tested.
[0139] In the test type determination method provided in the embodiment of the present application, product information of the product to be tested is obtained; a first priority queue is obtained, the first priority queue includes a first number of nearest neighbor tuples, the first number of nearest neighbor tuples are the first number of tuples selected arbitrarily from a second number of tuples obtained in advance, and each tuple includes sample information corresponding to multiple sample products; a first distance between the product information and the nearest neighbor tuple is calculated; a target tuple that has not been selected is screened out from the second number of tuples; a second distance between the product information and the target tuple is calculated; the second distance is compared with the first distance corresponding to the sample information of each sample product stored in the first priority queue; if there is a first distance greater than the second distance, the target nearest neighbor tuple in the first priority queue is deleted, and the target nearest neighbor tuple is deleted. The first priority queue is a first priority queue that is a group of nearest neighbor tuples corresponding to the largest first distance among the first distances greater than the second distance; the target tuple is stored in the first priority queue as the nearest neighbor tuple, and the step of returning to filter out the unselected target tuples from the second number of tuples until the second number of tuples have all been selected; if there is no first distance greater than the second distance, the step of returning to filter out the unselected target tuples from the second number of tuples until the second number of tuples have all been selected; the nearest neighbor tuples corresponding to the same test type in the first number of nearest neighbor tuples stored in the first priority queue are divided into the same tuple set; from the tuple set, the target tuple set containing the largest number of nearest neighbor tuples is obtained; and the test type corresponding to the target element set is determined to be the target test type suitable for the product to be tested. Thus, the purpose of determining the target test type suitable for the product to be tested is achieved.
[0140] In an optional implementation, the process of obtaining the second number of tuples through training includes the following steps A101 to A103.
[0141] Step A101: Determine multiple setting parameters, the multiple setting parameters are different. For each setting parameter, perform the following steps B101 to B113.
[0142] Step B101: Determine each sample product among a plurality of sample products as a sample product to be tested, and perform the following operations:
[0143] Step B102: Obtain a second priority queue, wherein the second priority queue includes sample information of set parameter sample products, wherein the set parameter sample products are the set parameter sample products arbitrarily selected from a plurality of sample products.
[0144] Step B103: Calculate a third distance between the sample information of the sample product to be tested and the sample information of a set parameter number of sample products contained in the second priority queue.
[0145] Exemplarily, the third distance between the sample information of the sample product to be tested and the sample information of the set parameter number of sample products included in the second priority queue may be the Euclidean distance or the Manhattan distance.
[0146] Step B104: Filtering out sample information of target sample products that have not been selected from the plurality of sample products.
[0147] In the present application, the sample information whose distance has been calculated from the product information of the sample product to be tested is the selected sample information.
[0148] Step B105: Calculate a fourth distance between the sample information of the sample product to be tested and the sample information of the target sample product.
[0149] Exemplarily, the fourth distance may be Euclidean distance or Manhattan distance.
[0150] Step B106: Compare the fourth distance with the third distance corresponding to the sample information of each sample product stored in the second priority queue.
[0151] Step B107: If there is a third distance greater than the fourth distance, replace the sample information of the sample product corresponding to the largest third distance among the third distances greater than the fourth distance with the sample information of the target sample product, and return to step B104 until all the multiple sample products have been selected.
[0152] Step B108: If there is no third distance greater than the fourth distance, return to step B104 until all the sample products have been selected.
[0153] Exemplarily, if there is a third distance greater than the fourth distance in the second priority queue, it means that the sample information of the target sample product is closer to the sample information of the sample product to be tested, that is, there is a high probability that the corresponding test type of the target sample product is the same as the test type suitable for the sample product to be tested, so the sample information of the sample product corresponding to the maximum third distance in the second priority queue is deleted.
[0154] In summary, the second priority queue is maintained to store sample information of sample products that are closest to the product information of the sample product to be tested by a set parameter.
[0155] Step B109: Determine whether the sample information of the sample product to be tested and the sample information of the sample products with set parameters stored in the second priority queue belong to the same tuple to obtain multiple tuples.
[0156] Step B110: Group the sample information of the sample products stored in the second priority queue that includes sample information of the same test type into the same sample set.
[0157] Step B111: Obtain a target sample set containing the most sample information from the sample set.
[0158] Step B112: Determine that the test type corresponding to the target sample set is the test type of the tuple, so as to obtain the test types corresponding to the multiple tuples respectively.
[0159] Assume that there are three sample sets, namely: sample set 1, sample set 2, and sample set 3. Sample set 1 (corresponding to unit test) includes: sample information of sample product 11, sample information of sample product 12, and sample information of sample product 13; sample set 2 (assembly test) includes: sample information of sample product 21; sample set 3 (corresponding to system test) includes: sample information of sample product 31. Then the target sample set containing the most sample information is sample set 1. Then the test type corresponding to the tuple is the test type corresponding to sample set 1, that is, unit test.
[0160] Step B113: Based on the test types corresponding to the multiple tuples and the test types corresponding to the sample products respectively contained in the multiple tuples, the error rates corresponding to the setting parameters are obtained to obtain the error rates corresponding to the multiple setting parameters.
[0161] Exemplarily, the error rate calculation method may be the same as the error rate calculation method in the KNN (K-Nearest Neighbor) algorithm, which is not described in detail here.
[0162] It is understandable that the sample information of multiple sample products may belong to the same tuple, so it is not necessary to determine each sample product as the sample product to be tested. For example, after the sample information of sample product A is determined as the sample product to be tested, the sample information of sample product B and the sample information of sample product C that belong to the same tuple as the sample information of sample product A are obtained, so it is not necessary to determine the sample information of sample product B and the sample information of sample product C as the sample products to be tested respectively.
[0163] Step A102: Determine the setting parameter corresponding to the minimum error rate among the error rates corresponding to the plurality of setting parameters as the target setting parameter.
[0164] Step A103: Under the target setting parameters, the obtained multiple tuples are determined to be the second number of tuples.
[0165] It can be understood that the multiple setting parameters determined in step A101 include the target setting parameters, the number of multiple tuples obtained from steps B101 to B113 executed under the setting parameters is the second number, and the obtained tuples are the tuples mentioned in step S202.
[0166] In an optional implementation, the following steps C11 to C12 are also included.
[0167] Step C11: Acquire test cases belonging to the target test type.
[0168] Step C12: Testing the product to be tested using a test case belonging to the target test type.
[0169] The method is described in detail in the embodiments disclosed in the above-mentioned application. The method of the application can be implemented by various forms of devices. Therefore, the application also discloses a device, and a specific embodiment is given below for detailed description.
[0170] like Figure 3 As shown, it is a structural diagram of a test type determination device provided in an embodiment of the present application, and the device includes: a first acquisition module 301, a second acquisition module 302, a first calculation module 303, a first screening module 304, a second calculation module 305, a first comparison module 306, a first deletion module 307, a first return module 308, a second return module 309, a first division module 310, a third acquisition module 311 and a first determination module 312, wherein:
[0171] The first acquisition module 301 is used to acquire product information of the product to be tested, wherein the product information includes: development cycle, transaction types included in the product to be tested, the number of servers that have data interaction with the product to be tested, and the servers that have data interaction with the product to be tested;
[0172] The second acquisition module 302 is used to acquire a first priority queue, wherein the first priority queue includes a first number of nearest neighbor tuples, wherein the first number of nearest neighbor tuples are the first number of tuples randomly selected from the second number of tuples obtained by pre-training, and each tuple includes sample information corresponding to a plurality of sample products, wherein the sample information of the sample products includes: development cycle, transaction types included in the sample products, number of servers having data interaction with the sample products, servers having data interaction with the sample products, test types suitable for the sample products, and error problems generated by the test types during the testing process;
[0173] A first calculation module 303, used to calculate the first distance between the product information and the nearest neighbor tuple;
[0174] A first screening module 304, configured to screen out target tuples that have not been selected from the second number of tuples;
[0175] A second calculation module 305, used to calculate a second distance between the product information and the target tuple;
[0176] A first comparison module 306, configured to compare the second distance with a first distance corresponding to sample information of each sample product stored in the first priority queue;
[0177] A first deletion module 307 is configured to delete a target nearest neighbor tuple in the first priority queue if there is a first distance greater than the second distance, wherein the target nearest neighbor tuple is a nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance;
[0178] A first returning module 308, configured to store the target tuple as a nearest neighbor tuple in the first priority queue, and return to the first screening module 304, until the second number of tuples are all selected;
[0179] A second returning module 309, configured to return to the first screening module 304 if there is no first distance greater than the second distance, until the second number of tuples are all selected;
[0180] A first partitioning module 310, configured to partition nearest neighbor tuples corresponding to the same test type among the first number of nearest neighbor tuples stored in the first priority queue into the same tuple set;
[0181] A third acquisition module 311 is used to obtain a target tuple set containing the largest number of nearest neighbor tuples from the tuple set;
[0182] The first determination module 312 is configured to determine that the test type corresponding to the target element set is a test type suitable for the product to be tested.
[0183] In an optional implementation, the method further includes:
[0184] The second determination module is used to determine a plurality of setting parameters, and perform the following operations for each setting parameter:
[0185] Determine each sample product among the multiple sample products as a sample product to be tested, and perform the following operations:
[0186] A fourth acquisition module is used to obtain a second priority queue, where the second priority queue includes sample information of a set parameter number of sample products, where the set parameter number of sample products are the set parameter number of sample products arbitrarily selected from a plurality of sample products;
[0187] A third calculation module, used for calculating a third distance between the sample information of the sample product to be tested and the sample information of a set parameter number of sample products included in the second priority queue;
[0188] A second screening module, used to screen out sample information of target sample products that have not been selected from the multiple sample products;
[0189] A fourth calculation module, used for calculating a fourth distance between the sample information of the sample product to be tested and the sample information of the target sample product;
[0190] A second comparison module, configured to compare the fourth distance with a third distance corresponding to sample information of each sample product stored in the second priority queue;
[0191] a third returning module, configured to replace the sample information of the sample product corresponding to the largest third distance among the third distances greater than the fourth distance with the sample information of the target sample product if there is a third distance greater than the fourth distance, and return to the step of filtering out the sample information of the target sample product that has not been selected from the multiple sample products until all the multiple sample products have been selected;
[0192] a fourth returning module, configured to return to the step of filtering out sample information of target sample products that have not been selected from the plurality of sample products if there is no third distance greater than the fourth distance, until all the plurality of sample products have been selected;
[0193] A third determination module is used to determine whether the sample information of the sample product to be tested and the sample information of the set parameter sample products stored in the second priority queue belong to the same tuple, so as to obtain multiple tuples;
[0194] A second division module, used for dividing the sample information of the sample products stored in the second priority queue, which includes sample information of the same test type, into the same sample set;
[0195] A fifth acquisition module, configured to obtain a target sample set containing the most sample information from the sample set;
[0196] A fourth determination module, used to determine that the test type corresponding to the target sample set is the test type of the tuple, so as to obtain the test types corresponding to the plurality of tuples respectively;
[0197] a sixth acquisition module, configured to obtain the error rates corresponding to the setting parameters based on the test types corresponding to the multiple tuples and the test types corresponding to the sample products respectively contained in the multiple tuples, so as to obtain the error rates corresponding to the multiple setting parameters;
[0198] A fifth determination module, configured to determine, among the error rates respectively corresponding to the plurality of setting parameters, a setting parameter corresponding to a minimum error rate as a target setting parameter;
[0199] The sixth determination module is used to determine the multiple tuples obtained under the target setting parameters as the second number of tuples.
[0200] In an optional implementation, the method further includes:
[0201] Also includes:
[0202] A seventh acquisition module, used to acquire test cases belonging to the target test type;
[0203] The testing module is used to test the product to be tested by using the test cases belonging to the target test type.
[0204] 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.
[0205] Figure 4 is a block diagram of a server according to an exemplary embodiment. Figure 4 As shown, the server 400 includes but is not limited to: a processor 401 , a memory 402 , a network interface 403 , an I / O controller 404 , and a communication bus 405 .
[0206] It should be noted that those skilled in the art can understand that Figure 4 The server structure shown in the figure does not constitute a limitation on the server, and the server may include Figure 4 More or fewer components may be shown, or certain components may be combined, or the components may be arranged differently.
[0207] Combine the following Figure 4 The components of the server 400 are described in detail:
[0208] The processor 401 is the control center of the server. It uses various interfaces and lines to connect various parts of the entire server. It executes various functions of the server and processes data by running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, so as to monitor the server as a whole. The processor 401 may include one or more processing units; optionally, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0209] The processor 401 may be a central processing unit (CPU), or an application specific integrated circuit ASIC (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, etc.;
[0210] The memory 402 may include a memory, such as a high-speed random access memory (RAM) 4021 and a read-only memory (ROM) 4022, and may also include a large-capacity storage device 4023, such as at least one disk storage, etc. Of course, the server may also include hardware required for other services.
[0211] The memory 402 is used to store instructions executable by the processor 401. The processor 401 is configured to execute any step in the test type determination embodiment.
[0212] A wired or wireless network interface 403 is configured to connect the server 400 to the network.
[0213] The processor 401, the memory 402, the network interface 403 and the I / O controller 404 may be interconnected via a communication bus 405, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc.
[0214] In an exemplary embodiment, the server 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned test type determination.
[0215] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 402 including instructions, and the instructions can be executed by a processor 401 of a server 400 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0216] In an exemplary embodiment, a computer program product is also provided, which can be directly loaded into the internal memory of a computer, such as the above-mentioned memory 402, and contains software code. After being loaded and executed by a computer, the computer program can implement the method shown in any embodiment of the above-mentioned test type determination.
[0217] It should be noted that the test type determination method, device, server, medium and product provided by the present invention can be used in the financial field or other fields, for example, can be used in test application scenarios in the financial field. Other fields are any fields other than the financial field. The above is only an example and does not limit the application field of the test type determination method, device, server, medium and product provided by the present invention.
[0218] It should be noted that the features described in the various embodiments in this specification can be replaced or combined with each other. For the device or system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0219] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0220] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0221] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for determining a test type, characterized in that: include: Acquire product information of the product to be tested, the product information including: development cycle, transaction types included in the product to be tested, the number of servers that have data interaction with the product to be tested, and the servers that have data interaction with the product to be tested; Obtain a first priority queue, the first priority queue comprising a first number of nearest neighbor tuples, the first number of nearest neighbor tuples being the first number of tuples arbitrarily selected from a second number of tuples obtained through pre-training, each tuple comprising sample information corresponding to a plurality of sample products, the sample information of the sample products comprising: a development cycle, transaction types included in the sample products, the number of servers having data interaction with the sample products, servers having data interaction with the sample products, a test type suitable for the sample products, and error problems generated by the test type during the test process; Calculate the first distance between the product information and the nearest neighbor tuple respectively; Filter out target tuples that have not been selected from the second number of tuples; Calculating a second distance between the product information and the target tuple; comparing the second distance with a first distance corresponding to sample information of each sample product stored in the first priority queue; If there is a first distance greater than the second distance, delete the target nearest neighbor tuple in the first priority queue, where the target nearest neighbor tuple is the nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance; storing the target tuple as a nearest neighbor tuple in the first priority queue, returning to step 10 to filter out unselected target tuples from the second number of tuples until all of the second number of tuples have been selected; If there is no first distance greater than the second distance, return to step 10 to filter out unselected target tuples from the second number of tuples until all the second number of tuples have been selected; Divide the nearest neighbor tuples corresponding to the same test type among the first number of nearest neighbor tuples stored in the first priority queue into the same tuple set; Obtaining, from the tuple set, a target tuple set containing the largest number of nearest neighbor tuples; It is determined that the test type corresponding to the target element set is a target test type suitable for the product to be tested.
2. The test type determination method according to claim 1, characterized in that: The method for obtaining the second number of tuples comprises: Determine multiple setting parameters, and perform the following operations for each setting parameter: Determine each sample product among the multiple sample products as a sample product to be tested, and perform the following operations: Obtain a second priority queue, where the second priority queue includes sample information of set parameter number of sample products, where the set parameter number of sample products are the set parameter number of sample products arbitrarily selected from a plurality of sample products; Calculating a third distance between the sample information of the sample product to be tested and the sample information of a set parameter number of sample products included in the second priority queue; Filtering sample information of target sample products that have not been selected from the multiple sample products; Calculating a fourth distance between the sample information of the sample product to be tested and the sample information of the target sample product; comparing the fourth distance with the third distance corresponding to the sample information of each sample product stored in the second priority queue; If there is a third distance greater than the fourth distance, replace the sample information of the sample product corresponding to the largest third distance among the third distances greater than the fourth distance with the sample information of the target sample product, and return to the step of filtering out the sample information of the target sample product that has not been selected from the multiple sample products until all the multiple sample products have been selected; If there is no third distance greater than the fourth distance, returning to the step of filtering out sample information of target sample products that have not been selected from the plurality of sample products until all the plurality of sample products have been selected; Determine that the sample information of the sample product to be tested and the sample information of the set parameter sample products stored in the second priority queue belong to the same tuple to obtain multiple tuples; Classify sample information of the sample products stored in the second priority queue that includes sample information of the same test type into the same sample set; Obtaining a target sample set containing the most sample information from the sample set; Determine the test type corresponding to the target sample set as the test type of the tuple, so as to obtain the test types corresponding to the plurality of tuples respectively; Based on the test types respectively corresponding to the multiple tuples and the test types respectively corresponding to the sample products respectively contained in the multiple tuples, obtaining the error rates corresponding to the setting parameters, so as to obtain the error rates respectively corresponding to the multiple setting parameters; Determine the setting parameter corresponding to the minimum error rate among the error rates corresponding to the multiple setting parameters as the target setting parameter; Under the target setting parameters, the obtained multiple tuples are determined to be the second number of tuples.
3. The test type determination method according to any one of claims 1 or 2, characterized in that: Also includes: Obtaining test cases belonging to the target test type; The product to be tested is tested using test cases belonging to the target test type.
4. A test type determination device, characterized in that: include: A first acquisition module is used to acquire product information of the product to be tested, wherein the product information includes: development cycle, transaction types included in the product to be tested, the number of servers that have data interaction with the product to be tested, and the servers that have data interaction with the product to be tested; A second acquisition module is used to acquire a first priority queue, wherein the first priority queue includes a first number of nearest neighbor tuples, wherein the first number of nearest neighbor tuples are the first number of tuples arbitrarily selected from a second number of tuples obtained through pre-training, and each tuple includes sample information corresponding to a plurality of sample products, wherein the sample information of the sample products includes: a development cycle, transaction types included in the sample products, the number of servers that have data interaction with the sample products, servers that have data interaction with the sample products, test types suitable for the sample products, and error problems generated by the test types during the testing process; A first calculation module, used for calculating the first distance between the product information and the nearest neighbor tuple respectively; A first screening module, used for screening out target tuples that have not been selected from the second number of tuples; A second calculation module, used for calculating a second distance between the product information and the target tuple; A first comparison module, configured to compare the second distance with a first distance corresponding to sample information of each sample product stored in the first priority queue; A first deletion module, configured to delete a target nearest neighbor tuple in the first priority queue if there is a first distance greater than the second distance, wherein the target nearest neighbor tuple is a nearest neighbor tuple corresponding to the largest first distance among the first distances greater than the second distance; A first returning module, configured to store the target tuple as a nearest neighbor tuple in the first priority queue, and to return to the step of filtering out unselected target tuples from the second number of tuples until all of the second number of tuples have been selected; a second returning module, configured to return to the step of filtering out unselected target tuples from the second number of tuples if there is no first distance greater than the second distance, until all the second number of tuples have been selected; A first partitioning module, configured to partition nearest neighbor tuples corresponding to the same test type among the first number of nearest neighbor tuples stored in the first priority queue into the same tuple set; A third acquisition module is used to obtain a target tuple set containing the largest number of nearest neighbor tuples from the tuple set; The first determination module is used to determine that the test type corresponding to the target element set is a test type suitable for the product to be tested.
5. The test type determination device according to claim 4, characterized in that: Also includes: The second determination module is used to determine a plurality of setting parameters, and perform the following operations for each setting parameter: Determine each sample product among the multiple sample products as a sample product to be tested, and perform the following operations: A fourth acquisition module is used to obtain a second priority queue, where the second priority queue includes sample information of a set parameter number of sample products, where the set parameter number of sample products are the set parameter number of sample products arbitrarily selected from a plurality of sample products; A third calculation module, used for calculating a third distance between the sample information of the sample product to be tested and the sample information of a set parameter number of sample products included in the second priority queue; A second screening module, used to screen out sample information of target sample products that have not been selected from the multiple sample products; A fourth calculation module, used for calculating a fourth distance between the sample information of the sample product to be tested and the sample information of the target sample product; A second comparison module, configured to compare the fourth distance with a third distance corresponding to sample information of each sample product stored in the second priority queue; a third returning module, configured to replace the sample information of the sample product corresponding to the largest third distance among the third distances greater than the fourth distance with the sample information of the target sample product if there is a third distance greater than the fourth distance, and return to the step of filtering out the sample information of the target sample product that has not been selected from the multiple sample products until all the multiple sample products have been selected; a fourth returning module, configured to return to the step of filtering out sample information of target sample products that have not been selected from the plurality of sample products if there is no third distance greater than the fourth distance, until all the plurality of sample products have been selected; A third determination module is used to determine whether the sample information of the sample product to be tested and the sample information of the set parameter sample products stored in the second priority queue belong to the same tuple, so as to obtain multiple tuples; A second division module, used for dividing the sample information of the sample products stored in the second priority queue, which includes sample information of the same test type, into the same sample set; A fifth acquisition module, configured to obtain a target sample set containing the most sample information from the sample set; A fourth determination module, used to determine that the test type corresponding to the target sample set is the test type of the tuple, so as to obtain the test types corresponding to the plurality of tuples respectively; a sixth acquisition module, configured to obtain the error rates corresponding to the setting parameters based on the test types corresponding to the multiple tuples and the test types corresponding to the sample products respectively contained in the multiple tuples, so as to obtain the error rates corresponding to the multiple setting parameters; A fifth determination module, configured to determine, among the error rates respectively corresponding to the plurality of setting parameters, a setting parameter corresponding to a minimum error rate as a target setting parameter; The sixth determination module is used to determine the multiple tuples obtained under the target setting parameters as the second number of tuples.
6. The test type determination device according to any one of claims 4 or 5, characterized in that: Also includes: A seventh acquisition module, used to acquire test cases belonging to the target test type; The testing module is used to test the product to be tested by using the test cases belonging to the target test type.
7. A server, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the test type determination method according to any one of claims 1 to 3. 8 . A computer-readable storage medium, when instructions in the storage medium are executed by a processor of a server, enables the server to perform the test type determination method according to any one of claims 1 to 3.
9. A computer program product that can be directly loaded into the internal memory of a computer, wherein the memory is the memory included in the server described in claim 7 and contains software code. After being loaded and executed by a computer, the computer program can implement the test type determination method described in any one of claims 1 to 3.
