Data processing method, electronic device, medium and program product

By performing structured processing and feature extraction on the initial information of the test case, and using the fingerprint matching algorithm to automatically analyze the causes of differences, the problem of high cost and inaccurate analysis caused by manual dependence in the existing technology is solved, and automated and accurate differences are achieved. Cause analysis.

CN114721936BActive Publication Date: 2024-09-17ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210190359.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2024-09-17
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

In the existing technology, analysis of differences between use case output results and expected results of application test cases relies on manual labor, resulting in high labor costs and inaccurate analysis of the reasons for the differences, and lacks standardization and comprehensiveness.

Method used

Through structured processing and feature extraction of the initial information of the test case, feature fingerprints are generated, and the pre-stored fingerprint matching algorithm is used for automatic matching to determine the cause of the difference, reduce manual participation, and improve the accuracy of analysis.

Benefits of technology

Automated test case difference cause analysis is implemented, which reduces labor costs, improves the accuracy and comprehensiveness of analysis, ensures more accurate feature matching, and then determines the cause of the difference more accurately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114721936B
    Figure CN114721936B
Patent Text Reader

Abstract

The disclosed embodiment discloses a data processing method, electronic device, medium and program product, the method comprising: obtaining initial information of a test case, the initial information comprising requirement data, description data, input and output data; or the initial information also comprising application data used to execute the test case; structuring the initial information of the test case to obtain structured initial information; extracting features from the structured initial information to obtain a feature fingerprint of the test case. The technical solution can automatically extract features, reduce labor costs, and extract more and more standardized features, thereby making the cause of the difference determined based on the extracted features more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of application testing technology, and in particular to a data processing method, electronic equipment, medium, and program product. Background Art

[0002] When testing an application, after the function iteration in the application, there may be a difference between the output result of the test case after executing the test case and the expected result. The difference may be caused by a bug (defect) during the function iteration, or it may be a normal difference allowed by the function iteration. This requires testers to perform a use case differentiation analysis to analyze the cause of the difference. At present, conventional use case differentiation analysis mostly uses manual analysis to summarize the difference reasons corresponding to the differentiation characteristics. In this way, when there is a difference between the output result of the use case after executing the use case and the expected result, the differentiation feature is manually summarized and the difference reason is analyzed through the differentiation feature. However, the labor cost will be very high. Manual summary of differentiation features will only focus on the features of several fields that are considered important. There are thousands of different people, and the determined differentiation features lack specifications and standards. There are hundreds of fields in the test case, and the features of these fields extracted manually cannot completely cover all the features in the test case. Only using a few fields extracted manually to analyze the difference reasons will lead to inaccurate analysis of the difference reasons. Summary of the invention

[0003] Embodiments of the present disclosure provide a data processing method, an electronic device, a medium, and a program product.

[0004] In a first aspect, an embodiment of the present disclosure provides a data processing method.

[0005] Specifically, the data processing method includes:

[0006] Acquire initial information of the test case, the initial information including requirement data, description data, input and output data; or the initial information also includes application data used to execute the test case;

[0007] Structuring the initial information of the test case to obtain structured initial information;

[0008] Feature extraction is performed on the structured initial information to obtain a feature fingerprint of the test case.

[0009] In combination with the first aspect, in a first implementation of the first aspect, the embodiment of the present disclosure performs structured processing on the initial information of the test case to obtain structured initial information, including:

[0010] Performing word segmentation processing on the requirement data and description data of the test case to obtain requirement word segmentation and description word segmentation;

[0011] The demand segmentation words and the description segmentation words are matched with the segmentation words in the preset corpus data to obtain structured demand data and description data, wherein the segmentation words in the corpus data correspond to the structured data.

[0012] In a second aspect, a data processing method is provided in an embodiment of the present disclosure.

[0013] Specifically, the data processing method includes:

[0014] Obtain the initial information of existing use cases and their corresponding output results;

[0015] Performing feature extraction on the initial information of the existing use case to obtain the existing feature fingerprint of the existing use case, and generating the fingerprint library, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result;

[0016] Based on the fingerprint library, the initial fingerprint matching algorithm is trained, and the parameters of the initial fingerprint matching algorithm are adjusted to obtain the pre-stored fingerprint matching algorithm.

[0017] In combination with the second aspect, in a first implementation manner of the second aspect of the embodiment of the present disclosure, the fingerprint matching algorithm includes a nearest neighbor NN algorithm, a K nearest neighbor KNN algorithm, or a weighted K nearest neighbor WKNN algorithm.

[0018] In a third aspect, a data processing method is provided in an embodiment of the present disclosure.

[0019] Specifically, the data processing method includes:

[0020] Receiving a test case analysis message of a map application sent by a client, wherein the test case analysis message is used to indicate a test case to be analyzed;

[0021] Execute the test case to be analyzed to obtain a test result, and obtain initial information of a target case whose test result is different from an expected result;

[0022] Extracting features from the initial information of the target use case to obtain a target feature fingerprint of the target use case;

[0023] By using a pre-stored fingerprint matching algorithm, the target feature fingerprint is matched with an existing feature fingerprint recorded in a pre-stored fingerprint library to obtain an existing feature fingerprint that matches the target feature fingerprint, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result;

[0024] Comparing the output result corresponding to the matched existing feature fingerprint with the test result of the target use case, and determining the cause of the difference of the target use case;

[0025] The difference reason corresponding to the target use case is sent to the client.

[0026] In combination with the third aspect, in a first implementation of the third aspect, the embodiment of the present disclosure includes:

[0027] The method of matching the target feature fingerprint with an existing feature fingerprint recorded in a pre-stored fingerprint library by a pre-stored fingerprint matching algorithm to obtain an existing feature fingerprint matching the target feature fingerprint includes:

[0028] Calculate the similarity between the target feature fingerprint and each existing feature fingerprint in the fingerprint library by using the pre-stored fingerprint matching algorithm;

[0029] The existing feature fingerprint having the highest similarity to the target feature fingerprint is determined as the existing feature fingerprint matching the target feature fingerprint.

[0030] In combination with the third aspect and the first implementation manner of the third aspect, in the second implementation manner of the first aspect of the embodiment of the present disclosure, the comparing the output result corresponding to the matched existing feature fingerprint and the test result of the target use case to determine the cause of the difference of the target use case includes:

[0031] When the output result corresponding to the matched existing feature fingerprint is the same as the test result of the target use case, it is determined that the difference cause of the target use case is not an iteration defect;

[0032] When the output result corresponding to the matched existing feature fingerprint is different from the test result of the target use case, it is determined that the cause of the difference of the target use case is an iteration defect.

[0033] In combination with the third aspect and the above implementation of the third aspect, in a third implementation of the third aspect of the present disclosure, the method further includes:

[0034] Obtaining the matching similarity between the target feature fingerprint and an existing feature fingerprint that matches it;

[0035] Determining the credibility of the defect detected by the target use case based on the matching similarity and the cause of the difference between the target use case and the target use case;

[0036] Sending a prompt message to the client, wherein the prompt message includes the credibility of the defect detected by the target use case test.

