CN111831319B - Method, device, equipment and storage medium for posterior difference data - Google Patents

Method, device, equipment and storage medium for posterior difference data Download PDF

Info

Publication number
CN111831319B
CN111831319B CN202010700248.4A CN202010700248A CN111831319B CN 111831319 B CN111831319 B CN 111831319B CN 202010700248 A CN202010700248 A CN 202010700248A CN 111831319 B CN111831319 B CN 111831319B
Authority
CN
China
Prior art keywords
attribute values
target
difference
posterior
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010700248.4A
Other languages
Chinese (zh)
Other versions
CN111831319A (en
Inventor
杜鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010700248.4A priority Critical patent/CN111831319B/en
Publication of CN111831319A publication Critical patent/CN111831319A/en
Application granted granted Critical
Publication of CN111831319B publication Critical patent/CN111831319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a difference data posterior method, a device, equipment and a storage medium, and relates to computer vision, software development and software testing. The specific implementation scheme is as follows: obtaining difference data to be posterior, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value; if the target sequence value exists in the preset posterior mapping relation, determining that the difference of a plurality of target attribute values is not acceptable based on the attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises the mapping relation of the sequence value and the attribute information; outputting the target sequence value and the plurality of target attribute values. The method and the device can automatically complete the posterior with unacceptable difference, thereby saving manpower and effectively improving the data posterior processing efficiency.

Description

Method, device, equipment and storage medium for posterior difference data
Technical Field
The present disclosure relates to computer vision, software development, and software testing in data processing technologies, and in particular, to a method, apparatus, device, and storage medium for posterior difference data.
Background
Aiming at the continuous increase of front-end engineering design data flow services, the iteration frequency of service module reconstruction, migration and technology upgrading is high, and the comparison of results obtained by processing the same input by new and old versions becomes an important part in daily test. The new version and the old version have some known differences or acceptable differences, and the differences in different modules or services cannot be duplicated and shared at all, which can lead to a very high difference rate when data in a large number of JavaScript object notation (JavaScript Object Notation, simply: JSON) formats of different services are compared.
Disclosure of Invention
Provided are a difference data posterior method, apparatus, device, and storage medium for automating a posterior of whether a completion difference is acceptable.
According to a first aspect of the present application, there is provided a difference data post-test method comprising:
obtaining difference data to be posterior, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value;
if the target sequence value exists in the preset posterior mapping relation, determining that the difference of a plurality of target attribute values is not acceptable based on the attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises the mapping relation of the sequence value and the attribute information;
outputting the target sequence value and the plurality of target attribute values.
According to a second aspect of the present application, there is provided a difference data posterior apparatus comprising:
the acquisition module is used for acquiring difference data to be tested, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value;
the detection module is used for detecting whether a target sequence value exists in a preset posterior mapping relation; when the target sequence value exists in the preset posterior mapping relation, triggering a determining module to determine that the difference of a plurality of target attribute values is unacceptable based on attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises the mapping relation of the sequence value and the attribute information;
and the output module is used for outputting the target sequence value and a plurality of target attribute values.
According to a third aspect, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects.
According to a fourth aspect, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of the first aspects.
According to a fifth aspect of the present application, there is provided a computer program product comprising: a computer program stored in a readable storage medium, from which it can be read by at least one processor of an electronic device, the at least one processor executing the computer program causing the electronic device to perform the method of the first aspect.
According to the technology, whether the difference is acceptable or not can be automatically completed, so that labor is saved, and the data posterior processing efficiency is effectively improved.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is a schematic diagram according to a first embodiment of the present application;
FIG. 2 is a schematic diagram according to a second embodiment of the present application;
FIG. 3 is a schematic diagram according to a third embodiment of the present application;
FIG. 4 is a schematic diagram according to a fourth embodiment of the present application;
FIG. 5 is a block diagram of an electronic device for implementing a difference data posterior method of an embodiment of the present application;
FIG. 6 is a scene graph in which embodiments of the present application may be implemented.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The JSON format is a lightweight data exchange language conceived and designed by daglas-crowford, which is based on text that is easy for a human to read, to transmit data objects consisting of attribute values or sequential values (hereinafter "sequence values"). Although JSON is a subset of JavaScript, JSON is a language independent text format and employs some habits similar to the C language family. The JSON format may be read in JavaScript in eval () function (JavaScript calls the parser through eval (). However, this does not represent that the JSON format cannot be used for other languages, and virtually all languages related to web page development have JSON function libraries. The JSON format data is exemplified as follows:
in the above example, where the portion preceding the colon is the sequence value and the portion following the colon is the attribute value. For example, "first name": in "John", first name is a sequence value, and John is an attribute value corresponding to the sequence value of first name; for another example, "address": in { … … }, address is a sequence value, and the contents in brackets are attribute values corresponding to the sequence value, address.
As regards JSON Diff (difference), it is understood that comparing 2 sets (typically 2 versions) of JSON formatted data yields data difference results, i.e. difference data referred to in this application, including add, subtract and update. The above difference data can be obtained by the existing JSON Diff tool.
But it may be acceptable to take into account the differences corresponding to some of the difference data. By way of example, it has been clarified that certain content fields have certain rules (expected) that differ, and the conventional JSON Diff tool still yields difference data. Thus, it is not possible to distinguish whether the difference data of JSON Diff tool yield is an expected or unexpected difference. For example, an upgrade of the picture sharpness algorithm calculates that the 6 decimal places must be consistent, and the new and old data 5.1111113 and 5.1111112 are considered to be expected, and 5.111113 and 5.111112 are considered to be unexpected. For another example, a module language change upgrade, "[ ]" changes to "{ }" is expected, and others must be the same to be expected. For another example, some scenes of some modules only concern whether the lengths are consistent, the content is not concerned, and so on. For these acceptable differences we do not care about, only those unacceptable differences. At present, it is required to manually confirm which of the difference data is acceptable and which is not acceptable, so that when the data amount of the difference data is large, the process is labor-consuming and labor-consuming, and the data posterior processing efficiency is low.
It is clear that unacceptable differences include: unknown, unpredictable differences, or known but unacceptable differences, i.e., differences outside of acceptable differences.
Therefore, aiming at the problems, the application provides a difference data posterior method, a device, equipment and a storage medium, which are applied to computer vision, software development and software testing in the technical field of data processing, and the aim of improving the probability of data posterior processing is fulfilled by reclassifying the difference data generated by comparing 2 groups of data to obtain a conclusion whether the difference data is acceptable or not, namely, the difference data posterior.
The difference data posterior scheme provided by the Application is applicable to, but not limited to, software development tests aiming at new requirements including web pages, application (APP for short).
The following detailed examples are used to illustrate how the present application performs differential data posterior.
Fig. 1 is a schematic diagram according to a first embodiment of the present application. The present embodiment provides a difference data posterior method, which may be executed by a difference data posterior device, where the difference data posterior device may be specifically a client or a server, such as a desktop computer, a tablet computer, a notebook computer, or the like, or the difference data posterior device may be a chip in the client or a chip in the server, or the like. The following is an example explanation with the client as an execution subject.
As shown in fig. 1, the difference data post-test method includes the following steps:
s101, obtaining difference data of a to-be-tested, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value.
Illustratively, the data produced by the old version is:
the data produced by the old version are:
aiming at the data produced by the new version and the old version, the traditional JSON Diff tool is used for comparison, and the data of the difference in production is as follows: { "score": [123.987654,123.987655], "ex_score": [223.123456,223.123455] }.
Because the application further carries out posterior processing on the difference data produced by the traditional JSON Diff tool, the difference data to be posterior is firstly acquired.
For convenience of distinction and understanding, the sequence value and the attribute value included in the difference data to be posterior are referred to as "target sequence value" and "target attribute value", respectively. Taking the above example as an example, the target sequence value, score, corresponds to a plurality of target attribute values, 123.987654 and 123.987655; alternatively, the target sequence value, ex_score, corresponds to a plurality of target attribute values, 223.123456 and 223.123455.
The number of the target attribute values corresponding to the same target sequence value is two because the two versions are compared for illustration, but the present application is not limited thereto, and the specific number of the target attribute values is determined according to the number of the versions involved in comparison.
S102, if a target sequence value exists in the preset posterior mapping relation, determining that the difference of a plurality of target attribute values is not acceptable based on attribute information corresponding to the target sequence value in the preset posterior mapping relation.
The preset posterior mapping relation comprises a mapping relation of sequence values and attribute information. It can be appreciated that the preset posterior mapping relationship is preset based on actual demand or historical experience. For specific meaning of the attribute information, in the first specific implementation, the attribute information in the preset posterior mapping relationship is used for indicating how much or what the difference is between attribute values corresponding to a sequence of values, and is considered acceptable; or in the second specific implementation, the attribute information in the preset posterior mapping relationship is used for indicating how much or what the difference is between the attribute values corresponding to a sequence of values, and is not considered acceptable. The present application is described with respect to a first specific implementation.
Specifically, after the difference data of the posterior is obtained through S101, whether the target sequence value exists is detected in the preset posterior mapping relationship. If the target sequence value exists in the preset posterior mapping relationship, determining that the difference of the plurality of target attribute values is not acceptable based on the attribute information corresponding to the target sequence value in the preset posterior mapping relationship. Since the attribute information indicates acceptable differences, it is possible to determine whether the differences of the plurality of target attribute values corresponding to the target sequence values are unacceptable, based on the attribute information corresponding to the target sequence values.
Taking the above-mentioned difference data generated by the new and old versions as an example, for score, the corresponding attribute information is "the difference is less than 0.000001 acceptable", and the difference between 123.987654 and 123.987655 is 0.000001, so the difference is not acceptable; alternatively, if the score corresponds to attribute information of "acceptable with a difference of less than or equal to 0.000001", the difference is acceptable.
The results are shown in table 1, compared with the difference data produced by the conventional JSON Diff tool:
TABLE 1
S103, outputting a target sequence value and a plurality of target attribute values.
Because only those unacceptable differences need be related, after S102 determines that the differences of the plurality of target attribute values are unacceptable, the target sequence value and the plurality of target attribute values are output for viewing by the operator.
In the embodiment of the application, firstly, difference data to be tested is obtained, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value; then, when the target sequence value exists in the preset posterior mapping relation, determining that the difference of a plurality of target attribute values is unacceptable based on attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises the mapping relation of the sequence value and the attribute information; finally, outputting the target sequence value and a plurality of target attribute values. The method and the device can automatically complete the posterior with unacceptable difference, so that manpower can be saved, and the data posterior processing efficiency can be effectively improved.
In practical application, the difference data posterior method provided by the application can be used as a posterior expansion tool of a traditional JSON Diff tool, and the posterior is completed by a user-configured custom method.
On the basis of the above embodiment, further, if the target sequence value does not exist in the preset posterior mapping relationship, the target sequence value and the plurality of target attribute values are output. At this time, the difference corresponding to the difference data including the target sequence value and the plurality of target attribute values corresponding thereto can be directly considered unacceptable, and output for the operator to view.
Since the attribute information is artificially set, the specific technical means adopted in determining that the difference of the plurality of target attribute values is not acceptable is also different for different attribute information, as will be exemplified below with reference to fig. 2.
Fig. 2 is a schematic diagram according to a second embodiment of the present application. Referring to fig. 2, determining that the differences of the plurality of target attribute values are not acceptable based on the attribute information corresponding to the target sequence values in the preset posterior mapping relationship may further include:
s201, determining whether the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition.
If the difference value of any two target attribute values in the plurality of target attribute values does not meet the preset condition, S202 is executed.
S202, determining that the difference of the plurality of target attribute values is not acceptable.
In this embodiment, the attribute information corresponding to the target sequence value in the predetermined posterior mapping relationship is that the difference value satisfies the predetermined condition.
Optionally, the preset conditions include, but are not limited to, at least one of:
less than a preset value;
zero.
Wherein, the attribute information is different, and the corresponding preset conditions are different. Even if the attribute information is the same, the corresponding preset conditions will also be different according to the person setting the preset conditions. For example, for attribute values represented by numerical values, the meaning of the expressions of attribute information being "same", "must agree" or "difference value is zero" is the same, but the preset conditions corresponding to each are different.
In some embodiments, the difference data post-test method may further include: if the difference value of any two target attribute values in the plurality of target attribute values meets the preset condition, determining that the difference of the plurality of target attribute values is acceptable. The target sequence value and the plurality of target attribute values may also be output when the differences of the plurality of target attribute values are acceptable. That is, the difference data that is acceptable in difference and the difference data that is unacceptable in difference are output separately in two data sets, and the user only needs to care about the data sets of the difference data that is unacceptable in difference.
Further, for a data set of discrepancy data for which the discrepancy is acceptable, it may also be reconfirmed manually whether the discrepancy is acceptable.
Fig. 3 is a schematic diagram according to a third embodiment of the present application. Referring to fig. 3, the difference data posterior method may include:
s301, obtaining difference data to be tested, wherein the difference data comprise a target sequence value and a plurality of target attribute values corresponding to the target sequence value.
S302, detecting whether a target sequence value exists in a preset posterior mapping relation.
If the target sequence value exists in the preset posterior mapping relation, S303 is executed; if the target sequence value does not exist in the preset posterior mapping relationship, S305 is executed.
S303, determining the data types of a plurality of target attribute values. If the data type is a list, executing S304; if the data type is dictionary, recursion processing is performed with the target attribute value of the data type being dictionary as the new difference data to be posterior, that is, S301 is returned.
For a plurality of target attribute values whose data types are lists, their corresponding differential data examples are as follows:
the preset posterior mapping relationship corresponding to the above example may be exemplified as follows:
that is, when the data types of the plurality of target attribute values are lists, the attribute information of the corresponding target sequence values contains wild cards. For example, wild cards may be represented as "×" or the like.
It can be understood that if the sequence value is a field of the difference data, the embodiment supports the sub-field and the wild card, so that the minimum granularity field can be obtained by posterior, the full field posterior coverage capability is provided, and the method has universality in the content processing service scene.
S304, determining whether the difference of a plurality of target attribute values is unacceptable or not based on the attribute information corresponding to the target sequence values in the preset posterior mapping relation.
If the difference of the plurality of target attribute values is not acceptable, then executing S305; if the differences of the plurality of target attribute values are acceptable, returning to S301, and acquiring new difference data to be tested.
S305, outputting a target sequence value and a plurality of target attribute values.
Based on the embodiment, traversing all the difference data, outputting the difference data with unacceptable difference, realizing the automatic posterior of the difference data, and improving the posterior processing efficiency of the difference data; in addition, the user can configure the personalized posterior method by himself, posterior fields can support different levels of gradients, full-field posterior coverage capability is achieved, and universality is achieved in content processing business scenes.
Fig. 4 is a schematic diagram according to a fourth embodiment of the present application. This embodiment provides a difference data posterior device. As shown in fig. 4, the difference data posterior apparatus 400 includes: an acquisition module 401, a detection module 402, a determination module 403, and an output module 404. Wherein:
the obtaining module 401 is configured to obtain difference data to be tested, where the difference data includes a target sequence value and a plurality of target attribute values corresponding to the target sequence value.
The detection module 402 is configured to detect whether a target sequence value exists in a preset posterior mapping relationship; and triggers the determining module 403 when the target sequence value exists in the preset posterior mapping relationship.
A determining module 403, configured to determine that the difference between the plurality of target attribute values is not acceptable based on attribute information corresponding to the target sequence value in the preset posterior mapping relationship. The preset posterior mapping relation comprises a mapping relation of sequence values and attribute information.
An output module 404, configured to output the target sequence value and the plurality of target attribute values.
The difference data posterior device provided in this embodiment may be used to execute the above method embodiment, and its implementation manner and technical effects are similar, and this embodiment will not be described herein again.
In some embodiments, the determining module 403 may be specifically configured to:
determining whether the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition, wherein attribute information corresponding to the target sequence value in the preset posterior mapping relation is that the difference value meets the preset condition;
and when the difference value of any two target attribute values in the plurality of target attribute values does not meet the preset condition, determining that the difference of the plurality of target attribute values is not acceptable.
Optionally, the determining module 403 is further configured to: and when the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition, determining that the difference of the plurality of target attribute values is acceptable.
Wherein the preset condition may include at least one of:
less than a preset value;
zero;
etc.
Further, the determining module 403 may be further configured to: before determining that the difference of the plurality of target attribute values is unacceptable based on the attribute information corresponding to the target sequence values in the preset posterior mapping relation, determining the data types of the plurality of target attribute values; and when the data type is a list, executing the attribute information corresponding to the target sequence value in the preset posterior mapping relation, and determining that the difference of a plurality of target attribute values is not acceptable.
Optionally, the determining module 403 may be further configured to: and when the data type is the dictionary, recursion processing is carried out by taking the target attribute value of which the data type is the dictionary as new difference data to be posterior.
In some embodiments, the detection module 402 may also be configured to: when the target sequence value does not exist in the preset posterior mapping relationship, the trigger output module 404 outputs the target sequence value and a plurality of target attribute values.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
According to an embodiment of the present application, there is also provided a computer program product comprising: a computer program stored in a readable storage medium, from which at least one processor of an electronic device can read, the at least one processor executing the computer program causing the electronic device to perform the solution provided by any one of the embodiments described above.
As shown in fig. 5, a block diagram of an electronic device for implementing the difference data posterior method according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 501 is illustrated in fig. 5.
Memory 502 is a non-transitory computer readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the difference data posterior method provided herein. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the difference data posterior method provided by the present application.
The memory 502 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the acquisition module 401, the detection module 402, the determination module 403, and the output module 404 shown in fig. 4) corresponding to the difference data post-test method in the embodiments of the present application. The processor 501 executes various functional applications of the server and data processing, i.e., implements the difference data posterior method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 502.
Memory 502 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created by use of an electronic device to implement the difference data posterior method, and the like. In addition, memory 502 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 502 may optionally include memory remotely located with respect to processor 501, which may be connected via a network to an electronic device that performs the difference data posterior method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for implementing the difference data posterior method may further include: an input device 503 and an output device 504. The processor 501, memory 502, input devices 503 and output devices 504 may be connected by a bus or otherwise, for example in fig. 5.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, and like input devices. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and can be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
FIG. 6 is a scene graph in which embodiments of the present application may be implemented. As shown in fig. 6, the client 601 is configured to execute the difference data post-test method according to any of the above method embodiments, the server 602 interacts with the client 601, and after the server 602 executes the difference data post-test method, the server 602 outputs the difference data with unacceptable difference to the client 601 for display.
In fig. 6, the client 601 is illustrated as a computer, but the embodiments of the present application are not limited thereto.
According to the technical scheme of the embodiment of the application, firstly, difference data to be tested are obtained, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value; then, when the target sequence value exists in the preset posterior mapping relation, determining that the difference of a plurality of target attribute values is unacceptable based on attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises the mapping relation of the sequence value and the attribute information; finally, outputting the target sequence value and a plurality of target attribute values. The method and the device can automatically complete the posterior with unacceptable difference, so that manpower can be saved, and the data posterior processing efficiency can be effectively improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (12)

1. A method of difference data post-inspection, comprising:
obtaining difference data to be posterior, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value;
if the target sequence value exists in the preset posterior mapping relation, determining that the difference of the plurality of target attribute values is not acceptable based on the attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises the mapping relation of the sequence value and the attribute information;
outputting the target sequence value and the plurality of target attribute values;
before determining that the differences between the plurality of target attribute values are not acceptable based on the attribute information corresponding to the target sequence values in the preset posterior mapping relationship, the method further comprises:
determining a data type of the plurality of target attribute values;
if the data type is a list, executing the attribute information corresponding to the target sequence value in the preset posterior mapping relation, and determining that the difference of the plurality of target attribute values is not acceptable;
and if the data type is the dictionary, recursion processing is carried out by taking the target attribute value of which the data type is the dictionary as new difference data to be subjected to posterior.
2. The method of claim 1, wherein the determining that the differences between the plurality of target attribute values are not acceptable based on the attribute information corresponding to the target sequence values in the preset posterior mapping relationship comprises:
determining whether the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition, wherein the attribute information corresponding to the target sequence value in the preset posterior mapping relation is that the difference value meets the preset condition;
if the difference value of any two target attribute values in the plurality of target attribute values does not meet the preset condition, determining that the difference of the plurality of target attribute values is not acceptable.
3. The method of claim 2, further comprising:
if the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition, determining that the difference of the plurality of target attribute values is acceptable.
4. The method of claim 2, wherein the preset conditions include at least one of:
less than a preset value;
zero.
5. The method of any one of claims 1 to 4, further comprising:
and if the target sequence value does not exist in the preset posterior mapping relation, outputting the target sequence value and the plurality of target attribute values.
6. A difference data posterior apparatus comprising:
the acquisition module is used for acquiring difference data to be tested, wherein the difference data comprises a target sequence value and a plurality of target attribute values corresponding to the target sequence value;
the detection module is used for detecting whether the target sequence value exists in a preset posterior mapping relation; when the target sequence value exists in the preset posterior mapping relation, a trigger determining module determines that the difference of the plurality of target attribute values is unacceptable based on attribute information corresponding to the target sequence value in the preset posterior mapping relation, wherein the preset posterior mapping relation comprises a mapping relation of the sequence value and the attribute information;
the output module is used for outputting the target sequence value and the plurality of target attribute values;
the determining module is further configured to:
determining the data types of the plurality of target attribute values before determining that the differences of the plurality of target attribute values are unacceptable based on the attribute information corresponding to the target sequence values in the preset posterior mapping relationship;
when the data type is a list, executing the attribute information corresponding to the target sequence value in the preset posterior mapping relation, and determining that the difference of the plurality of target attribute values is not acceptable;
and when the data type is the dictionary, recursion processing is carried out by taking the target attribute value of which the data type is the dictionary as new difference data to be posterior.
7. The apparatus of claim 6, wherein the determining module is specifically configured to:
determining whether the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition, wherein the attribute information corresponding to the target sequence value in the preset posterior mapping relation is that the difference value meets the preset condition;
and when the difference value of any two target attribute values in the plurality of target attribute values does not meet a preset condition, determining that the difference of the plurality of target attribute values is not acceptable.
8. The apparatus of claim 7, the determination module further to:
and when the difference value of any two target attribute values in the plurality of target attribute values meets a preset condition, determining that the difference of the plurality of target attribute values is acceptable.
9. The apparatus of claim 7, the preset conditions comprising at least one of:
less than a preset value;
zero.
10. The apparatus of any of claims 6 to 9, the detection module further to:
and triggering the output module to output the target sequence value and the plurality of target attribute values when the target sequence value does not exist in the preset posterior mapping relation.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 5.
12. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 5.
CN202010700248.4A 2020-07-20 2020-07-20 Method, device, equipment and storage medium for posterior difference data Active CN111831319B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010700248.4A CN111831319B (en) 2020-07-20 2020-07-20 Method, device, equipment and storage medium for posterior difference data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010700248.4A CN111831319B (en) 2020-07-20 2020-07-20 Method, device, equipment and storage medium for posterior difference data

Publications (2)

Publication Number Publication Date
CN111831319A CN111831319A (en) 2020-10-27
CN111831319B true CN111831319B (en) 2023-08-01

Family

ID=72922999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010700248.4A Active CN111831319B (en) 2020-07-20 2020-07-20 Method, device, equipment and storage medium for posterior difference data

Country Status (1)

Country Link
CN (1) CN111831319B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5571230B1 (en) * 2013-06-07 2014-08-13 日本電信電話株式会社 Evaluation system and evaluation method
CN106126958A (en) * 2016-07-06 2016-11-16 温冬梅 Health Service Laboratory biochemistry test automatic auditing method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5571230B1 (en) * 2013-06-07 2014-08-13 日本電信電話株式会社 Evaluation system and evaluation method
CN106126958A (en) * 2016-07-06 2016-11-16 温冬梅 Health Service Laboratory biochemistry test automatic auditing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
协同云计算下的差异区域数据挖掘平台设计与实现;韩冬;韩春庆;;现代电子技术(05);全文 *
黄山黟县双套自动观测站数据的质量评估;黄兴友;唐云志;张长春;;大气科学学报(02);全文 *

Also Published As

Publication number Publication date
CN111831319A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
JP7248756B2 (en) Operator registration processing method, apparatus and electronic equipment based on deep learning
JP7269913B2 (en) Knowledge graph construction method, device, electronic device, storage medium and computer program
CN111475164B (en) Component dependency relationship detection method and device and electronic equipment
CN112565356B (en) Data storage method and device and electronic equipment
US20210398022A1 (en) Method and apparatus of fusing operators, electronic device and storage medium
CN112015468B (en) Interface document processing method and device, electronic equipment and storage medium
US20210191921A1 (en) Method, apparatus, device and storage medium for data aggregation
CN114036443A (en) Page generation method and device
CN114816393B (en) Information generation method, device, equipment and storage medium
EP3869377A1 (en) Method and apparatus for data processing based on smart contract, device and storage medium
EP3889770A1 (en) Mini program material processing method and apparatus, electronic device, and medium
CN111831319B (en) Method, device, equipment and storage medium for posterior difference data
CN112069071B (en) Method and device for determining program suitability
US11941055B2 (en) Method and apparatus for graph computing, electronic device and storage medium
WO2021203635A1 (en) Distributed system running state monitoring method and apparatus, device, and storage medium
CN111831317B (en) Method and device for acquiring dependency relationship between services, electronic equipment and storage medium
CN114676062A (en) Method and device for testing difference data of interface, electronic equipment and medium
CN112783574A (en) Application program development method, device, equipment and storage medium
CN111523000A (en) Method, device, equipment and storage medium for importing data
CN113377660B (en) Test method and device
CN111459887B (en) Resource screening method and device, electronic equipment and storage medium
US11934292B2 (en) Sampling object determination method, electronic device, and computer-readable storage medium
CN111639032B (en) Method and apparatus for testing applications
CN112925482B (en) Data processing method, device, system, electronic equipment and computer storage medium
CN111930748B (en) Method, device, equipment and storage medium for tracking data of streaming computing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant