CN117785205A - Data evaluation method, device, electronic equipment and computer readable medium - Google Patents

Data evaluation method, device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN117785205A
CN117785205A CN202211156100.4A CN202211156100A CN117785205A CN 117785205 A CN117785205 A CN 117785205A CN 202211156100 A CN202211156100 A CN 202211156100A CN 117785205 A CN117785205 A CN 117785205A
Authority
CN
China
Prior art keywords
data
key
evaluation
nodes
determining
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.)
Pending
Application number
CN202211156100.4A
Other languages
Chinese (zh)
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.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information 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 Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202211156100.4A priority Critical patent/CN117785205A/en
Publication of CN117785205A publication Critical patent/CN117785205A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a data evaluation method, a data evaluation device, electronic equipment and a computer readable medium, and relates to the technical field of computers, wherein the method comprises the following steps: the method comprises the steps of receiving a data evaluation request, obtaining corresponding data to be evaluated and a source data identifier, and determining a corresponding coding language type according to the source data identifier; determining key nodes according to the coding language types, and acquiring key data corresponding to the key nodes from the data to be evaluated; generating a rendering image according to the key nodes and the key data; acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information; and comparing the rendered image with the historical rendered image based on the key nodes and the key data, determining a difference node, generating evaluation information according to the difference node and outputting the evaluation information. The time consumption of code evaluation after development can be saved, and the error rate in the aspects of code logic and the like can be reduced so as to improve the code quality.

Description