[0037] In combination with the third aspect and the above implementation of the third aspect, in a fourth implementation of the third aspect of the present disclosure, the method further includes:

[0038] receiving a verification result sent by the client, the verification result including whether the difference reason of the target use case is that an iterative procedure of the map application has a valid defect or does not have a defect;

[0039] Recording the reason for the difference between the target feature fingerprint and the target use case in the verification result as new data in the fingerprint library;

[0040] The new data is obtained, and the pre-stored fingerprint matching algorithm is updated and iterated according to the new data.

[0041] In a fourth aspect, a data processing method is provided in an embodiment of the present disclosure.

[0042] Specifically, the data processing method includes:

[0043] Sending a test case analysis message of the map application to the server, wherein the test case analysis message is used to indicate the test case to be analyzed, so that the server can analyze the difference reason corresponding to the target case in which the test result of the test case is different from the expected result;

[0044] Receive the difference reason corresponding to the target use case sent by the server.

[0045] In combination with the fourth aspect, in a first implementation of the fourth aspect, the embodiment of the present disclosure includes:

[0046] Receiving and displaying the prompt information sent by the server, the prompt information including the credibility of the defect detected by the target use case test;

[0047] receiving a verification instruction input for the prompt information, the verification instruction being used to indicate a verification result, the verification result including whether the difference reason of the target use case is that the map application has a valid defect or does not have a defect;

[0048] The verification result is sent to the server so that the server records the reason for the difference between the target feature fingerprint and the target use case in the verification result into the fingerprint library.

[0049] In a fifth aspect, a data processing device is provided in an embodiment of the present disclosure.

[0050] Specifically, the data processing device includes:

[0051] A first acquisition module is configured to acquire initial information of a test case, wherein the initial information includes requirement data, description data, and input and output data; or the initial information also includes application data used to execute the test case;

[0052] A processing module is configured to perform structured processing on the initial information of the test case to obtain structured initial information;

[0053] The first extraction module is configured to perform feature extraction on the structured initial information to obtain a feature fingerprint of the test case.

[0054] In combination with the fifth aspect, in a first implementation of the fifth aspect of the embodiment of the present disclosure, the first processing module is configured as follows:

[0055] Performing word segmentation processing on the requirement data and description data of the test case to obtain requirement word segmentation and description word segmentation;

[0056] The demand segmentation words and the description segmentation words are matched with the segmentation words in the preset corpus data to obtain structured demand data and description data, wherein the segmentation words in the corpus data correspond to the structured data.

[0057] In a sixth aspect, a data processing device is provided in an embodiment of the present disclosure.

[0058] Specifically, the data processing device includes:

[0059] A second acquisition module is configured to acquire initial information of an existing use case and its corresponding output result;

[0060] A second extraction module is configured to perform feature extraction on the initial information of the existing use case, obtain the existing feature fingerprint of the existing use case, and generate the fingerprint library, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result;

[0061] The training module is configured to train the initial fingerprint matching algorithm based on the fingerprint library, adjust the parameters of the initial fingerprint matching algorithm, and obtain the pre-stored fingerprint matching algorithm.

[0062] In combination with the sixth aspect, in a first implementation manner of the sixth aspect of the embodiment of the present disclosure, the fingerprint matching algorithm includes a nearest neighbor NN algorithm, a K nearest neighbor KNN algorithm, or a weighted K nearest neighbor WKNN algorithm.

[0063] In a seventh aspect, a data processing device is provided in an embodiment of the present disclosure.

[0064] Specifically, the data processing device includes:

[0065] A first receiving module is configured to receive a test case analysis message of a map application sent by a client, wherein the test case analysis message is used to indicate a test case to be analyzed;

[0066] An execution module is configured to execute the test case to be analyzed to obtain a test result, and obtain initial information of a target case whose test result is different from an expected result;

[0067] A third extraction module is configured to perform feature extraction on the initial information of the target use case to obtain a target feature fingerprint of the target use case;

[0068] The matching module is configured to match the target feature fingerprint with an existing feature fingerprint recorded in a pre-stored fingerprint library through a pre-stored fingerprint matching algorithm to obtain an existing feature fingerprint that matches the target feature fingerprint, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result;

[0069] A comparison module is configured to compare the output result corresponding to the matched existing feature fingerprint with the test result of the target use case to determine the cause of the difference of the target use case;

[0070] The first sending module is configured to send the difference reason corresponding to the target use case to the client.

[0071] In combination with the seventh aspect, in a first implementation manner of the seventh aspect of the embodiment of the present disclosure, the matching module is configured as follows:

[0072] Calculate the similarity between the target feature fingerprint and each existing feature fingerprint in the fingerprint library by using the pre-stored fingerprint matching algorithm;

[0073] The existing feature fingerprint having the highest similarity to the target feature fingerprint is determined as the existing feature fingerprint matching the target feature fingerprint.

[0074] In combination with the seventh aspect and the first implementation of the seventh aspect, in the second implementation of the fifth aspect of the embodiment of the present disclosure, the comparison module is configured as follows:

[0075] When the output result corresponding to the matched existing feature fingerprint is the same as the test result of the target use case, it is determined that the difference cause of the target use case is not an iteration defect;

[0076] When the output result corresponding to the matched existing feature fingerprint is different from the test result of the target use case, it is determined that the cause of the difference of the target use case is an iteration defect.

[0077] In combination with the seventh aspect and the above implementation of the seventh aspect, in a third implementation of the seventh aspect of the present disclosure, the device further includes:

[0078] A third acquisition module is configured to acquire the matching similarity between the target feature fingerprint and an existing feature fingerprint that matches the target feature fingerprint;

[0079] A determination module configured to determine the credibility of the defect detected by the target use case based on the matching similarity and the difference reason of the target use case;

[0080] The second sending module is configured to send prompt information to the client, where the prompt information includes the credibility of the defect detected by the target use case test.

[0081] In combination with the seventh aspect and the foregoing implementation of the seventh aspect, in a fourth implementation of the seventh aspect of the present disclosure, the device further includes:

[0082] A second receiving module is configured to receive a verification result sent by the client, wherein the verification result includes whether the difference reason of the target use case is that the iterative procedure of the map application has a valid defect or does not have a defect;

[0083] A recording module configured to record the reason for the difference between the target feature fingerprint and the target use case in the verification result as new data in a fingerprint library;

[0084] The updating module is configured to obtain the new data and iterate the pre-stored fingerprint matching algorithm according to the new data.

[0085] In an eighth aspect, a data processing device is provided in an embodiment of the present disclosure.

[0086] Specifically, the data processing device includes:

[0087] A third sending module is configured to send a test case analysis message of the map application to the server, wherein the test case analysis message is used to indicate the test case to be analyzed, so that the server can analyze the difference reason corresponding to the target case in which the test result of the test case is different from the expected result;

[0088] The third receiving module is configured to receive the difference reason corresponding to the target use case sent by the server.

[0089] In combination with the eighth aspect, in a first implementation manner of the eighth aspect, the embodiment of the present disclosure comprises:

