Data processing method, tool, storage medium and computer terminal
By obtaining and generating test records and data flow networks of functional modules, the problem of low test accuracy in code function testing is solved, and clearer data flow monitoring and exception handling are achieved.
Patent Information
- Application Number
- CN202210325658.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-03-30
AI Technical Summary
In code function testing, it is difficult to build a panoramic view of the circulation of test content, resulting in unexpected situations in which test data flows in the function, thereby reducing the accuracy of the test.
By obtaining the first test records of multiple functional modules corresponding to the data to be tested, a first data flow network is generated to represent the flow relationship of data flowing through the multiple functional modules.
The purpose of improving test accuracy is achieved. By constructing a panoramic view of test content circulation, the data flow relationship of multiple functional modules is clearly shown, and abnormal situations are monitored and handled in a timely manner.
Smart Images

Figure CN114860571B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of test data, and in particular to a data processing method, tool, storage medium and computer terminal. Background Art
[0002] Currently, when performing code function testing, the data return content after the test coverage can be obtained, but it is difficult to build a panoramic picture of the flow of test content, which may cause unexpected situations when the test data flows in the function, resulting in low accuracy of code function testing.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a data processing method, a tool, a storage medium and a computer terminal to at least solve the technical problem of low test accuracy of code functions in the related art.
[0005] According to one aspect of an embodiment of the present invention, there is provided a data processing method, comprising: obtaining multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; obtaining first test records of the multiple functional modules through a target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested; based on the first test record, generating a first data flow network corresponding to the data to be tested, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the multiple functional modules.
[0006] According to another aspect of an embodiment of the present invention, a data processing method is also provided, including: displaying data to be tested in a test interface, wherein the data to be tested corresponds to multiple functional modules, and different functional modules are used to execute different functions of the data to be tested; when a target touch operation is sensed in the test interface, displaying a first data flow network corresponding to the data to be tested in the test interface, wherein the first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules, the first data flow network is generated based on first test records of multiple functional modules, the first test records are obtained through the target section, and the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested.
[0007] According to another aspect of an embodiment of the present application, a data processing tool is also provided, including: a data input module, used to obtain multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; a data recording module, used to obtain first test records of multiple functional modules through a target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested; a network generation module, used to generate a first data flow network corresponding to the data to be tested based on the first test record, wherein the first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules.
[0008] According to another aspect of an embodiment of the present application, a storage medium is further provided, the storage medium including a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned data processing method.
[0009] According to another aspect of an embodiment of the present application, a computer terminal is further provided, including: a processor and a memory, wherein the processor is used to run a program stored in the memory, wherein the above-mentioned data processing method is executed when the program is run.
[0010] In the embodiment of the present application, firstly, a plurality of functional modules corresponding to the data to be tested are obtained, wherein different functional modules are used to execute different functions of the data to be tested; the first test records of the plurality of functional modules are obtained through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested; based on the first test record, a first data flow network corresponding to the data to be tested is generated, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the plurality of functional modules, thereby achieving the purpose of improving the test accuracy. It is easy to notice that, since the first test records of the plurality of functional modules can be obtained according to the target section, a panoramic view of the flow of the test content can be constructed, so that the data flow relationship of the plurality of functional modules can be clearly shown, so that the test process can be monitored according to the data flow relationship, and abnormal situations can be handled as soon as possible when they occur, thereby improving the test accuracy, and further solving the technical problem of low test accuracy of code functions in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0012] Figure 1 is a schematic diagram of adding a pre-preparation module according to an embodiment of the present application;
[0013] Figure 2is a hardware structure block diagram of a computer terminal (or mobile device) for implementing a data processing method according to an embodiment of the present application;
[0014] Figure 3 is a flow chart of a data processing method according to an embodiment of the present application;
[0015] Figure 4 is a schematic diagram of monitoring data flow according to an embodiment of the present application;
[0016] Figure 5 is a schematic diagram of another monitoring data flow according to an embodiment of the present application;
[0017] Figure 6 is a schematic diagram of monitoring data flow after adding a preprocessing module according to an embodiment of the present application;
[0018] Figure 7 is a flow chart of another data processing method according to an embodiment of the present application;
[0019] Figure 8 is a schematic diagram of a data processing tool according to an embodiment of the present application;
[0020] Fig. 9 is a schematic diagram of another data processing tool according to an embodiment of the present application;
[0021] Fig.10 It is a structural block diagram of a computer terminal according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0025] A virtual object (mock object) is a testing method that replaces an object that is difficult to construct or obtain during the test with a custom virtual object, where the virtual object is the mock object.
[0026] Aspects are a technology that achieves unified maintenance of program functions through pre-compilation and dynamic proxy during runtime. This technology can achieve dynamic isolation and enhancement of task logic, reduce the coupling of task logic, and provide reusability.
[0027] At present, the test code can decompose the project into independent functional modules for testing, ensuring that the capabilities provided by a single functional module are stable. However, when performing integration testing between functional modules, it is not necessarily guaranteed that the functions meet expectations. Most tests use boundary value analysis to select input and output values, because in a large amount of test statistical data, many programming errors occur at the boundary of the input definition domain and the output value domain. Therefore, for scenarios in the middle area of the input and output range that can only obtain a small test return rate, testers generally do not test. Therefore, this area will become a test blind spot.
[0028] Problems that cannot be reflected locally may be exposed in the global scenario. When testing a single interface, the boundary value of the parameter is usually covered. However, in the global environment, the boundary value of a single interface may not be the special value of the global environment. On the contrary, the boundary value in the global environment may not be tested during the test.
[0029] For example, there are currently two functional modules, an input module, and a calculation module. The input module requests field a to obtain a user input content, and then the calculation module divides field a by 10 and outputs the calculation result. Generally, the boundary value 0 is used as a test. When this value is used as a test, a higher test return rate can be obtained. However, if a pre-preparation module is added between the input module and the calculation module, and the pre-preparation module increases field a by 1, then the previously written test will no longer be applicable to the calculation module. At this time, if the same input field a is still used to test the input module and the calculation module, it can be found that the global boundary value has changed from 0 to -1. Figure 1 A schematic diagram of adding a pre-prepared module is shown below. Figure 1 As shown, the original program module includes an output module, a calculation module and an output module, wherein the input value of the input module is a, the calculation module can assign a which is divisible by 10 to the output b, and the output module can output the value b. However, due to the addition of the pre-preparation module, the field a is increased by 1, causing the global boundary value to change from 0 to -1.
[0030] After being processed by the pre-prepared module, the test interface is still in normal operation, but the data flowing in the middle has changed. Usually, if you only care about input and output, it is difficult to find this problem, so the test results will be less accurate. However, with the use of aspects, such pre-prepared modules can be seen everywhere. The impact of adding pre-prepared modules is very far-reaching. Whether it affects an unknown small module or the entire module, it will cause the robustness of the program to decline, resulting in lower accuracy of the test results.
[0031] In order to solve the above problems, the present application provides a data processing method and proposes a monitoring of intermediate processes and intermediate data. Specifically, the aspect technology can be used to monitor all computing nodes, record the original values, and output the computing network. For more complex programs, the corresponding structure will be clearer, so that each module can be tested more accurately.
[0032] Example 1
[0033] According to an embodiment of the present invention, a data processing method embodiment is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing tool. Figure 2 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a data processing method. Figure 2 As shown, the computer terminal 10 (or mobile device 10) may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to processing tools such as microprocessors MCU or programmable logic devices FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 2 The structure shown is only for illustration and does not limit the structure of the electronic tool. Figure 2 More or fewer components as shown, or with Figure 2 Different configurations shown.
[0035] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0036] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage tools corresponding to the data processing method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned data processing method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage tools, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The transmission tool 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission tool 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission tool 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0038] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0039] It should be noted that, in some optional embodiments, the above Figure 2 The computer device (or mobile device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 2 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or mobile device).
[0040] Under the above operating environment, this application provides Figure 3 The data processing method shown. Figure 3 is a flow chart of a data processing method according to an embodiment of the present invention.
[0041] Step S302: obtaining multiple functional modules corresponding to the data to be tested.
[0042] Among them, different functional modules are used to execute different functions of the data to be tested.
[0043] The above-mentioned multiple functional modules may include but are not limited to an acquisition module, an input module, a calculation module, and an output module.
[0044] In an optional embodiment, when testing the data to be tested, the data to be tested can be decomposed into independent functional modules for testing to ensure that the capabilities provided to the outside by a single functional module are stable. After obtaining multiple functional modules corresponding to the data to be tested, the data in the functional modules can be recorded in a slice manner to monitor the data flow relationship between the multiple functional modules, so as to adjust the input data according to the data flow relationship, thereby improving the accuracy of the test.
[0045] Step S304: obtaining first test records of multiple functional modules through the target section.
[0046] The first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested.
[0047] The above-mentioned target aspect can maintain multiple functional modules corresponding to the data to be tested by pre-compilation and dynamic proxy at runtime.
[0048] The first test record mentioned above may be data of each functional module during the process of testing the data to be tested, time points at which data flows through multiple functional modules, program path records, and input and output records.
[0049] In an optional embodiment, during the process of testing multiple functional modules, the first test records of the multiple functional modules can be obtained through the target section, so as to generate a first data flow network corresponding to the data to be tested based on the first test record. Through the first data flow network, all flow environments can be linked together to facilitate monitoring of the test process. When abnormalities are found in the data, timely adjustments can be made, thereby improving the accuracy of the test.
[0050] Step S306: Generate a first data flow network corresponding to the data to be tested based on the first test record.
[0051] The first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules.
[0052] In an optional embodiment, a first data flow network corresponding to the data to be tested can be generated according to the first test record. The data changes in each functional module can be clearly understood through the first data flow network, so that it can be inferred whether a pre-preparation module has been added. The pre-preparation module will cause the data of the intermediate nodes of multiple functional modules to change, which may affect the functional modules in the target project. Therefore, the boundary value of the pre-preparation module can be determined through the first data flow network, and the boundary value required to be added to the upstream module can be inferred according to the test record, wherein the boundary value refers to the dividing point between valid data and invalid data. In this way, the data in the test process can be effectively monitored, thereby improving the test accuracy.
[0053] Through the above steps, firstly, a plurality of functional modules corresponding to the data to be tested are obtained, wherein different functional modules are used to execute different functions of the data to be tested; the first test records of the plurality of functional modules are obtained through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested; based on the first test record, a first data flow network corresponding to the data to be tested is generated, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the plurality of functional modules, thereby achieving the purpose of improving the test accuracy. It is easy to notice that, since the first test records of the plurality of functional modules can be obtained according to the target section, a panoramic view of the flow of the test content can be constructed, so that the data flow relationship of the plurality of functional modules can be clearly shown, so that the test process can be monitored according to the data flow relationship, and abnormal situations can be handled as soon as possible when they occur, thereby improving the test accuracy, and further solving the technical problem of low test accuracy of code functions in related technologies.
[0054] In the above embodiment of the present application, obtaining the first test record of multiple functional modules through the target section includes: obtaining the target record of the target section point output contained in the target section, wherein the target record includes: acquisition data and acquisition time; based on the acquisition data, determining the data flowing through each functional module; based on the acquisition time, determining the execution order of multiple functional modules; based on the data flowing through each functional module and the execution order, generating a first data flow network.
[0055] In an optional embodiment, during the test of the data to be tested, the collected data and collection time of the output of the target section included in the target section can be obtained, wherein the collected data can be the data flowing from the previous module to the next module, and the collection time can be the time when the data flowing from the previous module to the next module is collected. The execution order of multiple functional modules can be determined through the collection time, that is, the flow direction of the data can be determined, so that a first data flow network can be generated according to the data of the functional modules and the flow direction of the data.
[0056] Figure 4 is a schematic diagram of monitoring data flow according to an embodiment of the present application, such as Figure 4As shown, the input value of the output module is a, where {input: 0, output: 0}; the calculation module can assign a divisible by 10 to the output b, where {input: 1, output: 0.1}; the output module can output the value b, where {input: 0.1, output: 0.1}. If there is a pre-preparation module between the input module and the calculation module, the pre-preparation module is a=a+1, where {input: 1, output: 1}. By recording the data of the functional module and the flow of the data, the first data flow network in the test process can be generated. The data in the test process can be monitored through the first data flow network, and when the data is abnormal, the data can be adjusted in time, thereby improving the accuracy of the test.
[0057] In the above embodiment of the present application, determining the execution order of multiple functional modules based on the acquisition time includes: obtaining data flow rules of the multiple functional modules; and determining the execution order of the multiple functional modules based on the acquisition time and the data flow rules.
[0058] The above data flow rules may be preset.
[0059] In an optional embodiment, flow rules of multiple functional modules can be obtained so that the flow paths of the multiple functional modules can be determined according to the flow rules, and the relationship between the previous module and the next module can be determined according to the flow path. When data flows from the previous module to the next module, the data can be collected and the collection time of the data can be obtained. The execution order of the multiple functional modules can be determined according to the collection time and the data flow rules.
[0060] In the above embodiment of the present application, obtaining multiple functional modules corresponding to the data to be tested includes: dividing the data to be tested according to the executed functions to obtain multiple functional modules.
[0061] In an optional embodiment, the data to be tested may be automatically segmented according to the executed functions to obtain multiple functional modules. Optionally, the data to be tested may be automatically segmented by a testing tool.
[0062] In the above embodiment of the present application, the method also includes: obtaining a second test record, wherein the second test record is used to characterize the data and flow direction flowing through each functional module in the historical test of multiple functional modules; comparing the first test record with the second test record to obtain a test result of the data to be tested, wherein the test result is used to characterize whether the test of the data to be tested is successful.
[0063] The second test record mentioned above may be the data and flow direction flowing through each functional module in the last or earlier historical test of the multiple functional modules.
[0064] In an optional embodiment, a second test record can be obtained, and the first test record can be compared with the second test record. If the two test records are different, it means that the test process may have changed, for example, a preprocessing module may be added. At this time, the adjustment range of the boundary value to be used by the calculation module can be obtained based on the reverse calculation from downstream to upstream of the first data flow network. If the two test records are the same, it means that no changes have occurred in the test process, that is, it means that the test data is successfully tested.
[0065] In the above-mentioned embodiment of the present application, the first test record at least includes: the first input data and the first output data flowing through each functional module, the second test record at least includes: the second input data and the second output data flowing through each functional module, and the first test record is compared with the second test record to obtain the test result of the data to be tested, including: comparing the first input data and the second input data, and comparing the first output data and the second output data; in response to the first input data and the second input data being different, or the first output data and the second output data being different, determining that the test result is a test failure; in response to the first input data and the second input data being the same, and the first output data and the second output data being the same, determining that the test result is a test success.
[0066] Figure 5 is a schematic diagram of another monitoring data flow according to an embodiment of the present application, such as Figure 5 As shown, it can be the first test record of multiple functional modules, wherein during the test process, the data of the calculation module can be {input: 1, output: 0.1}, the data of its output module can be {input: 0.1, output: 0.1}, the data of the calculation module can be {input: 0, output: abnormal}, the data of its output module can be {input: abnormal, output: abnormal}, the data of the calculation module can be {input:..., output:...}, and the data of its output module can be {input:..., output:...}.
[0067] Figure 6 FIG. 1 is a schematic diagram of monitoring data flow after adding a preprocessing module according to an embodiment of the present application, such as Figure 6 As shown, it can be the second test record of multiple functional modules, wherein, during the test process, the data of the calculation module can be {input: 2, output: 0.2}, the data of its output module can be {input: 0.2, output: 0.2}, the data of the calculation module can be {input: 1, output: 0.1}, the data of its output module can be {input: 1, output: 0.1}, the data of the calculation module can be {input:..., output:...}, and the data of its output module can be {input:..., output:...}.
[0068] Combined with the above Figure 5 and Figure 6 , the first test record and the second test record can be compared. Due to the addition of the preprocessing module, the two input data or the two output data are different. Therefore, the test result can be determined as a test failure. For example, the input in the first test record should be 1, but it becomes 2 during the second test. At this time, the test fails. At this time, the test problem can be found. By intercepting the input and output data, not only can a global test data flow network be seen, but also the size of the function impact surface can be statistically analyzed during the function development process. If the pre-preparation module conditions change, only the data from 0 to 1 is added by 1, then the impact surface will be reduced. At this time, it can be found how many calculation modules are affected in the test.
[0069] In the above embodiment of the present application, the method also includes: determining a first functional module among multiple functional modules, wherein a condition of the first functional module changes; determining a degree of influence of the first functional module based on a first data flow network, wherein the degree of influence is used to characterize a degree of influence of the first functional module on other functional modules among the multiple functional modules; and outputting the degree of influence of the first functional module.
[0070] The first functional module mentioned above may be a pre-preparation module, wherein the change in the condition of the first functional module may be an operation of adding 1 to data.
[0071] In an optional embodiment, a first functional module among multiple functional modules can be determined so as to determine the degree of influence of the first functional module on other functional modules based on the first data flow network. For example, if the first functional module processes the data between the input module and the computing module, it may affect the data flowing into the computing module. After obtaining the degree of influence of the first functional module, the degree of influence of the first functional module can be output so that the tester can adjust the test process according to the degree of influence of the first functional module, thereby improving the accuracy of the test. Optionally, the degree of influence of the first functional module can be output to the display device of the client.
[0072] In the above-mentioned embodiment of the present application, determining the influence degree of the first functional module based on the first data flow network includes: determining a second functional module among multiple functional modules based on the first data flow network, wherein the data flowing through the second functional module flows out from the first functional module; and determining the influence degree of the first functional module based on the number of second functional modules.
[0073] The number of the second functional modules mentioned above is affected by the first functional modules.
[0074] In an optional embodiment, the flow direction of the outflow data of the first functional module can be determined based on the first data flow network, so as to determine the second functional module affected by the first functional module. Optionally, the second functional module can be a downstream module of the first functional module. The influence of the first functional module can be determined based on the number of second functional modules. If the number of second functional modules is large, it means that the influence of the first functional module is large. If the number of second functional modules is small, it means that the influence of the first functional module is small.
[0075] In another optional embodiment, after obtaining the first data flow network, it is possible to calculate through the intermediate process what data set the input of the upstream module should be. For example, the calculation module needs to use the boundary value 0, and through reverse calculation from downstream to upstream, the boundary value -1 of the input module can be calculated.
[0076] In the above embodiment of the present application, the method also includes: determining first target data corresponding to a third functional module among multiple functional modules, wherein the first target data is used to represent data used to test the third functional module; based on the first data flow network, determining a fourth functional module among multiple functional modules, wherein data flowing through the fourth functional module flows into the third functional module; reversely calculating the first target data to obtain second target data corresponding to the fourth functional module, wherein the second target data is used to represent data used to test the fourth functional module.
[0077] The third functional module mentioned above may be a downstream module relative to the fourth functional module, and optionally, may be a calculation and output module.
[0078] The first target data mentioned above may be data output by the third functional module.
[0079] In an optional embodiment, the upstream module of the third functional module, that is, the fourth functional module mentioned above, can be determined based on the first data flow network, and the data that needs to be added to the most upstream module, that is, the second target data corresponding to the fourth module, can be inferred based on the first target data corresponding to the third functional module.
[0080] After obtaining the data flow network, if the calculation module needs to use the boundary value 0, through reverse calculation from downstream to upstream, it can be calculated that the input module needs to increase the boundary value -1, so that the input of the calculation module can be made 0.
[0081] In another optional embodiment, the boundary value of the downstream module is extrapolated upward. When there are multiple downstream modules, they can be calculated one by one to form a global input data set. The whole process eliminates the influence of the pre-preparation module, thereby improving the accuracy of the test.
[0082] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0084] Example 2
[0085] According to an embodiment of the present application, a data processing method embodiment is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0086] Figure 7 is a flow chart of a data processing method according to an embodiment of the present application, such as Figure 7 As shown, the method may include the following steps:
[0087] Step S702: display the data to be tested in the test interface.
[0088] The data to be tested corresponds to multiple functional modules, and different functional modules are used to execute different functions of the data to be tested;
[0089] Step S704, when a target touch operation is sensed in the test interface, a first data flow network corresponding to the data to be tested is displayed in the test interface.
[0090] Among them, the first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules. The first data flow network is generated based on the first test records of multiple functional modules. The first test records are obtained through the target section. The first test records are used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested.
[0091] The above-mentioned target touch operation may be an operation in which the user touches the test interface, wherein the target touch operation may be used to display the first data flow network corresponding to the data to be tested, so as to facilitate the user to view.
[0092] In the above embodiment of the present application, the method also includes: obtaining a target record of the target section output contained in the target section, wherein the target record includes: acquisition data and acquisition time; based on the acquisition data, determining the data flowing through each functional module; based on the acquisition time, determining the execution order of multiple functional modules; based on the data flowing through each functional module and the execution order, generating a first data flow network.
[0093] In the above embodiment of the present application, determining the execution order of multiple functional modules based on the acquisition time includes: obtaining data flow rules of the multiple functional modules; and determining the execution order of the multiple functional modules based on the acquisition time and the data flow rules.
[0094] In the above embodiment of the present application, the method further includes: dividing the data to be tested according to the executed functions to obtain multiple functional modules.
[0095] In the above embodiment of the present application, the method also includes: obtaining a second test record, wherein the second test record is used to characterize the data and flow direction flowing through each functional module in the historical test of multiple functional modules; comparing the first test record with the second test record to obtain a test result of the data to be tested, wherein the test result is used to characterize whether the test of the data to be tested is successful.
[0096] In the above-mentioned embodiment of the present application, the first test record at least includes: the first input data and the first output data flowing through each functional module, the second test record at least includes: the second input data and the second output data flowing through each functional module, and the first test record is compared with the second test record to obtain the test result of the data to be tested, including: comparing the first input data and the second input data, and comparing the first output data and the second output data; in response to the first input data and the second input data being different, or the first output data and the second output data being different, determining that the test result is a test failure; in response to the first input data and the second input data being the same, and the first output data and the second output data being the same, determining that the test result is a test success.
[0097] In the above embodiment of the present application, the method also includes: determining a first functional module among multiple functional modules, wherein a condition of the first functional module changes; determining a degree of influence of the first functional module based on a first data flow network, wherein the degree of influence is used to characterize a degree of influence of the first functional module on other functional modules among the multiple functional modules; and outputting the degree of influence of the first functional module.
[0098] In the above-mentioned embodiment of the present application, determining the influence degree of the first functional module based on the first data flow network includes: determining a second functional module among multiple functional modules based on the first data flow network, wherein the data flowing through the second functional module flows out from the first functional module; and determining the influence degree of the first functional module based on the number of second functional modules.
[0099] In the above embodiment of the present application, the method also includes: determining first target data corresponding to a third functional module among multiple functional modules, wherein the first target data is used to represent data used to test the third functional module; based on the first data flow network, determining a fourth functional module among multiple functional modules, wherein data flowing through the fourth functional module flows into the third functional module; reversely calculating the first target data to obtain second target data corresponding to the fourth functional module, wherein the second target data is used to represent data used to test the fourth functional module.
[0100] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0101] Example 3
[0102] According to an embodiment of the present invention, a data processing tool for implementing the above data processing method is also provided. Figure 8 As shown, the tool 800 includes: 802 , a data recording module 804 , and a network generation module 806 .
[0103] Among them, the data input module 802 is used to obtain multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; the data recording module 804 is used to obtain the first test records of multiple functional modules through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the testing process of the data to be tested; the network generation module 806 is used to generate a first data flow network corresponding to the data to be tested based on the first test record, wherein the first data flow network is used to characterize the flow relationship of the data flowing through multiple functional modules.
[0104] It should be noted that the data input module 802, the data recording module 804, and the network generation module 806 correspond to steps S202 to S206 in Example 1, and the three modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules, as part of the tool, can be run in the computer terminal 10 provided in Example 1.
[0105] In the above embodiment of the present application, the data recording module includes: a first acquisition unit, a first determination unit, and a generation unit.
[0106] Among them, the first acquisition unit is used to obtain the target record output by the target section point contained in the target section, wherein the target record includes: collection data and collection time; the first determination unit is used to determine the data flowing through each functional module based on the collection data; the first determination module is also used to determine the execution order of multiple functional modules based on the collection time; the generation unit is used to generate a first data flow network based on the data flowing through each functional module and the execution order.
[0107] In the above embodiments of the present application, the first determination unit includes: an acquisition subunit and a determination subunit.
[0108] The acquisition subunit is used to acquire the data flow rules of multiple functional modules; the determination subunit is used to determine the execution order of multiple functional modules based on the acquisition time and the data flow rules.
[0109] In the above embodiments of the present application, the data input module is also used to divide the data to be tested according to the executed functions to obtain multiple functional modules.
[0110] In the above embodiments of the present application, the tool also includes: a data acquisition module and a comparison module.
[0111] Among them, the data acquisition module is used to obtain a second test record, wherein the second test record is used to characterize the data and flow direction flowing through each functional module in the historical test of multiple functional modules; the comparison module is used to compare the first test record with the second test record to obtain the test result of the data to be tested, wherein the test result is used to characterize whether the test of the data to be tested is successful.
[0112] In the above embodiments of the present application, the first test record includes at least: first input data and first output data flowing through each functional module, the second test record includes at least: second input data and second output data flowing through each functional module, and the comparison module includes: a comparison unit and a second determination unit.
[0113] Among them, the comparison module is used to compare the first input data with the second input data, and to compare the first output data with the second output data; the second determination unit is used to determine that the test result is a test failure in response to the first input data and the second input data being different, or the first output data and the second output data being different; the second determination unit is also used to determine that the test result is a test success in response to the first input data and the second input data being the same, and the first output data and the second output data being the same.
[0114] In the above embodiments of the present application, the tool further includes: a first determination module and an output module.
[0115] Among them, the first determination module is used to determine the first functional module among multiple functional modules, wherein the condition of the first functional module changes; the first determination module is also used to determine the influence degree of the first functional module based on the first data flow network, wherein the influence degree is used to characterize the influence degree of the first functional module on other functional modules among the multiple functional modules, and the output module is used to output the influence degree of the first functional module.
[0116] In the above embodiment of the present application, the first determination module includes: a third determination unit.
[0117] Among them, the third determination unit is used to determine the second functional module among multiple functional modules based on the first data flow network, wherein the data flowing through the second functional module flows out from the first functional module; the third determination unit is also used to determine the degree of influence of the first functional module based on the number of second functional modules.
[0118] In the above embodiments of the present application, the tool further includes: a second determination module and a calculation module.
[0119] Among them, the second determination module is used to determine the first target data corresponding to the third functional module among multiple functional modules, wherein the first target data is used to represent the data used for testing the third functional module; the second determination module is also used to determine the fourth functional module among multiple functional modules based on the first data flow network, wherein the data flowing through the fourth functional module flows into the third functional module; the inference module is also used to reversely infer the first target data to obtain the second target data corresponding to the fourth functional module, wherein the second target data is used to represent the data used for testing the fourth functional module.
[0120] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0121] Example 4
[0122] According to an embodiment of the present application, a data processing tool for implementing the above data processing method is also provided, such as Fig. 9 As shown, the tool includes: a data display module 902 and a sensing module 904 .
[0123] Among them, the data display module is used to display the data to be tested in the test interface, wherein the data to be tested corresponds to multiple functional modules, and different functional modules are used to execute different functions of the data to be tested; the sensing module is used to display the first data flow network corresponding to the data to be tested in the test interface when a target touch operation is sensed in the test interface, wherein the first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules, the first data flow network is generated based on the first test records of multiple functional modules, the first test records are obtained through the target section, and the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested.
[0124] It should be noted that the above data display module 902 and the sensing module 904 correspond to steps S702 to S704 in Example 2, and the examples and application scenarios implemented by the two modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above Example 2. It should be noted that the above modules, as part of the tool, can be run in the computer terminal 10 provided in Example 1.
[0125] It should be noted that the preferred implementation scheme involved in the above embodiments of the present application is the same as the scheme provided in Example 1, as well as the application scenario and implementation process, but is not limited to the scheme provided in Example 1.
[0126] Example 5
[0127] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.
[0128] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0129] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the data processing method: obtaining multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; obtaining the first test records of the multiple functional modules through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested; based on the first test record, generating a first data flow network corresponding to the data to be tested, wherein the first data flow network is used to characterize the flow relationship of the data flowing through multiple functional modules.
[0130] The above-mentioned computer terminal may be a test device.
[0131] Optionally, Fig.10 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Fig.10 As shown, the computer terminal A may include: one or more (only one is shown in the figure) processors and a memory.
[0132] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the data processing methods and tools in the embodiments of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned data processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage tools, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal A via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0133] The processor can call the information and application programs stored in the memory through a transmission tool to perform the following steps: obtain multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; obtain the first test records of the multiple functional modules through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested; based on the first test record, generate a first data flow network corresponding to the data to be tested, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the multiple functional modules.
[0134] Optionally, the processor may also execute the program code of the following steps: obtaining a target record of a target section output contained in the target section, wherein the target record includes: acquisition data and acquisition time; based on the acquisition data, determining the data flowing through each functional module; based on the acquisition time, determining the execution order of multiple functional modules; based on the data flowing through each functional module and the execution order, generating a first data flow network.
[0135] Optionally, the processor may also execute program codes of the following steps: obtaining data flow rules of multiple functional modules; and determining the execution order of the multiple functional modules based on the acquisition time and the data flow rules.
[0136] Optionally, the processor may also execute program codes of the following steps: segmenting the data to be tested according to the functions to be executed to obtain multiple functional modules.
[0137] Optionally, the processor may also execute the program code of the following steps: obtaining a second test record, wherein the second test record is used to characterize the data and flow direction flowing through each functional module in the historical testing of multiple functional modules; comparing the first test record with the second test record to obtain the test result of the data to be tested, wherein the test result is used to characterize whether the test of the data to be tested is successful.
[0138] Optionally, the processor may also execute program code for the following steps: comparing the first input data with the second input data, and comparing the first output data with the second output data; in response to the first input data and the second input data being different, or the first output data and the second output data being different, determining that the test result is a test failure; in response to the first input data and the second input data being the same, and the first output data and the second output data being the same, determining that the test result is a test success.
[0139] Optionally, the processor may also execute program codes of the following steps: determining a first functional module among multiple functional modules, wherein a condition of the first functional module changes; determining a degree of influence of the first functional module based on a first data flow network, wherein the degree of influence is used to characterize a degree of influence of the first functional module on other functional modules among multiple functional modules; and outputting the degree of influence of the first functional module.
[0140] Optionally, the processor may also execute program code of the following steps: based on the first data flow network, determining a second functional module among multiple functional modules, wherein data flowing through the second functional module flows out from the first functional module; and based on the number of second functional modules, determining the degree of influence of the first functional module.
[0141] Optionally, the processor may also execute the program code of the following steps: determining first target data corresponding to a third functional module among multiple functional modules, wherein the first target data is used to represent data used to test the third functional module; determining a fourth functional module among multiple functional modules based on a first data flow network, wherein data flowing through the fourth functional module flows into the third functional module; reversely calculating the first target data to obtain second target data corresponding to the fourth functional module, wherein the second target data is used to represent data used to test the fourth functional module.
[0142] The processor can call the information and application programs stored in the memory through a transmission tool to perform the following steps: displaying the data to be tested in a test interface, wherein the data to be tested corresponds to multiple functional modules, and different functional modules are used to execute different functions of the data to be tested; when a target touch operation is sensed in the test interface, displaying a first data flow network corresponding to the data to be tested in the test interface, wherein the first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules, and the first data flow network is generated based on the first test records of multiple functional modules, and the first test records are obtained through the target section, and the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested.
[0143] According to the embodiment of the present invention, a plurality of functional modules corresponding to the data to be tested are first obtained, wherein different functional modules are used to execute different functions of the data to be tested; the first test records of the plurality of functional modules are obtained through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested; based on the first test record, a first data flow network corresponding to the data to be tested is generated, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the plurality of functional modules, thereby achieving the purpose of improving the test accuracy. It is easy to notice that, since the first test records of the plurality of functional modules can be obtained according to the target section, a panoramic view of the flow of the test content can be constructed, so that the data flow relationship of the plurality of functional modules can be clearly shown, so that the test process can be monitored according to the data flow relationship, and abnormal situations can be handled as soon as possible when they occur, thereby improving the test accuracy, and further solving the technical problem of low test accuracy of code functions in related technologies.
[0144] It can be understood by those skilled in the art that Fig.10 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Fig.10The structure of the electronic tool is not limited. For example, the computer terminal 10 may also include Fig.10 More or fewer components (such as network interfaces, display tools, etc.) as shown in, or with Fig.10 Different configurations are shown.
[0145] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0146] Example 4
[0147] The embodiment of the present invention further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the data processing method provided in the first embodiment.
[0148] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0149] Optionally, in this embodiment, the storage medium is configured to store program code for executing the following steps: obtaining multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; obtaining first test records of the multiple functional modules through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested; based on the first test record, generating a first data flow network corresponding to the data to be tested, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the multiple functional modules.
[0150] Optionally, the storage medium is also configured to store program codes for executing the following steps: obtaining a target record of a target section output contained in a target section, wherein the target record includes: acquisition data and acquisition time; based on the acquisition data, determining the data flowing through each functional module; based on the acquisition time, determining the execution order of multiple functional modules; and generating a first data flow network based on the data flowing through each functional module and the execution order.
[0151] Optionally, the storage medium is further configured to store program codes for executing the following steps: obtaining data flow rules of multiple functional modules; and determining the execution order of the multiple functional modules based on the acquisition time and the data flow rules.
[0152] Optionally, the storage medium is further configured to store program codes for executing the following steps: segmenting the data to be tested according to the functions to be executed to obtain a plurality of functional modules.
[0153] Optionally, the storage medium is also configured to store program code for executing the following steps: obtaining a second test record, wherein the second test record is used to characterize the data and flow direction flowing through each functional module in historical testing of multiple functional modules; comparing the first test record with the second test record to obtain a test result of the data to be tested, wherein the test result is used to characterize whether the test of the data to be tested is successful.
[0154] Optionally, the storage medium is also configured to store program codes for performing the following steps: comparing the first input data with the second input data, and comparing the first output data with the second output data; in response to the first input data and the second input data being different, or the first output data and the second output data being different, determining that the test result is a test failure; in response to the first input data and the second input data being the same, and the first output data and the second output data being the same, determining that the test result is a test success.
[0155] Optionally, the storage medium is also configured to store program codes for executing the following steps: determining a first functional module among multiple functional modules, wherein a condition of the first functional module changes; determining a degree of influence of the first functional module based on a first data flow network, wherein the degree of influence is used to characterize a degree of influence of the first functional module on other functional modules among multiple functional modules; and outputting the degree of influence of the first functional module.
[0156] Optionally, the storage medium is also configured to store program code for executing the following steps: based on the first data flow network, determining a second functional module among multiple functional modules, wherein data flowing through the second functional module flows out from the first functional module; based on the number of second functional modules, determining the degree of influence of the first functional module.
[0157] Optionally, the storage medium is also configured to store program codes for executing the following steps: determining first target data corresponding to a third functional module among multiple functional modules, wherein the first target data is used to represent data used to test the third functional module; determining a fourth functional module among multiple functional modules based on a first data flow network, wherein data flowing through the fourth functional module flows into the third functional module; reversely calculating the first target data to obtain second target data corresponding to the fourth functional module, wherein the second target data is used to represent data used to test the fourth functional module.
[0158] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: displaying the data to be tested in a test interface, wherein the data to be tested corresponds to multiple functional modules, and different functional modules are used to execute different functions of the data to be tested; when a target touch operation is sensed in the test interface, displaying a first data flow network corresponding to the data to be tested in the test interface, wherein the first data flow network is used to characterize the flow relationship of data flowing through multiple functional modules, and the first data flow network is generated based on first test records of multiple functional modules, and the first test records are obtained through the target section, and the first test record is used to characterize the data and flow direction flowing through each functional module during the testing of the data to be tested.
[0159] According to the embodiment of the present invention, a plurality of functional modules corresponding to the data to be tested are first obtained, wherein different functional modules are used to execute different functions of the data to be tested; the first test records of the plurality of functional modules are obtained through the target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested; based on the first test record, a first data flow network corresponding to the data to be tested is generated, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the plurality of functional modules, thereby achieving the purpose of improving the test accuracy. It is easy to notice that, since the first test records of the plurality of functional modules can be obtained according to the target section, a panoramic view of the flow of the test content can be constructed, so that the data flow relationship of the plurality of functional modules can be clearly shown, so that the test process can be monitored according to the data flow relationship, and abnormal situations can be handled as soon as possible when they occur, thereby improving the test accuracy, and further solving the technical problem of low test accuracy of code functions in related technologies.
[0160] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0161] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0162] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the tool embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0165] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0166] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A data processing method, characterized in that: include: Acquire multiple functional modules corresponding to the data to be tested, wherein different functional modules are used to execute different functions of the data to be tested; Obtaining first test records of the multiple functional modules through a target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested, wherein the target section maintains the multiple functional modules corresponding to the data to be tested through a pre-compilation method and a dynamic proxy method during runtime, and the first test record is the data of each functional module during the test of the data to be tested, the time point at which the data flows through the multiple functional modules, the path record of the program, and the input and output record; Based on the first test record, generating a first data flow network corresponding to the data to be tested, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the multiple functional modules; Wherein, obtaining the first test records of the plurality of functional modules through the target section includes: Obtaining a target record outputted by a target cut point included in the target cut plane, wherein the target record includes: acquisition data and acquisition time; Based on the collected data, determining data flowing through each functional module; Based on the acquisition time, determining the execution order of the multiple functional modules; generating the first data flow network based on the data flowing through each functional module and the execution order; Inferring whether to add a pre-preparation module through the first data flow network according to the change of data in the multiple functional modules; In response to the first data flow network inferring to add the pre-preparation module, a boundary value is determined by the pre-preparation module, wherein the boundary value is used to represent a dividing point between valid data and invalid data.
2. The method according to claim 1, characterized in that Acquiring the first test records of the plurality of functional modules through the target section includes: Obtaining a target record outputted by a target cut point included in the target cut plane, wherein the target record includes: acquisition data and acquisition time; Based on the collected data, determining data flowing through each functional module; Based on the acquisition time, determining the execution order of the multiple functional modules; The first data flow network is generated based on the data flowing through each functional module and the execution order.
3. The method according to claim 2, characterized in that Based on the acquisition time, determining the execution order of the multiple functional modules includes: Acquire data flow rules of the multiple functional modules; Based on the collection time and the data flow rule, an execution order of the multiple functional modules is determined.
4. The method according to claim 1, characterized in that The multiple functional modules corresponding to obtaining the data to be tested include: The data to be tested is segmented according to the executed functions to obtain the multiple functional modules.
5. The method according to claim 1, characterized in that The method further comprises: Acquire a second test record, wherein the second test record is used to characterize the data and flow direction flowing through each functional module in a historical test of the multiple functional modules; The first test record is compared with the second test record to obtain a test result of the data to be tested, wherein the test result is used to indicate whether the test of the data to be tested is successful.
6. The method according to claim 5, characterized in that The first test record at least includes: first input data and first output data flowing through each functional module, the second test record at least includes: second input data and second output data flowing through each functional module, and the first test record is compared with the second test record to obtain the test result of the data to be tested, including: comparing the first input data with the second input data, and comparing the first output data with the second output data; In response to the first input data and the second input data being different, or the first output data and the second output data being different, determining that the test result is a test failure; In response to the first input data and the second input data being identical, and the first output data and the second output data being identical, the test result is determined to be a test success.
7. The method according to claim 1, characterized in that The method further comprises: determining a first functional module among the plurality of functional modules, wherein a condition of the first functional module changes; Determining, based on the first data flow network, an influence degree of the first functional module, wherein the influence degree is used to characterize an influence degree of the first functional module on other functional modules among the plurality of functional modules; The influence degree of the first functional module is output.
8. The method according to claim 7, characterized in that Determining the impact degree of the first functional module based on the first data flow network includes: Based on the first data flow network, determining a second functional module among the plurality of functional modules, wherein data flowing through the second functional module flows out from the first functional module; Based on the number of the second functional modules, the influence degree of the first functional modules is determined.
9. The method according to claim 1, characterized in that: The method further comprises: Determine first target data corresponding to a third functional module among the multiple functional modules, wherein the first target data is used to represent data used for testing the third functional module; Based on the first data flow network, determining a fourth functional module among the plurality of functional modules, wherein data flowing through the fourth functional module flows into the third functional module; The first target data is reversely deduced to obtain second target data corresponding to the fourth functional module, wherein the second target data is used to represent data used to test the fourth functional module.
10. A data processing method, characterized in that: include: Displaying the data to be tested in the test interface, wherein the data to be tested corresponds to a plurality of functional modules, and different functional modules are used to execute different functions of the data to be tested; In the case where a target touch operation is sensed in the test interface, a first data flow network corresponding to the data to be tested is displayed in the test interface, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the multiple functional modules, the first data flow network is generated based on the first test records of the multiple functional modules, the first test record is obtained through the target section, the first test record is used to characterize the data and flow direction flowing through each functional module in the process of testing the data to be tested, the target section maintains the multiple functional modules corresponding to the data to be tested in a pre-compilation manner and a dynamic proxy manner during runtime, the first test record is the data of each functional module in the process of testing the data to be tested, the time point when the data flows through the multiple functional modules, the path record of the program and the input and output record; Wherein, the method further comprises: Obtaining a target record outputted by a target cut point included in the target cut plane, wherein the target record includes: acquisition data and acquisition time; Based on the collected data, determining data flowing through each functional module; Based on the acquisition time, determining the execution order of the multiple functional modules; generating the first data flow network based on the data flowing through each functional module and the execution order; Inferring whether to add a pre-preparation module through the first data flow network according to the change of data in the multiple functional modules; In response to the first data flow network inferring to add the pre-preparation module, a boundary value is determined by the pre-preparation module, wherein the boundary value is used to represent a dividing point between valid data and invalid data.
11. A data processing tool, characterized in that: include: A data input module, used for acquiring a plurality of functional modules corresponding to the data to be tested, wherein different functional modules are used for executing different functions of the data to be tested; A data recording module, used for obtaining first test records of the multiple functional modules through a target section, wherein the first test record is used to characterize the data and flow direction flowing through each functional module during the test of the data to be tested, wherein the target section maintains the multiple functional modules corresponding to the data to be tested through a pre-compilation method and a dynamic proxy method during runtime, and the first test record is the data of each functional module during the test of the data to be tested, the time point when the data flows through the multiple functional modules, the path record of the program, and the input and output record; A network generation module, configured to generate a first data flow network corresponding to the data to be tested based on the first test record, wherein the first data flow network is used to characterize the flow relationship of the data flowing through the multiple functional modules; Among them, the data recording module is also used to obtain the target record of the target section output contained in the target section, wherein the target record includes: acquisition data and acquisition time; based on the acquisition data, determine the data flowing through each functional module; based on the acquisition time, determine the execution order of the multiple functional modules; based on the data flowing through each functional module and the execution order, generate the first data flow network; according to the change of data in the multiple functional modules, infer whether to add a pre-preparation module through the first data flow network; in response to the first data flow network inferring to add the pre-preparation module, determine the boundary value through the pre-preparation module, wherein the boundary value is used to represent the dividing point between valid data and invalid data.
12. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is executed, the device where the storage medium is located is controlled to execute the data processing method according to any one of claims 1 to 10.
13. A computer terminal, characterized in that: include: A processor and a memory, wherein the processor is used to run a program stored in the memory, wherein the program executes the data processing method according to any one of claims 1 to 10 when running.
Citation Information
Patent Citations
Method and apparatus for deferred scheduling for jtag systems
CN104185795A
Methods and systems for budgeted and simplified training of deep neural networks
CN110383292A