Data evaluation method, device, electronic equipment and computer readable medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data evaluation method, a data evaluation device, an electronic device, and a computer readable medium.
Background
At present, when a function enters a testing stage, a tester needs to know requirements, write test cases and test coverage aiming at newly added functions as far as possible, and the tester can miss test coverage of test points and historical stock functions while consuming time, so that problems are generated finally; after some historical legacy codes are handed over, the system is handed over and shared only in a general group meeting mode, and the follow-up iteration updating is also not carried out, so that the method is somewhat time-consuming and labor-consuming in a certain sense.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
most teams rely on manual code review, and research and development rely on their own knowledge of product requirements to inspect the code, which is time consuming and wasteful.
Disclosure of Invention
In view of this, the embodiments of the present application provide a data evaluation method, apparatus, electronic device, and computer readable medium, which can solve the problem that most of the existing teams rely on manual code review to develop and rely on their own knowledge of product requirements to inspect codes, which is time-consuming and wasteful.
To achieve the above object, according to one aspect of the embodiments of the present application, there is provided a data evaluation method, including:
receiving a data evaluation request, acquiring corresponding data to be evaluated and a source data identifier, and further determining a corresponding coding language type according to the source data identifier;
determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated;
generating a rendering image according to the key nodes and the key data;
acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information;
and comparing the rendered image with the historical rendered image based on the key nodes and the key data to determine difference nodes, and further generating and outputting evaluation information according to the difference nodes.
Optionally, the determining the key node according to the coding language type includes:
determining evaluation keywords and evaluation key grammar according to the coding language type;
and determining key nodes according to the evaluation key words and the evaluation key grammar.
Optionally, the acquiring key data corresponding to the key node from the data to be evaluated includes:
and acquiring data matched with the evaluation keywords and the evaluation keyword grammar from the data to be evaluated, and further determining the matched data as the key data corresponding to the key nodes.
Optionally, the generating a rendered image according to the key node and the key data includes:
determining the type of the key data, and determining a rendering identifier according to the type;
and determining the position of the key node in the data to be evaluated, and further generating a rendering image according to the rendering identifier and the position.
Optionally, the generating a rendered image according to the rendering identifier and the position includes:
determining the corresponding position of each rendering identifier in the positions, further placing each rendering identifier in the corresponding position, and further connecting each position to generate a rendering image.
Optionally, the obtaining the corresponding historical rendering image according to the requirement information includes:
determining a demand identifier and a service identifier in the demand information;
and searching a corresponding historical rendering image from a historical rendering image library according to the demand identifier and the service identifier.
Optionally, the comparing the rendered image with the historical rendered image to determine a difference node includes:
comparing the trend of key nodes in the rendered image and the historical rendered image;
and determining the key nodes with inconsistent trend under the same condition as difference nodes.
In addition, the application also provides a data evaluation device, which comprises:
the receiving unit is configured to receive a data evaluation request, acquire corresponding data to be evaluated and a source data identifier, and further determine a corresponding coding language type according to the source data identifier;
the key data acquisition unit is configured to determine key nodes according to the coding language type, and further acquire key data corresponding to the key nodes from the data to be evaluated;
a rendering image generation unit configured to generate a rendering image from the key node and the key data;
a history rendering image obtaining unit configured to obtain requirement information corresponding to the data evaluation request, and further obtain a corresponding history rendering image according to the requirement information;
and the evaluation unit is configured to compare the rendered image with the historical rendered image based on the key nodes and the key data so as to determine a difference node, and further generate and output evaluation information according to the difference node.
Optionally, the critical data acquisition unit is further configured to:
determining evaluation keywords and evaluation key grammar according to the coding language type;
and determining key nodes according to the evaluation key words and the evaluation key grammar.
Optionally, the critical data acquisition unit is further configured to:
and acquiring data matched with the evaluation keywords and the evaluation keyword grammar from the data to be evaluated, and further determining the matched data as the key data corresponding to the key nodes.
Optionally, the rendered image generation unit is further configured to:
determining the type of the key data, and determining a rendering identifier according to the type;
and determining the position of the key node in the data to be evaluated, and further generating a rendering image according to the rendering identifier and the position.
Optionally, the rendered image generation unit is further configured to:
determining the corresponding position of each rendering identifier in the positions, further placing each rendering identifier in the corresponding position, and further connecting each position to generate a rendering image.
Optionally, the history rendered image acquisition unit is further configured to:
determining a demand identifier and a service identifier in the demand information;
and searching a corresponding historical rendering image from a historical rendering image library according to the demand identifier and the service identifier.
Optionally, the evaluation unit is further configured to:
comparing the trend of key nodes in the rendered image and the historical rendered image;
and determining the key nodes with inconsistent trend under the same condition as difference nodes.
In addition, the application also provides data evaluation electronic equipment, which comprises: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the data evaluation method as described above.
In addition, the application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor implements the data evaluation method as described above.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps of obtaining corresponding data to be evaluated and source data identifiers by receiving a data evaluation request, and further determining corresponding coding language types according to the source data identifiers; determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated; generating a rendering image according to the key nodes and the key data; acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information; and comparing the rendered image with the historical rendered image based on the key nodes and the key data to determine difference nodes, and further generating and outputting evaluation information according to the difference nodes. The method can save time consumption of code evaluation after development when the code evaluation is performed, reduce time of code evaluation by related personnel, reduce error rate in aspects of code logic and the like, and improve code quality.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as unduly limiting the present application. Wherein:
FIG. 1 is a schematic diagram of the main flow of a data evaluation method provided according to one embodiment of the present application;
FIG. 2 is a schematic diagram of the main flow of a data evaluation method provided according to one embodiment of the present application;
FIG. 3 is a graphical code generation flow chart of a data evaluation method provided in accordance with one embodiment of the present application;
FIG. 4 is a graphical code comparison flow chart of a data evaluation method provided in accordance with one embodiment of the present application;
FIG. 5 is a schematic diagram of the main units of a data evaluation device according to an embodiment of the present application;
FIG. 6 is an exemplary system architecture diagram in which embodiments of the present application may be applied;
fig. 7 is a schematic diagram of a computer system suitable for use in implementing the terminal device or server of the embodiments of the present application.
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 data acquisition, storage, use, processing and the like in the technical scheme meet the relevant regulations of national laws and regulations.
Fig. 1 is a schematic diagram of main flow of a data evaluation method according to an embodiment of the present application, and as shown in fig. 1, the data evaluation method includes:
step S101, a data evaluation request is received, corresponding data to be evaluated and source data identifiers are obtained, and then corresponding coding language types are determined according to the source data identifiers.
In this embodiment, the execution subject (for example, may be a server) of the data evaluation method may receive the data evaluation request by means of a wired connection or a wireless connection. The data evaluation request may specifically be a request for evaluating a code corresponding to a certain service requirement. After receiving the data evaluation request, the execution body may acquire corresponding data to be evaluated, where the data to be evaluated may specifically be a code to be evaluated. The obtained source data identifier may be, for example, source code corresponding to the code to be evaluated. The execution body may determine a corresponding coding language type (in this embodiment of the present application, for example, object-oriented programming may also be computer programming) according to the source data identifier, where the coding language corresponding to the coding language type may be, for example, object-oriented programming language java, c#, or computer programming language php.
Step S102, determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated.
In the embodiment of the application, the key node: refers to key information such as logic judgment, database connection relation, external dependency capacity and the like in codes.
Specifically, the coding language corresponding to each coding language type may be composed of a specific function, a branching structure (if), a loop structure (for), and the like. The execution body may determine the corresponding key node according to a logical judgment, a logical branch, dependency information, database information, etc. in the coding language corresponding to the coding language type. And further acquiring key data corresponding to the key nodes from the data to be evaluated (such as the code to be evaluated), for example, the key data corresponding to the nodes such as logic judgment, logic branches, dependency information, database information and the like.
And step S103, generating a rendering image according to the key nodes and the key data.
Specifically, the generating a rendered image according to the key node and the key data includes: and determining the type of the key data, and determining a rendering identifier according to the type. For example, when the type of the key data is logic judgment, the corresponding rendering identifier may be a diamond pattern, and if the type of the key data is dependent information, the corresponding rendering identifier may be a tree pattern.
And determining the position of the key node in the data to be evaluated, and further generating a rendering image according to the rendering identifier and the position.
In the embodiment of the application, the key data, the key nodes and the positions of the data to be evaluated where the key nodes are located have a one-to-one correspondence relationship. After determining the rendering identifier corresponding to the key data, the execution body may continue to determine the position of the key node corresponding to the key data in the data to be evaluated (for example, the code to be evaluated), and place the rendering identifier at the position in the data to be evaluated where the corresponding key node is located, so as to generate the rendering image. The rendering image may be a flowchart obtained by connecting rendering identifiers of the key nodes according to a preset sequence, or may be a scatter diagram, and the form of the rendering image is not specifically limited in the embodiment of the present application.
Specifically, the generating a rendered image according to the rendering identifier and the position includes:
determining the position corresponding to each rendering identifier in each position of the data to be evaluated, where the key node is located, and then placing each rendering identifier in the corresponding position, and then connecting each position to generate a rendering image.
Step S104, obtaining the demand information corresponding to the data evaluation request, and further obtaining a corresponding historical rendering image according to the demand information.
The requirement information may be information including a requirement identifier and a service identifier, which are input by a user and acquired by the executing body.
Specifically, the obtaining the corresponding historical rendering image according to the requirement information includes:
determining a demand identifier and a service identifier in the demand information; and searching a corresponding historical rendering image from a historical rendering image library according to the demand identifier and the service identifier. I.e. find the same or similar history rendered image as the current demand and business from the history rendered image library. The history rendering image may be a flowchart or a scatter diagram, and the form of the history rendering image is not specifically limited in the embodiment of the present application.
Step S105, comparing the rendered image and the historical rendered image based on the key node and the key data to determine a difference node, and further generating and outputting evaluation information according to the difference node.
Specifically, the comparing the rendered image with the historical rendered image to determine a difference node includes:
and comparing the trend of the key nodes in the rendered image and the historical rendered image. By way of example, trend, refers to: there may be a large number of decision blocks in the graphical flow chart (i.e., the rendered image) generated by the code, for example, there may be a key node in the transaction flow that decides "whether an order already exists? If so, the trend is that the order cannot be repeatedly created, and the follow-up process trend of repeated order entering is carried out; if not, the trend is to continue to enter the next flow node to create an order, so that the key nodes formed in the imaging flow chart (i.e. the rendered image) can have different branch trends of the judging module.
And determining the key nodes with inconsistent trend under the same condition as difference nodes.
For example, when the subsequent flow corresponding to the same key node a in the rendered image and the history rendered image is to determine whether an order exists, if the trend of the corresponding key node in the rendered image is yes, and if the trend of the corresponding key node in the history rendered image is no, the key node a is the difference node between the rendered image and the history rendered image.
According to the embodiment, through receiving a data evaluation request, corresponding data to be evaluated and source data identifiers are obtained, and then corresponding coding language types are determined according to the source data identifiers; determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated; generating a rendering image according to the key nodes and the key data; acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information; and comparing the rendered image with the historical rendered image based on the key nodes and the key data to determine difference nodes, and further generating and outputting evaluation information according to the difference nodes. The method can save time consumption of code evaluation after development when the code evaluation is performed, reduce time of code evaluation by related personnel, reduce error rate in aspects of code logic and the like, and improve code quality.
Fig. 2 is a main flow chart of a data evaluation method according to an embodiment of the present application, and as shown in fig. 2, the data evaluation method includes:
step S201, a data evaluation request is received, corresponding data to be evaluated and source data identifiers are obtained, and then corresponding coding language types are determined according to the source data identifiers.
Step S202, determining an evaluation keyword and an evaluation key grammar according to the coding language type.
And determining the evaluation keywords and the evaluation key grammar corresponding to the corresponding coding language according to the coding language type. The evaluation keywords may be words representing judgment and execution time in the data to be evaluated, such as IF, until, etc., and the evaluation key grammar may be various functions in the data to be evaluated, such as a conversion function clong () or (int) (), a judgment function IF (F2 > {0,1,3,5,10}, etc., for example.
And step S203, determining key nodes according to the evaluation keywords and the evaluation key grammar.
After determining the evaluation keywords and the evaluation key grammar, the execution subject can locate key nodes in the data to be evaluated according to the evaluation keywords and the evaluation key grammar. For example, one judgment statement corresponding to the evaluation keyword and the evaluation keyword grammar in the evaluation data is determined as one key node.
Step S204, obtaining key data corresponding to the key nodes from the data to be evaluated.
In the data to be evaluated (i.e. the code to be evaluated), the key data corresponding to the key node may be a whole sentence judgment sentence corresponding to the key node.
Specifically, the obtaining the key data corresponding to the key node from the data to be evaluated includes:
and acquiring data matched with the evaluation keywords and the evaluation key grammar from the data to be evaluated (for example, the data which contains the evaluation keywords and the evaluation key grammar in the data to be evaluated), and determining the matched data as key data corresponding to the key node.
Step S205, generating a rendered image according to the key node and the key data.
The form of the rendered image may be a flowchart, and the embodiment of the present application does not specifically limit the form of the rendered image. In the embodiment of the application, the key node: refers to key information such as logic judgment, database connection relation, external dependency capacity and the like in codes.
Step S206, obtaining the demand information corresponding to the data evaluation request, and further obtaining a corresponding historical rendering image according to the demand information.
Step S207, comparing the rendered image and the historical rendered image based on the key node and the key data to determine a difference node, and further generating and outputting evaluation information according to the difference node.
The embodiment of the application can save time consumption of code evaluation after development when the code evaluation is performed, reduce time of code evaluation by related personnel, reduce error rate in aspects of code logic and the like, and improve code quality.
FIG. 3 is a graphical code generation flow chart of a data evaluation method provided in accordance with one embodiment of the present application. The data evaluation method of the embodiment of the application can be applied to a scene of evaluating codes. The process of graphically generating the code in the embodiments of the present application is a process of generating a rendering image based on the data to be evaluated. Firstly, a user can select different languages through a front-end web page and then go up passage codes, wherein the different languages selected by the user refer to programming languages corresponding to source codes corresponding to data to be evaluated. After receiving the selected language input by the user, the execution main body receives the codes uploaded by the user, namely the data to be evaluated, then detects whether the uploaded compiled codes are normal or not according to the language failure, and whether the uploaded compiled codes accord with the specifications of grammar and the like, if not, the process is ended, abnormal page prompt is carried out, if yes, the uploaded codes are analyzed, namely the code analysis is carried out according to different languages, including information such as logic judgment, interface calling, external dependence, a bottom database and the like, then key nodes are extracted according to the information such as keywords, grammar and the like, page element data corresponding to the key nodes are spliced, and graphical rendering is carried out, so that a rendered image is generated.
In the process of generating the graphic code (i.e., the rendered image mentioned in the present application), a code parsing module, a key node grabbing module, a key node saving module and an image rendering module are needed, and these modules are all present in the execution body. Specifically, the code parsing module: analyzing important information such as class-method-variable in the code by analyzing the code; the key node grabbing module: grabbing key nodes in the parsed codes: logic judgment, logic branching, dependency information, database and other information; key node saving module: and storing the key node information and the grabbing records. A graphics rendering module: and rendering the page through returning the key node information stored by the key node storage module.
The process of generating the graphical code:
1. the user selects source code languages (java, c#, php and the like) through the page, and clicks and analyzes the passcodes (source code jar packages and the like);
2. the bottom layer of the system (i.e. the execution main body) performs grabbing and storing of key nodes (service nodes, logic nodes and dependent information nodes) through different languages;
3. and returning the key data and the nodes to the page, and rendering the image.
The problems of the current data to be evaluated (such as the code to be evaluated) can be conveniently and rapidly determined in a graphical code mode, and the historical data (such as the historical code) contained in the data to be evaluated can be evaluated by one key, so that labor is saved, and the data evaluation efficiency is improved.
FIG. 4 is a graphical code comparison flow chart of a data evaluation method provided in accordance with one embodiment of the present application. As shown in FIG. 4, a user may select one or more different versions of a history code generation map, i.e., history rendered images, via a front-end web page. The version selected by the user is consistent with the source language of the data to be evaluated. When a user selects a plurality of different versions of the history code generation map, the selected plurality of different versions of the history code generation map may be generated by a plurality of different staff operations to cooperatively fulfill a business requirement. Specifically, the user selects a generated version (version, here, source code language) corresponding to the historical rendering image on the web page, after receiving the generated version selected by the user, the execution main body (for example, a server) can acquire key nodes (called historical version key nodes) of corresponding historical version code data, judge whether the historical version key nodes can be normally acquired, if not, finish the process, prompt an abnormal page, if yes, pull the historical version key nodes through a bottom record, compare differences through the key nodes, assemble the response of the key nodes and the difference nodes when the key nodes have differences, graphically render the data to be evaluated, mark and describe the difference nodes (describing the content of the difference information, the position of the difference information, the difference value and the like, and the like), and end the data evaluation process.
In the process of comparing the imaging codes, a key node acquisition module, a key node comparison module and a difference image rendering module are needed, and the modules are all in an execution main body. Wherein, the key node acquisition module: acquiring information of key nodes of a history version stored before; the key node comparison module: the method is completed by comparing the aspects of trend, information consistency and the like of key nodes; a differential graphics rendering module: and performing rendering mark highlighting in the page through the returned difference key points and the same key points.
An imaging code comparison process:
1) The user selects versions generated by different histories through the page, and clicks and compares the versions;
2) The bottom layer of the system (i.e. the execution body) obtains and compares the key nodes through the history version record, and outputs difference nodes and difference information description;
3) And returning the key data and the difference nodes to the page, and rendering the image.
The problems of the current data to be evaluated (such as the code to be evaluated) can be conveniently and rapidly determined in a graphical code mode, and the historical data (such as the historical code) contained in the data to be evaluated can be evaluated by one key, so that labor is saved, and the data evaluation efficiency is improved.
Fig. 5 is a schematic diagram of main units of the data evaluation apparatus according to the embodiment of the present application. As shown in fig. 5, the data evaluation apparatus 500 includes a receiving unit 501, a key data acquiring unit 502, a rendered image generating unit 503, a history rendered image acquiring unit 504, and an evaluating unit 505.
The receiving unit 501 is configured to receive a data evaluation request, obtain corresponding data to be evaluated and a source data identifier, and further determine a corresponding coding language type according to the source data identifier.
And the key data acquisition unit 502 is configured to determine key nodes according to the coding language type, and further acquire key data corresponding to the key nodes from the data to be evaluated.
A rendered image generation unit 503 configured to generate a rendered image from the key node and the key data.
The history rendering image obtaining unit 504 is configured to obtain the requirement information corresponding to the data evaluation request, and further obtain a corresponding history rendering image according to the requirement information.
And an evaluation unit 505 configured to compare the rendered image and the history rendered image based on the key node and the key data, to determine a difference node, and further generate evaluation information according to the difference node and output.
In some embodiments, the critical data acquisition unit 502 is further configured to: determining evaluation keywords and evaluation key grammar according to the coding language type; and determining key nodes according to the evaluation key words and the evaluation key grammar.
In some embodiments, the critical data acquisition unit 502 is further configured to: and acquiring data matched with the evaluation keywords and the evaluation keyword grammar from the data to be evaluated, and further determining the matched data as the key data corresponding to the key nodes.
In some embodiments, the rendered image generation unit 503 is further configured to: determining the type of the key data, and determining a rendering identifier according to the type; and determining the position of the key node in the data to be evaluated, and further generating a rendering image according to the rendering identifier and the position.
In some embodiments, the rendered image generation unit 503 is further configured to: determining the corresponding position of each rendering identifier in the positions, further placing each rendering identifier in the corresponding position, and further connecting each position to generate a rendering image.
In some embodiments, the history rendered image acquisition unit 504 is further configured to: determining a demand identifier and a service identifier in the demand information; and searching a corresponding historical rendering image from a historical rendering image library according to the demand identifier and the service identifier.
In some embodiments, the evaluation unit 505 is further configured to: comparing the trend of key nodes in the rendered image and the historical rendered image; and determining the key nodes with inconsistent trend under the same condition as difference nodes.
In the present application, the data evaluation method and the data evaluation device have a corresponding relationship in terms of implementation content, so that the description is not repeated.
Fig. 6 illustrates an exemplary system architecture 600 in which the data evaluation method or data evaluation apparatus of embodiments of the present application may be applied.
As shown in fig. 6, the system architecture 600 may include terminal devices 601, 602, 603, a network 604, and a server 605. The network 604 is used as a medium to provide communication links between the terminal devices 601, 602, 603 and the server 605. The network 604 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 605 via the network 604 using the terminal devices 601, 602, 603 to receive or send messages, etc. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 601, 602, 603.
The terminal devices 601, 602, 603 may be various electronic devices having a data evaluation processing screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 605 may be a server providing various services, such as a background management server (by way of example only) providing support for data evaluation requests submitted by users using the terminal devices 601, 602, 603. The background management server can receive the data evaluation request, acquire corresponding data to be evaluated and source data identification, and further determine a corresponding coding language type according to the source data identification; determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated; generating a rendering image according to the key nodes and the key data; acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information; and comparing the rendered image with the historical rendered image based on the key nodes and the key data to determine difference nodes, and further generating and outputting evaluation information according to the difference nodes. The method can save time consumption of code evaluation after development when the code evaluation is performed, reduce time of code evaluation by related personnel, reduce error rate in aspects of code logic and the like, and improve code quality.
It should be noted that, the data evaluation method provided in the embodiment of the present application is generally executed by the server 605, and accordingly, the data evaluation device is generally disposed in the server 605.
It should be understood that the number of terminal devices, networks and servers in fig. 6 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 7, there is illustrated a schematic diagram of a computer system 700 suitable for use in implementing the terminal device of an embodiment of the present application. The terminal device shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data required for the operation of the computer system 700 are also stored. The CPU701, ROM702, and RAM703 are connected to each other through a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including a Cathode Ray Tube (CRT), a liquid crystal credit authorization query processor (LCD), and the like, and a speaker, and the like; a storage section 708 including a hard disk or the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. The drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read therefrom is mounted into the storage section 708 as necessary.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 709, and/or installed from the removable medium 711. The above-described functions defined in the system of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 701.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes a receiving unit, a key data acquisition unit, a rendered image generation unit, a history rendered image acquisition unit, and an evaluation unit. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the equipment, the equipment receives a data evaluation request, acquires corresponding data to be evaluated and a source data identifier, and further determines a corresponding coding language type according to the source data identifier; determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated; generating a rendering image according to the key nodes and the key data; acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information; and comparing the rendered image with the historical rendered image based on the key nodes and the key data to determine difference nodes, and further generating and outputting evaluation information according to the difference nodes.
According to the technical scheme of the embodiment of the application, time consumption of code evaluation after development can be saved when the code evaluation is carried out, time of code evaluation by related personnel is reduced, error rate in aspects of code logic and the like is reduced, and code quality is improved. .
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 can occur depending upon 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 data evaluation, comprising:
receiving a data evaluation request, acquiring corresponding data to be evaluated and a source data identifier, and further determining a corresponding coding language type according to the source data identifier;
determining key nodes according to the coding language types, and further acquiring key data corresponding to the key nodes from the data to be evaluated;
generating a rendering image according to the key nodes and the key data;
acquiring the demand information corresponding to the data evaluation request, and further acquiring a corresponding historical rendering image according to the demand information;
and comparing the rendered image with the historical rendered image based on the key nodes and the key data to determine difference nodes, and further generating and outputting evaluation information according to the difference nodes.
2. The method of claim 1, wherein said determining key nodes based on said coding language type comprises:
determining evaluation keywords and evaluation key grammar according to the coding language type;
and determining key nodes according to the evaluation key words and the evaluation key grammar.
3. The method according to claim 2, wherein the obtaining key data corresponding to the key node from the data to be evaluated includes:
and acquiring data matched with the evaluation keywords and the evaluation keyword grammar from the data to be evaluated, and further determining the matched data as the key data corresponding to the key nodes.
4. The method of claim 1, wherein the generating a rendered image from the key nodes and the key data comprises:
determining the type of the key data, and determining a rendering identifier according to the type;
and determining the position of the key node in the data to be evaluated, and further generating a rendering image according to the rendering identifier and the position.
5. The method of claim 4, wherein generating a rendered image from the rendering identification and the location comprises:
determining the corresponding position of each rendering identifier in the positions, further placing each rendering identifier in the corresponding position, and further connecting each position to generate a rendering image.
6. The method of claim 1, wherein the obtaining the corresponding historical rendered image from the demand information comprises:
determining a demand identifier and a service identifier in the demand information;
and searching a corresponding historical rendering image from a historical rendering image library according to the demand identifier and the service identifier.
7. The method of claim 1, wherein the comparing the rendered image and the historical rendered image to determine a difference node comprises:
comparing the trend of key nodes in the rendered image and the historical rendered image;
and determining the key nodes with inconsistent trend under the same condition as difference nodes.
8. A data evaluation device, comprising:
the receiving unit is configured to receive a data evaluation request, acquire corresponding data to be evaluated and a source data identifier, and further determine a corresponding coding language type according to the source data identifier;
the key data acquisition unit is configured to determine key nodes according to the coding language type, and further acquire key data corresponding to the key nodes from the data to be evaluated;
a rendering image generation unit configured to generate a rendering image from the key node and the key data;
a history rendering image obtaining unit configured to obtain requirement information corresponding to the data evaluation request, and further obtain a corresponding history rendering image according to the requirement information;
and the evaluation unit is configured to compare the rendered image with the historical rendered image based on the key nodes and the key data so as to determine a difference node, and further generate and output evaluation information according to the difference node.
9. The apparatus of claim 8, wherein the critical data acquisition unit is further configured to:
determining evaluation keywords and evaluation key grammar according to the coding language type;
and determining key nodes according to the evaluation key words and the evaluation key grammar.
10. The apparatus of claim 9, wherein the critical data acquisition unit is further configured to:
and acquiring data matched with the evaluation keywords and the evaluation keyword grammar from the data to be evaluated, and further determining the matched data as the key data corresponding to the key nodes.
11. A data evaluation electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
12. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202211156100.4A 2022-09-22 2022-09-22 Data evaluation method, device, electronic equipment and computer readable medium Pending CN117785205A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211156100.4A CN117785205A (en) 2022-09-22 2022-09-22 Data evaluation method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211156100.4A CN117785205A (en) 2022-09-22 2022-09-22 Data evaluation method, device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN117785205A true CN117785205A (en) 2024-03-29