[0090] A fourth receiving module is configured to receive and display the prompt information sent by the server, wherein the prompt information includes the credibility of the defect detected by the target use case test;

[0091] A fifth receiving module is configured to receive a verification instruction input for the prompt information, the verification instruction is used to indicate a verification result, the verification result includes whether the difference reason of the target use case is that the map application has a valid defect or does not have a defect;

[0092] The fourth sending module is configured to send the verification result to the server, so that the server records the reason for the difference between the target feature fingerprint and the target use case in the verification result into the fingerprint library.

[0093] In a ninth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions that support a data processing device to execute the above-mentioned data processing method, and the processor is configured to execute the computer instructions stored in the memory. The data processing device may also include a communication interface for the data processing device to communicate with other devices or a communication network.

[0094] In a tenth aspect, an embodiment of the present disclosure provides a computer-readable storage medium for storing computer instructions used by a data processing device, which includes computer instructions involved in the data processing device for executing the above-mentioned data processing method.

[0095] In an eleventh aspect, an embodiment of the present disclosure provides a computer program product, comprising a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the method steps of the above-mentioned data processing method.

[0096] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0097] The above technical solution can perform feature extraction after structural processing of the initial information of the test case. This technical solution can extract features from all the information in the test case without manual participation, which can reduce labor costs. The feature extraction is automatic by machine and is not affected by human factors. Moreover, the features are extracted based on all the information of the test case. The features are more numerous and more standardized, which makes feature matching more accurate, and further makes the causes of differences determined based on the extracted features more accurate.

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

[0099] Other features, purposes and advantages of the embodiments of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0100] Figure 1A flow chart of a data processing method according to an embodiment of the present disclosure is shown.

[0101] Figure 2 A schematic block diagram showing the flow of a data processing method according to an embodiment of the present disclosure is shown.

[0102] Figure 3 A flow chart showing another data processing method according to an embodiment of the present disclosure.

[0103] Figure 4 A schematic block diagram showing the flow of another data processing method according to an embodiment of the present disclosure.

[0104] Figure 5 A flowchart of another data processing method according to an embodiment of the present disclosure is shown.

[0105] Figure 6 A schematic block diagram showing the flow of yet another data processing method according to an embodiment of the present disclosure.

[0106] Figure 7 A flowchart of yet another data processing method according to an embodiment of the present disclosure is shown.

[0107] Figure 8 A structural block diagram of a data processing device according to an embodiment of the present disclosure is shown.

[0108] Fig. 9 A structural block diagram of another data processing device according to an embodiment of the present disclosure is shown.

[0109] Fig.10 A structural block diagram of yet another data processing device according to an embodiment of the present disclosure is shown.

[0110] Fig.11 A structural block diagram of yet another data processing device according to an embodiment of the present disclosure is shown.

[0111] Fig.12 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0112] Fig.13 It is a structural diagram of a computer system suitable for implementing a data processing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0113] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0114] In the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof existing or being added.

[0115] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0116] The technical solution provided by the embodiment of the present disclosure can perform feature extraction after structural processing of the initial information of the test case. The technical solution can extract features from all the information in the test case without manual participation, which can reduce labor costs. The feature extraction is automatically extracted and maintained by the machine without manual influence. Moreover, the features are extracted based on all the information of the test case, with more and more standardized features, which will make feature matching more accurate, and further make the difference causes determined based on the extracted features more accurate.

[0117] Figure 1 A flow chart of a data processing method according to an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the data processing method includes the following steps S101-S103.

[0118] In step S101, initial information of a test case is obtained, the initial information including requirement data, description data, input and output data; or the initial information also includes application data used to execute the test case;

[0119] In step S102, the initial information of the test case is structured to obtain structured initial information;

[0120] In step S103, feature extraction is performed on the structured initial information to obtain a feature fingerprint of the test case.

[0121] In one embodiment of the present disclosure, the data processing method may be applicable to a computer, a computing device, an electronic device, a server, a service cluster, etc. that can perform data processing.

[0122] In one embodiment of the present disclosure, the test case refers to a description of a test task for a specific software product, reflecting the test plan, method, technology and strategy. It can be understood that the test case is a set of test inputs, execution conditions and expected results compiled for a specific goal, used to verify whether a specific software requirement is met. For example, the test case can be a test case for testing a map application.

[0123] In one embodiment of the present disclosure, the initial information of the test case includes the requirement data of the test case, the description data of the test case, and the input and output data of the test case; or, the initial information of the test case also includes the application data used to execute the test case. Among them, the requirement data of the test case refers to the text data describing the execution logic or execution strategy of the test case, the description data of the test case refers to the text data describing the specific input, expected output, and execution logic of the test case, and the input and output data of the target case refers to the input data of the test case and the output data after executing the test case. When executing the test case, sometimes the application data in the application is needed. At this time, the initial information of the test case includes the application data used to execute the test case. Of course, when executing the target case, the application data in the application is not needed. At this time, the initial information of the test case does not include the application data used to execute the test case. For example, when the test case is a case for a map application, the application data can be base map data.

[0124] For example, the test case is for a map application. Figure 1 When a test case is tested by the method of modifying the function of the electronic eye, the required data of the test case can be that in a high-speed scenario, the electronic eye on the pole in front of the tunnel is a fixed gun-type and short pole, and is made into a violation electronic eye; the description data of the test case can be that the road grade of the base map is high-speed, the identification data of the electronic eye is a pole, a fixed gun-type, and a short pole; the expected type of electronic eye to be made is violation; the input data of the test case can be the actual data of the electronic eye collected at the corresponding collection point, such as the recognition type of the electronic eye, the installation method, the appearance, the relationship with the road surface, the aspect ratio, the height of the pole, the shooting angle, the coordinate position, the separation point, the merging point, the extension into the intersection, whether the pole is on the courtyard wall, whether the horizontal bar extends into the courtyard wall, the access control, the toll channel, in front of the tunnel, etc.; the output data of the test case can be the execution of the test case The output results after production, such as whether the production is successful, the type of electronic eye generated if successful, etc.; the base map data refers to the relevant data of various facilities on the electronic map in the map application, such as basic road layer data: Chinese name, former name of the road, road grade, driving direction, road composition, road status, road type, vehicle traffic road type, road feature identification, road ownership, data source, average number of lanes, road paving status, whether long-term parking, whether occupying the road for business, actual traffic capacity, lane width, road width and other data; electronic eye layer data: electronic eye type, electronic eye type source, appearance characteristics, electronic eye shooting status, platform type, number of electronic eyes, aspect ratio, reference position, relationship with road surface position, relationship with intersection, scene category, passenger car speed limit, truck speed limit and so on.

[0125] In one embodiment of the present disclosure, in order to provide a more uniform and regular input for the feature extraction step and make the extracted features more accurate and standard, after obtaining the initial information of the test case, it is necessary to perform structured processing on the initial information of the test case to obtain structured initial information. The structuring mentioned here refers to quantitatively representing the information, and the information can be represented by symbols or a unified structure.

[0126] In this embodiment, if Figure 2 As shown, after obtaining the structured initial information, the feature extraction algorithm can be used to extract features from the structured initial information to obtain the feature fingerprint of the test case. Features are used to express the different and similar attributes between transactions. The feature fingerprint refers to a combination of several features, which is a nonlinear combination that accurately expresses the transaction. The initial information of the test case can be analyzed and quantified to extract various features in the target case information. These features are targeted in the analysis of the differentiation reasons. Like human fingerprints, they have different characteristics but are displayed in a regular pattern. Therefore, the various features extracted from the initial information of the test case can be recorded as feature fingerprints.

[0127] For example, the feature extraction algorithm can be to extract keywords from these structured test case information, count the frequency of these keywords, and use keywords whose frequency exceeds the preset value as features. Still taking the above test case as an example for map application, the extracted features can include road features (such as road type, speed limit value), scene category (such as tunnel), platform type (such as pole), appearance features (fixed gun type), pole height (such as short pole or high sense), electronic eye type (such as violation electronic eye), etc., hundreds of data feature values. The manually extracted features may only be able to extract the electronic eye type, platform type, and pole height that users are more concerned about. The present disclosure can extract all the features based on the entire information of the test case. Compared with the several features extracted manually, the features are more and more standard, which will make the feature matching more accurate, and then make the difference cause determined based on the extracted features more accurate.

[0128] In the above implementation, the initial information of the test case can be structured and then feature extracted. This technical solution can extract features from all the information in the test case without manual intervention, which can reduce labor costs. The feature extraction is automatically extracted and maintained by the machine without human influence. Moreover, the features are extracted based on all the information of the test case, with more and more standardized features, which will make feature matching more accurate, and thus make the cause of the difference determined based on the extracted features more accurate.

[0129] In one embodiment of the present disclosure, in the above data processing method, step S102 is to perform structured processing on the initial information of the test case to obtain a structured test case information part, which may include the following steps:

[0130] Performing word segmentation processing on the requirement data of the test case and the description data of the test case to obtain requirement word segmentation and description word segmentation;

[0131] The demand segmentation words and the description segmentation words are matched with the segmentation words in the preset corpus data to obtain structured demand data and description data, wherein the segmentation words in the corpus data correspond to the structured data.

[0132] In this implementation, the demand data and description data in the initial information are some text, such as Figure 2 As shown, after obtaining the initial information of the test case, the text can be segmented by a word segmentation algorithm, and the text can be divided into individual words to obtain demand words divided by the demand data and description words divided by the description data. The word segmentation algorithm can be a word segmentation algorithm based on string matching, a word segmentation algorithm based on understanding, or a word segmentation algorithm based on statistics. For example, it can be a HanLP (Han Language Processing) word segmentation algorithm.

[0133] Taking the above example, the requirement data of the test case is "In a high-speed scenario, the electronic eye on the pole in front of the tunnel is a fixed gun-type and short pole, which is made into an electronic eye for violations". After word segmentation, the following requirement segmentations can be obtained: high-speed, tunnel, pole, electronic eye, pole, fixed gun-type, short pole, and electronic eye for violations.

[0134] In this embodiment, if Figure 2 As shown, after obtaining the segmented words, these required segmented words can be matched with the segmented words in the preset corpus data. The matching here means that two segmented words with the same semantics are matched. For example, "short pole" can be matched with the segmented word "short pole" in the corpus data to obtain the structured data such as numbers or symbols corresponding to the segmented word "short pole" in the corpus data. For example, "short pole" corresponds to the number "0", and "tall pole" corresponds to the number "1".

[0135] It should be noted here that the input and output data and application data of the test case are structured data that can be recognized by the machine and do not need to be structured.

[0136] Figure 3 A flow chart showing another data processing method according to an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the data processing method includes the following steps S301-S303.

[0137] In step S301, initial information of an existing use case and its corresponding output result are obtained;

[0138] In step S302, feature extraction is performed on the initial information of the existing use case to obtain an existing feature fingerprint of the existing use case, and the fingerprint library is generated, in which the existing feature fingerprint and its corresponding output result are recorded;

[0139] In step S303, the initial fingerprint matching algorithm is trained based on the fingerprint library, and the parameters of the initial fingerprint matching algorithm are adjusted to obtain the pre-stored fingerprint matching algorithm.

[0140] In one embodiment of the present disclosure, the data processing method may be applicable to a service end such as a computer, a computing device, an electronic device, a server, a service cluster, etc. that can perform data processing.

[0141] In one embodiment of the present disclosure, the existing use cases may include historical test cases that have differences from expected results after being executed, and historical test cases that have no differences from expected results after being executed. These existing use cases are normal and defect-free use cases. The difference between their output results and expected results indicates that the difference is caused by normal iteration. The output result here refers to the processing result of each processing point when executing the test case, including whether the processing is successful or failed. For example, when the test case is a use case for making a violation electronic eye, its output result is to identify whether the violation electronic eye is successfully made at the location point where each violation electronic eye is to be made.

[0142] In one embodiment of the present disclosure, Figure 4 As shown, after obtaining the initial information of the existing use case, feature extraction can be performed on the initial information of the existing use case to obtain the existing feature fingerprint of the existing use case and form a fingerprint library; the specific extraction scheme can refer to the feature extraction method of the initial information of the test case in the above implementation, which will not be repeated here.

[0143] In a possible implementation, Figure 4 As shown, a part of the existing feature fingerprints can be randomly obtained from the fingerprint library as a training set, and another part of the existing feature fingerprints can be obtained as a verification set. There is no intersection between the training set and the verification set. Usually, the amount of data in the training set is larger than the amount of data in the verification set.

[0144] In a possible implementation, Figure 4As shown, the training set and the verification set can be used to train a fingerprint matching algorithm through a machine learning method. For example, the training set can be used to train the initial fingerprint matching algorithm, and the parameters of the initial fingerprint matching algorithm are continuously adjusted. After the adjustment is to a certain extent, the verification set can be used to test the matching success rate of the fingerprint matching algorithm after the adjustment parameters. If the success rate meets the requirement, the training is stopped, and the fingerprint matching algorithm after the adjustment parameters is stored as the pre-stored fingerprint matching algorithm to perform subsequent feature fingerprint matching. If the success rate does not meet the requirement, the training is continued and the parameters are adjusted until the matching success rate of the fingerprint matching algorithm after the adjustment parameters is tested by the verification set and meets the requirement.

[0145] In one embodiment of the present disclosure, the fingerprint matching algorithm includes a NN (Nearest Neighbor) algorithm, a KNN (K-Nearest Neighbor) algorithm, or a WKNN (Weighted K-Nearest Neighbors) algorithm.

[0146] Figure 5 A flowchart of another data processing method according to an embodiment of the present disclosure is shown. Figure 5 As shown, the data processing method includes the following steps S501-S506:

[0147] In step S501, a test case analysis message of a map application sent by a client is received, wherein the test case analysis message is used to indicate a test case to be analyzed;

[0148] In step S502, the test case to be analyzed is executed to obtain a test result, and initial information of a target case whose test result is different from an expected result is obtained;