Family

ID=90394993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211156100.4A Pending CN117785205A (en) 2022-09-22 2022-09-22 Data evaluation method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN117785205A (en)

Similar Documents

Publication Publication Date Title
CN109492053B (en) Method and device for accessing data
CN107643984B (en) Method and apparatus for outputting information
CN112527649A (en) Test case generation method and device
CN113448869B (en) Method and device for generating test case, electronic equipment and computer readable medium
CN114281663A (en) Test processing method, test processing device, electronic equipment and storage medium
CN114297278A (en) Method, system and device for quickly writing batch data
CN113419740A (en) Program data stream analysis method and device, electronic device and readable storage medium
CN111339743B (en) Account number generation method and device
CN111581431B (en) Data exploration method and device based on dynamic evaluation
CN110764769B (en) Method and device for processing user request
CN116560661A (en) Code optimization method, device, equipment and storage medium
CN111026629A (en) Method and device for automatically generating test script
CN115422202A (en) Service model generation method, service data query method, device and equipment
CN117785205A (en) Data evaluation method, device, electronic equipment and computer readable medium
CN112131257B (en) Data query method and device
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN112256566A (en) Test case preservation method and device
CN115190008B (en) Fault processing method, fault processing device, electronic equipment and storage medium
CN116108132B (en) Method and device for auditing text of short message
CN116452208B (en) Method, device, equipment and medium for determining change transaction code
CN116301869B (en) Front-end page configuration management and control system, method, equipment and medium
CN116680184A (en) Code scanning method, device, electronic equipment and medium
CN113110947B (en) Program call chain generation method, system, electronic device and medium
CN108536362B (en) Method and device for identifying operation and server
CN116661857A (en) Data extraction method, device, equipment and storage medium

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