[0149] In step S503, feature extraction is performed on the initial information of the target use case to obtain a target feature fingerprint of the target use case;

[0150] In step S504, the target feature fingerprint is matched with an existing feature fingerprint recorded in a pre-stored fingerprint library by a pre-stored fingerprint matching algorithm to obtain an existing feature fingerprint that matches the target feature fingerprint, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result;

[0151] In step S505, the output result corresponding to the matched existing feature fingerprint is compared with the test result of the target use case to determine the difference cause of the target use case;

[0152] In step S506, the difference reason corresponding to the target use case is sent to the client.

[0153] In one embodiment of the present disclosure, the data processing method may be applicable to a service end such as a computer, a computing device, an electronic device, a server, a service cluster, etc. that can perform data processing.

[0154] In one embodiment of the present disclosure, the client refers to a terminal used by a tester. The tester can input test case analysis instructions through the input device of the client, such as a keyboard or a touch screen. The test case analysis instructions are used to indicate the test cases to be analyzed. After the client receives the test case analysis instructions input by the tester, it can send a test case analysis message to the server.

[0155] In one embodiment of the present disclosure, a test case is a set of test inputs, execution conditions, and expected results compiled for a specific goal, which is used to verify whether a specific software requirement is met. The server receives a test case analysis instruction, executes the test case to obtain the test result of the test case, and if the test result is different from the expected result of the test case, the test case can be recorded as a target case. The initial information of the target case is the same as the initial information of the above test case, and also includes the target case's requirement data, the target case's description data, and the target case's input and output data; or, the target case's initial information also includes the application data used to execute the target case.

[0156] In one embodiment of the present disclosure, Figure 6 As shown, the above-mentioned solution for extracting features from the initial information of the test case can be referred to to extract features from the initial information of the target case to obtain the target feature fingerprint of the target case.

[0157] In one embodiment of the present disclosure, the pre-stored fingerprint matching algorithm can be trained based on the above scheme using a fingerprint library, and is an algorithm for calculating the similarity of feature fingerprints, which can be as follows: Figure 6 As shown, the fingerprint matching algorithm is used to match the target feature fingerprint with the existing feature fingerprints recorded in the pre-stored fingerprint library to obtain the existing feature fingerprint that matches the target feature fingerprint; the existing feature fingerprint that matches the target feature fingerprint mentioned here refers to the existing feature fingerprint that is most similar to the target feature fingerprint.

[0158] In one embodiment of the present disclosure, Figure 6As shown, the server can compare the output result corresponding to the matched existing feature fingerprint and the test result of the target use case to determine the cause of the difference of the target use case. If the output result of the matched existing feature fingerprint is similar to the test result of the target use case, since the existing feature fingerprint is the output result of a normal iteration, this indicates that the test result of the target use case is also the test result of a normal iteration, and the cause of the difference of the target use case is not an iteration defect; if the output result of the matched existing feature fingerprint is different from the test result of the target use case, since the existing feature fingerprint is the output result of a normal iteration, this indicates that the test result of the target use case is not a normal difference result, and the cause of the difference of the target use case is an iteration defect.

[0159] In one embodiment of the present disclosure, Figure 6 As shown, the server can send the difference reason corresponding to the target use case to the client, and the client can display the difference reason corresponding to the target use case on the user interface of the client. If the tester sees that the difference reason is the difference caused by normal iteration, he does not need to pay attention to the test case. If he sees that the difference reason is the difference caused by an iteration bug (defect), it indicates that an iteration bug has been tested. The tester can submit the bug to the R&D personnel, who will modify it.

[0160] In the above implementation, after receiving the test case analysis message of the map application sent by the client, the test case to be analyzed can be executed to obtain the test result and the target case information of the target case where the test result is different from the expected result can be obtained, and the target case information can be subjected to feature extraction to obtain the target feature fingerprint, and then the target feature fingerprint can be matched with the existing feature fingerprint recorded in the fingerprint library to obtain the existing feature fingerprint that is most similar to the target feature fingerprint. If the feature fingerprints of the two are similar, it means that the two test cases are similar. At this time, the output results of the two can be compared to automatically complete the differential analysis of the target case, saving human resources. The feature extraction is automatically extracted by the machine and is not affected by human factors. The output features are more and more standardized, which makes the subsequent feature fingerprint matching more accurate, and thus makes the determined cause of the difference more accurate.

[0161] In one embodiment of the present disclosure, the step S505, i.e., comparing the output result corresponding to the matched existing feature fingerprint with the test result of the target use case, and determining the cause of the difference of the target use case may include the following steps:

[0162] When the similarity between the output result corresponding to the matched existing feature fingerprint and the test result of the target use case exceeds a preset threshold, it is determined that the difference cause of the target use case is not an iteration defect;

[0163] When the similarity between the output result corresponding to the matched existing feature fingerprint and the test result of the target use case does not exceed a preset threshold, it is determined that the difference cause of the target use case is an iteration defect.

[0164] For example, assuming that the target use case is a test case for making an electronic eye for traffic violations on an electronic map, the test result after the execution of the target use case is that some production positions are not successfully made, which is different from the expected result that all production positions are successfully made. A matching existing use case is obtained through fingerprint feature matching. If the output result of the existing use case is that similar production positions are not successfully made, and the similarity of the two results exceeds the preset threshold, it means that some production positions will not be successfully made during normal iteration, and the target use case is not a defect. If the output result of the existing use case is that all production positions are successfully made, and the similarity of the two results does not exceed the preset threshold, it means that all production positions can be successfully made during normal iteration, and the target use case is a defect. There is a defect in the function of making electronic eyes for traffic violations. The tester can submit the bug to the R&D personnel, and the R&D personnel will modify the functional program of making electronic eyes for traffic violations.

[0165] Or, for example, assuming that the target use case is a test case for drawing prohibited information on an electronic map, the test result after the execution of the target use case is that some drawing positions are not drawn successfully, which is different from the expected result that all drawing positions are drawn successfully, and a matching existing use case is obtained through fingerprint feature matching. If the output result of the existing use case is that similar drawing positions are not drawn successfully, and the similarity of the two results exceeds a preset threshold, it indicates that some drawing positions will not be drawn successfully during normal iteration, and the target use case is not a defect. If the output result of the existing use case is that all production positions are drawn successfully, and the similarity of the two results does not exceed the preset threshold, it indicates that all drawing positions can be drawn successfully during normal iteration, and the target use case has a defect. The function of drawing prohibited information has a defect, and the tester can submit the bug to the R&D personnel, and the R&D personnel will modify the functional program of drawing prohibited information.

[0166] In one embodiment of the present disclosure, the step S504, i.e., the step of matching the target feature fingerprint with the existing feature fingerprints recorded in the pre-stored fingerprint library by a pre-stored fingerprint matching algorithm to obtain the existing feature fingerprint matching the target feature fingerprint, may further include the following steps:

[0167] Calculate the similarity between the target feature fingerprint and each existing feature fingerprint in the fingerprint library by using the pre-stored fingerprint matching algorithm;

[0168] The existing feature fingerprint having the highest similarity to the target feature fingerprint is determined as the existing feature fingerprint matching the target feature fingerprint.

[0169] In this embodiment, the input of the pre-stored fingerprint matching algorithm is the target feature fingerprint and an existing feature fingerprint in the fingerprint library, and the output is the similarity between the target feature fingerprint and the existing feature fingerprint. All existing feature fingerprints in the fingerprint library can be traversed, and the pre-stored fingerprint matching algorithm calculates the similarity between the target feature fingerprint and each existing feature fingerprint. After the traversal is completed, the existing feature fingerprint with the highest similarity to the target feature fingerprint is obtained, and the existing feature fingerprint with the highest similarity is determined as the existing feature fingerprint that matches the target feature fingerprint.

[0170] In one embodiment of the present disclosure, the fingerprint matching algorithm includes a NN (Nearest Neighbor) algorithm, a KNN (K-Nearest Neighbor) algorithm, or a WKNN (Weighted K-Nearest Neighbors) algorithm.

[0171] In one embodiment of the present disclosure, the method may further include the following steps:

[0172] Obtaining the matching similarity between the target feature fingerprint and an existing feature fingerprint that matches it;

[0173] Determine the credibility of the target use case testing a bug based on the matching similarity and the cause of the difference between the target use case and the target use case;

[0174] A prompt message is sent to the client, wherein the prompt message includes the credibility of the bug detected by the target use case, and is used to prompt the tester to manually verify the cause of the difference corresponding to the target use case.

[0175] In this embodiment, the similarity between the target feature fingerprint and the existing feature fingerprint that matches it can be calculated through the pre-stored fingerprint matching algorithm, and the difference cause corresponding to the target feature fingerprint can also be obtained, which is the difference cause of the matched existing feature fingerprint. When the difference cause is a normal difference caused by iteration, the higher the similarity, the higher the credibility that the difference is a normal difference caused by iteration, and the lower the credibility that the target case test has a defect. When the difference cause is a difference caused by an iterative defect, the higher the similarity, the higher the credibility that the difference is a difference caused by an iterative defect, and the higher the credibility that the target case test has a defect. The credibility of the target case test for a defect caused by an iterative defect is higher than the credibility of the target case test for a defect caused by an iterative defect.

[0176] In this embodiment, if Figure 6As shown, the server can directly output prompt information to the client, and the prompt information includes the credibility of the bug tested by the target use case, prompting the tester to manually verify the difference cause corresponding to the target use case. The tester can refer to the credibility to manually verify the difference cause corresponding to the target use case. If the difference cause is an iteration defect and the credibility is high, the tester will report it to the R&D personnel and change the program. Of course, if the difference cause is a difference caused by normal iteration and the credibility is high, the difference cause corresponding to the target feature fingerprint can be determined as a normal difference caused by iteration. In this way, it can assist manual verification of whether it is a difference caused by normal iteration under the condition of automatic machine judgment, making the differentiated analysis results more accurate.

[0177] It should be noted here that when the credibility of the defect tested in the target use case is less than the preset credibility value, indicating that the credibility of the defect tested in the target use case is not high and it is difficult to judge whether it is a valid defect, a prompt message is sent to the client to prompt the tester to manually verify the cause of the difference corresponding to the target use case.

[0178] In one embodiment of the present disclosure, the above method may further include the following steps:

[0179] receiving a verification result sent by the client, the verification result including whether the difference reason of the target use case is that an iterative procedure of the map application has a valid defect or does not have a defect;

[0180] Recording the reason for the difference between the target feature fingerprint and the target use case in the verification result as new data in the fingerprint library;

[0181] The new data is obtained, and the pre-stored fingerprint matching algorithm is updated and iterated according to the new data.

[0182] In this implementation, the client can display a prompt message to prompt the tester to manually verify the difference reason corresponding to the target use case. The tester can manually verify and input the verification result. After receiving the verification result input by the tester, the client can send the appropriate result to the server. The server can update the target feature fingerprint and the difference reason in the verification result as new data to the fingerprint library to achieve the update of the fingerprint library. Here, the new data can be cached first and updated to the fingerprint library at a regular time.

[0183] In this embodiment, after the new data are updated in the fingerprint library at regular intervals, the new data in the fingerprint library can be obtained, and then the parameters of the pre-stored fingerprint matching algorithm are updated and iterated using the new data, so that the fingerprint library and the fingerprint matching algorithm are updated, so that the subsequent determination of the cause of the difference is more accurate. The automatic extraction of fingerprint features and the automatic update of the fingerprint matching algorithm can realize the automatic maintenance of features and various weight parameters.

[0184] Figure 7 A flowchart of another data processing method according to an embodiment of the present disclosure is shown as follows: Figure 7 As shown, the data processing method includes the following steps S701-S702:

[0185] In step S701, a test case analysis message of a map application is sent to a server, wherein the test case analysis message is used to indicate a test case to be analyzed so that the server can analyze the difference cause corresponding to a target test case in which a test result of the test case is different from an expected result;

[0186] In step S702, the difference reason corresponding to the target use case sent by the server is received.

[0187] In one embodiment of the present disclosure, the data processing method may be applicable to clients such as computers, computing devices, electronic devices, etc. that can perform data processing.

[0188] In one embodiment of the present disclosure, the client refers to a terminal used by a tester. The tester can input a test case analysis instruction through an input device of the client, such as a keyboard or a touch screen. The test case analysis instruction is used to indicate the test case to be analyzed. After the client receives the test case analysis instruction input by the tester, it can send a test case analysis message to the electronic device. The test case analysis message is used to indicate the test case to be analyzed, so that the server performs steps S501 to S506, automatically analyzes and obtains the difference reason corresponding to the target case in which the test result in the test case is different from the expected result, and then sends the difference reason corresponding to the target case to the client, and the client can display the difference reason for the target case. It should be noted here that the client can display the target case information and difference reason of the target case.

[0189] In this embodiment, the server can automatically complete the differential analysis of the target use case, saving human resources.

[0190] In one embodiment of the present disclosure, the data processing method may further include the following steps:

[0191] Receive and display the prompt information sent by the server, wherein the prompt information includes the credibility of the defect detected by the target use case test, and is used to prompt the tester to manually verify the cause of the difference corresponding to the target use case;

[0192] receiving a verification instruction input for the prompt information, the verification instruction being used to indicate a verification result, the verification result including whether the difference reason of the target use case is that the map application has a valid defect or does not have a defect;

[0193] The verification result is sent to the server so that the server records the reason for the difference between the target feature fingerprint and the target use case in the verification result into the fingerprint library.

[0194] In this embodiment, the client can receive and display the prompt information sent by the server, prompting the tester to manually verify the difference reason corresponding to the target use case. The tester can manually verify and then enter the verification instruction. For example, the client can display a prompt box, and the prompt box displays the prompt text information "Is the difference reason corresponding to the target use case an iterative bug?" and a "Yes" button and a "No" button. If the tester clicks the "Yes" button, a verification instruction indicating that the difference reason for the target use case is a valid bug in the map application is entered. If the tester clicks the "No" button, a verification instruction indicating that the difference reason for the target use case is that there is no bug in the map application is entered. After receiving the verification result entered by the tester, the client can send the appropriate result to the server. The server can update the target feature fingerprint and the difference reason in the verification result as new data to the fingerprint library to update the fingerprint library. Here, the new data can be cached first, and the new data can be updated to the fingerprint library at regular intervals.

[0195] In this embodiment, after the new data are updated in the fingerprint library at regular intervals, the new data in the fingerprint library can be obtained, and then the parameters of the pre-stored fingerprint matching algorithm are updated and iterated using the new data, so that the fingerprint library and the fingerprint matching algorithm are updated, so that the subsequent determination of the cause of the difference is more accurate. The automatic extraction of fingerprint features and the automatic update of the fingerprint matching algorithm can realize the automatic maintenance of features and various weight parameters.

[0196] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.

[0197] Figure 8 FIG. 1 is a block diagram showing a data processing device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 8 As shown, the data processing device includes:

[0198] The first acquisition module 801 is configured to acquire initial information of a test case, wherein the initial information includes requirement data, description data, input and output data; or the initial information also includes application data used to execute the test case;

[0199] The processing module 802 is configured to perform structured processing on the initial information of the test case to obtain structured initial information;

[0200] The first extraction module 803 is configured to perform feature extraction on the structured initial information to obtain a feature fingerprint of the test case.

[0201] In one embodiment of the present disclosure, the processing module 802 is configured as follows:

[0202] Performing word segmentation processing on the requirement data and description data of the test case to obtain requirement word segmentation and description word segmentation;

[0203] The demand segmentation words and the description segmentation words are matched with the segmentation words in the preset corpus data to obtain structured demand data and description data, wherein the segmentation words in the corpus data correspond to the structured data.

[0204] Fig. 9 FIG. 2 shows a structural block diagram of another data processing device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig. 9 As shown, the data processing device includes:

[0205] The second acquisition module 901 is configured to acquire initial information of an existing use case and its corresponding output result;

[0206] The second extraction module 902 is configured to perform feature extraction on the initial information of the existing use case, obtain the existing feature fingerprint of the existing use case, and generate the fingerprint library, in which the existing feature fingerprint and its corresponding output result are recorded;

[0207] The training module 903 is configured to train the initial fingerprint matching algorithm based on the fingerprint library, adjust the parameters of the initial fingerprint matching algorithm, and obtain the pre-stored fingerprint matching algorithm.

[0208] In one embodiment of the present disclosure, the fingerprint matching algorithm includes a nearest neighbor NN algorithm, a K nearest neighbor KNN algorithm, or a weighted K nearest neighbor WKNN algorithm.

[0209] Fig.10 FIG. 2 shows a structural block diagram of another data processing device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig.10 As shown, the data processing device includes:

[0210] The first receiving module 1001 is configured to receive a test case analysis message of a map application sent by a client, wherein the test case analysis message is used to indicate a test case to be analyzed;

[0211] An execution module 1002 is configured to execute the test case to be analyzed to obtain a test result, and obtain initial information of a target case whose test result is different from an expected result;

[0212] The third extraction module 1003 is configured to perform feature extraction on the initial information of the target use case to obtain a target feature fingerprint of the target use case;

[0213] The matching module 1004 is configured to match the target feature fingerprint with an existing feature fingerprint recorded in a pre-stored fingerprint library through a pre-stored fingerprint matching algorithm to obtain an existing feature fingerprint that matches the target feature fingerprint, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result;

[0214] A comparison module 1005 is configured to compare the output result corresponding to the matched existing feature fingerprint with the test result of the target use case to determine the difference cause of the target use case;

[0215] The first sending module 1006 is configured to send the difference reason corresponding to the target use case to the client.

[0216] In one embodiment of the present disclosure, the matching module 1004 is configured as follows:

[0217] Calculate the similarity between the target feature fingerprint and each existing feature fingerprint in the fingerprint library by using the pre-stored fingerprint matching algorithm;

[0218] The existing feature fingerprint having the highest similarity to the target feature fingerprint is determined as the existing feature fingerprint matching the target feature fingerprint.

[0219] In one embodiment of the present disclosure, the comparison module 1005 is configured as follows:

[0220] When the output result corresponding to the matched existing feature fingerprint is the same as the test result of the target use case, it is determined that the difference cause of the target use case is not an iteration defect;

[0221] When the output result corresponding to the matched existing feature fingerprint is different from the test result of the target use case, it is determined that the cause of the difference of the target use case is an iteration defect.

[0222] In one embodiment of the present disclosure, the device further comprises:

[0223] A third acquisition module is configured to acquire the matching similarity between the target feature fingerprint and an existing feature fingerprint that matches the target feature fingerprint;

[0224] A determination module configured to determine the credibility of the defect detected by the target use case based on the matching similarity and the difference reason of the target use case;

[0225] The second sending module is configured to send prompt information to the client, where the prompt information includes the credibility of the defect detected by the target use case test.

[0226] In one embodiment of the present disclosure, the device further comprises:

[0227] A second receiving module is configured to receive a verification result sent by the client, wherein the verification result includes whether the difference reason of the target use case is that the iterative procedure of the map application has a valid defect or does not have a defect;

[0228] A recording module configured to record the reason for the difference between the target feature fingerprint and the target use case in the verification result as new data in a fingerprint library;

[0229] The updating module is configured to obtain the new data and iterate the pre-stored fingerprint matching algorithm according to the new data.

[0230] The data processing device in this embodiment corresponds to the above-mentioned data processing method. For specific details, please refer to the above-mentioned description of the data processing method, which will not be repeated here.

[0231] Fig.11 FIG. 2 shows a structural block diagram of another data processing device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Fig.11 As shown, the data processing device includes:

[0232] The third sending module 1101 is configured to send a test case analysis message of the map application to the server, wherein the test case analysis message is used to indicate the test case to be analyzed, so that the server can analyze the difference reason corresponding to the target case in which the test result of the test case is different from the expected result;

[0233] The third receiving module 1102 is configured to receive the difference reason corresponding to the target use case sent by the server.

[0234] In one embodiment of the present disclosure, the device further comprises:

[0235] A fourth receiving module is configured to receive and display the prompt information sent by the server, wherein the prompt information includes the credibility of the defect detected by the target use case test;

[0236] A fifth receiving module is configured to receive a verification instruction input for the prompt information, the verification instruction is used to indicate a verification result, the verification result includes whether the difference reason of the target use case is that the map application has a valid defect or does not have a defect;

[0237] The fourth sending module is configured to send the verification result to the server, so that the server records the reason for the difference between the target feature fingerprint and the target use case in the verification result into the fingerprint library.

[0238] The present disclosure also discloses an electronic device, Fig.12 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Fig.12 As shown, the electronic device 1200 includes a memory 1201 and a processor 1202; wherein,

[0239] The memory 1201 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 1202 to implement the above method steps.

[0240] Fig.13 It is a structural diagram of a computer system suitable for implementing a data processing method according to an embodiment of the present disclosure.

[0241] like Fig.13 As shown, the computer system 1300 includes a processing unit 1301, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 1302 or a program loaded from a storage part 1308 into a random access memory (RAM) 1303. In the RAM 1303, various programs and data required for the operation of the system 1300 are also stored. The processing unit 1301, the ROM 1302, and the RAM 1303 are connected to each other via a bus 1304. An input / output (I / O) interface 1305 is also connected to the bus 1304.

[0242] The following components are connected to the I / O interface 1305: an input part 1306 including a keyboard, a mouse, etc.; an output part 1307 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage part 1308 including a hard disk, etc.; and a communication part 1309 including a network interface card such as a LAN card, a modem, etc. The communication part 1309 performs communication processing via a network such as the Internet. The drive 1310 is also connected to the I / O interface 1305 as needed. A removable medium 1311, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1310 as needed, so that the computer program read therefrom is installed into the storage part 1308 as needed. Among them, the processing unit 1301 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.

[0243] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the data processing method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1309, and / or installed from a removable medium 1311.

[0244] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the road map or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a different order from the order marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0245] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0246] As another aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present disclosure.

[0247] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A data processing method, comprising: Receiving a test case analysis message of a map application sent by a client, wherein the test case analysis message is used to indicate a test case to be analyzed; Execute the test case to be analyzed to obtain a test result, and obtain initial information of a target case whose test result is different from an expected result, wherein the initial information includes requirement data, description data, and input and output data; or, the initial information also includes application data used to execute the target case; Extracting features from the initial information of the target use case to obtain a target feature fingerprint of the target use case; By using a pre-stored fingerprint matching algorithm, the target feature fingerprint is matched with an existing feature fingerprint recorded in a pre-stored fingerprint library to obtain an existing feature fingerprint that matches the target feature fingerprint, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result; Compare the output result corresponding to the matched existing feature fingerprint and the test result of the target use case to determine the difference cause of the target use case, wherein, when the similarity between the output result corresponding to the matched existing feature fingerprint and the test result of the target use case exceeds a preset threshold, it is determined that the difference cause of the target use case is not an iteration defect; when the similarity between the output result corresponding to the matched existing feature fingerprint and the test result of the target use case does not exceed the preset threshold, it is determined that the difference cause of the target use case is an iteration defect; The difference reason corresponding to the target use case is sent to the client.

2. The method according to claim 1, wherein: The extracting features of the initial information of the target use case to obtain a target feature fingerprint of the target use case includes: Structuring the initial information of the target use case to obtain structured initial information; Feature extraction is performed on the structured initial information to obtain a target feature fingerprint of the target use case.

3. The method according to claim 2, wherein: The step of performing structural processing on the initial information of the target use case to obtain structured initial information includes: Performing word segmentation processing on the requirement data and description data of the target use case to obtain requirement word segmentation and description word segmentation; The demand segmentation words and the description segmentation words are matched with the segmentation words in the preset corpus data to obtain structured demand data and description data, wherein the segmentation words in the corpus data correspond to the structured data.

4. The method according to claim 1, wherein: The method further comprises: Obtain the initial information of existing use cases and their corresponding output results; Extracting features from the initial information of the existing use case, obtaining the existing feature fingerprint of the existing use case, and generating a fingerprint library; Based on the fingerprint library, an initial fingerprint matching algorithm is trained, and parameters of the initial fingerprint matching algorithm are adjusted to obtain a pre-stored fingerprint matching algorithm.

5. The method according to claim 4, wherein: The fingerprint matching algorithm includes a nearest neighbor NN algorithm, a K nearest neighbor KNN algorithm, or a weighted K nearest neighbor WKNN algorithm.

6. The method according to claim 1, wherein the target feature fingerprint is matched with an existing feature fingerprint recorded in a pre-stored fingerprint library by a pre-stored fingerprint matching algorithm to obtain an existing feature fingerprint that matches the target feature fingerprint, comprising: Calculate the similarity between the target feature fingerprint and each existing feature fingerprint in the fingerprint library by using the pre-stored fingerprint matching algorithm; The existing feature fingerprint having the highest similarity to the target feature fingerprint is determined as the existing feature fingerprint matching the target feature fingerprint.

7. The method according to claim 1, wherein: The method further comprises: Obtaining the matching similarity between the target feature fingerprint and an existing feature fingerprint that matches it; Determining the credibility of the defect detected by the target use case based on the matching similarity and the cause of the difference between the target use case and the target use case; Sending a prompt message to the client, wherein the prompt message includes the credibility of the defect detected by the target use case test.

8. The method according to claim 7, wherein: The method further comprises: receiving a verification result sent by the client, the verification result including whether the difference reason of the target use case is that an iterative procedure of the map application has a valid defect or does not have a defect; Recording the reason for the difference between the target feature fingerprint and the target use case in the verification result as new data in the fingerprint library; The new data is obtained, and the pre-stored fingerprint matching algorithm is updated and iterated according to the new data.

9. A data processing method, comprising: Sending a test case analysis message of a map application to a server, wherein the test case analysis message is used to indicate a test case to be analyzed so that the server can analyze the difference cause corresponding to a target case where the test result in the test case is different from the expected result, wherein the server analyzes the difference cause corresponding to a target case where the test result in the test case is different from the expected result, including executing the test case to be analyzed to obtain the test result, and obtaining initial information of the target case where the test result is different from the expected result, wherein the initial information includes requirement data, description data, and input and output data; or, the initial information also includes application data used to execute the target case; performing feature extraction on the initial information of the target case to obtain a target feature fingerprint of the target case; By means of a pre-stored fingerprint matching algorithm, the target feature fingerprint is matched with an existing feature fingerprint recorded in a pre-stored fingerprint library to obtain an existing feature fingerprint that matches the target feature fingerprint, wherein the fingerprint library records the existing feature fingerprint and its corresponding output result; the output result corresponding to the matched existing feature fingerprint is compared with the test result of the target use case to determine the difference cause of the target use case; when the similarity between the output result corresponding to the matched existing feature fingerprint and the test result of the target use case exceeds a preset threshold, it is determined that the difference cause of the target use case is not an iteration defect; when the similarity between the output result corresponding to the matched existing feature fingerprint and the test result of the target use case does not exceed the preset threshold, it is determined that the difference cause of the target use case is an iteration defect; Receive the difference reason corresponding to the target use case sent by the server.

10. The method according to claim 9, wherein: include: Receiving and displaying the prompt information sent by the server, the prompt information including the credibility of the defect detected by the target use case test; receiving a verification instruction input for the prompt information, the verification instruction being used to indicate a verification result, the verification result including whether the difference reason of the target use case is that the map application has a valid defect or does not have a defect; The verification result is sent to the server so that the server records the reason for the difference between the target feature fingerprint and the target use case in the verification result into the fingerprint library.

11. An electronic device, characterized in that: The method comprises a memory and at least one processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the at least one processor to implement the method steps described in any one of claims 1 to 10.

12. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method steps described in any one of claims 1 to 10 are implemented.

13. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the method steps described in any one of claims 1 to 10 are implemented.