CN112416782A - Test result verification method and device and electronic equipment - Google Patents

Test result verification method and device and electronic equipment Download PDF

Info

Publication number
CN112416782A
CN112416782A CN202011342305.2A CN202011342305A CN112416782A CN 112416782 A CN112416782 A CN 112416782A CN 202011342305 A CN202011342305 A CN 202011342305A CN 112416782 A CN112416782 A CN 112416782A
Authority
CN
China
Prior art keywords
code
test
test result
sample
verification model
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
CN202011342305.2A
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.)
Shanghai Xinlian Information Development Co Ltd
Original Assignee
Shanghai Xinlian Information Development 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 Shanghai Xinlian Information Development Co Ltd filed Critical Shanghai Xinlian Information Development Co Ltd
Priority to CN202011342305.2A priority Critical patent/CN112416782A/en
Publication of CN112416782A publication Critical patent/CN112416782A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis

Abstract

The invention provides a method, a device and electronic equipment for verifying a test result, which relate to the technical field of computers, and the method comprises the steps of obtaining a first test code sample and a plurality of code attributes of the first test code sample; determining an initial test result verification model based on a plurality of code attributes of the first test code sample; performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample, and determining a target test result verification model so as to verify the test result of the code to be tested through the target test result verification model; wherein the second test code sample is the same number of test code samples as the first test code sample. According to the invention, the accuracy of the test result can be accurately verified by comparing the obtained target test result verification model with the test result of the code to be tested, and the accuracy of quality judgment of the automatic test script is further improved.

Description

Test result verification method and device and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for verifying a test result, and an electronic device.
Background
DevOps (a combination of Development and Operations) is a collective term for a set of processes, methods and systems for facilitating communication, collaboration and integration between Development (application/software engineering), technical Operations and Quality Assurance (QA) departments. The DevOps platform provides a plurality of capability platforms such as agility collaboration, code management, pipeline engines, construction engines, code inspection, automatic testing and measurement data, and provides an automatic management solution for the whole software code in a plurality of scenes such as research and development, testing, operation and maintenance, collaboration, automation and measurement. However, for automated testing and metrology in the DevOps platform, the tools currently provided on the market can only solve the statistical function of the result data, and cannot verify the accuracy of the test result of the automated testing.
Disclosure of Invention
The invention aims to provide a test result verification method, a test result verification device and electronic equipment.
In a first aspect, the present invention provides a method for verifying a test result, the method comprising: acquiring a first test code sample and a plurality of code attributes of the first test code sample; determining an initial test result verification model based on a plurality of code attributes of the first test code sample; performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample, and determining a target test result verification model so as to verify the test result of the code to be tested through the target test result verification model; wherein the second test code sample is the same number of test code samples as the first test code sample.
In an alternative embodiment, the step of obtaining the first test code sample and the plurality of code attributes of the first test code sample includes: selecting test codes of a plurality of test items; determining the test codes of the selected test items as a first test code sample; obtaining a plurality of code attributes corresponding to a first test code sample; the code attributes at least comprise the number of pages of a document occupied by the thousand lines of codes, the average working age of developers, the changing times of test requirements, the daily average code production number and the defect rate of the thousand lines of codes.
In an alternative embodiment, the method is applied to a DevOps platform.
In an alternative embodiment, the step of determining an initial test result verification model based on a plurality of code attributes of the first test code sample comprises: establishing a linear regression equation based on a plurality of code attributes of the first test code sample; performing linear regression calculation on the linear regression equation, and determining the weight value of each code attribute; an initial test result verification model is determined based on the linear regression equation and the weight values.
In an alternative embodiment, the linear regression equation further includes an error value of the code property value corresponding to the first test code sample; performing linear regression calculation on the linear regression equation, and determining a weight value of each code attribute, wherein the step comprises the following steps of: and performing linear regression calculation on the linear regression equation, and determining the weight value of the corresponding code attribute when each error value is smaller than a specified threshold value.
In an optional embodiment, the step of performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample to determine a target test result verification model includes: selecting second test code samples with the same quantity as the first test code samples; performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample to determine a target test result verification model; and each code attribute of the second test code sample meets a preset fitting relation.
In an optional embodiment, the step of verifying the test result of the code to be tested by using the target test result verification model includes: executing automatic test operation on the code to be tested, and determining a test result; and verifying the test result of the code to be tested through the target test result verification model.
In a second aspect, the present invention provides a device for verifying a test result, the device comprising: the system comprises an acquisition module, a storage module and a control module, wherein the acquisition module is used for acquiring a first test code sample and a plurality of code attributes of the first test code sample; an initial model determination module to determine an initial test result validation model based on a plurality of code attributes of a first test code sample; and the target model determining module is used for performing iterative calculation on the test result verification model based on a plurality of code attributes corresponding to the second test code sample, and determining the target test result verification model so as to verify the test result of the code to be tested through the target test result verification model.
In a third aspect, the present invention provides an electronic device comprising a processor and a memory; the memory has stored thereon a computer program which, when executed by the processor, performs a method of validating a test result according to any one of the preceding embodiments.
In a fourth aspect, the present invention provides a computer readable storage medium for storing computer software instructions for a method for verifying test results according to any one of the preceding embodiments.
The method comprises the steps of firstly obtaining a first test code sample and a plurality of code attributes of the first test code sample, then determining an initial test result verification model based on the plurality of code attributes of the first test code sample, and finally performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to a second test code sample (the number of test code samples is the same as that of the first test code sample) to determine a target test result verification model so as to verify the test result of a code to be tested through the target test result verification model. According to the method, the initial test result verification model is established through the code attributes corresponding to the obtained first test code sample, iterative calculation is carried out through the code attributes corresponding to the second test code sample, the initial test result verification model can be optimized, and therefore the accuracy of the test result can be accurately verified through comparison between the obtained target test result verification model and the test result of the code to be tested, and the accuracy of automatic test script quality judgment is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a method for verifying a test result according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for verifying test results according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for verifying a test result according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Considering that when the existing DevOps platform realizes the automatic testing and measuring functions, the existing tools provided on the market can only solve the problem that the accuracy of the test result of the automatic test cannot be verified, but the statistical function of the result data can only be solved, the embodiment of the invention provides a method, a device and electronic equipment for verifying the test result, which can accurately verify the accuracy of the test result and further improve the accuracy of the quality judgment of the automatic test script.
For convenience of understanding, first, a method for verifying a test result provided by an embodiment of the present invention is described in detail, referring to a schematic flow chart of a method for verifying a test result shown in fig. 1, where the method can be applied to a DevOps platform and mainly includes the following steps S102 to S106:
step S102, a first test code sample and a plurality of code attributes of the first test code sample are obtained.
When performing automated testing, test code is generally written for a development project in advance, so as to perform automated testing on the project based on the test code. In order to improve the universality of the method, so that the finally established target test result verification model can be suitable for different development projects, the first test code sample can comprise a plurality of test codes of different development projects. Since the code attributes (such as the number of pages of a design document, the experience of a writer, and the number of test-requirement changes) of each test code are mostly different, the code attributes of each first test code sample need to be acquired.
Step S104, determining an initial test result verification model based on a plurality of code attributes of the first test code sample.
It is understood that the test code corresponding to each development project in the first test code sample corresponds to a plurality of code attributes, each of which may be represented in a numerical form, so that the initial test result verification model may be established based on the values of the plurality of attributes corresponding to the first test code sample, for example, a linear regression equation may be used to correlate the plurality of code attributes of the first test code sample, and each code attribute is given a corresponding weight, so that a linear regression relationship is satisfied between the values of the plurality of code attributes.
And S106, performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample, and determining a target test result verification model so as to verify the test result of the code to be tested through the target test result verification model.
The second test code sample may be a test code corresponding to the same number of development projects as the first test code sample, the multiple code attributes corresponding to the second test code sample may include attributes such as the number of pages of a design document, the experience of a writer, and the number of changes in test requirements, and the multiple code attributes corresponding to the second test code sample may also be represented by numeralization. And performing iterative computation on the initial test result verification model through the code attributes, namely updating the code attributes of the second test code sample through the code attributes of the second test code sample so as to update and verify the weights of the code attributes of the initial test result verification model, thereby obtaining the target test result verification model.
According to the verification method of the test result provided by the embodiment of the invention, the initial test result verification model is established through the code attributes corresponding to the obtained first test code sample, the iterative calculation is carried out through the plurality of code attributes corresponding to the second test code sample (the number of the test code samples is the same as that of the first test code sample), the initial test result verification model can be optimized, and thus the target test result verification model is obtained, so that the test result of the code to be tested is verified through the target test result verification model, and the accuracy of the test result can be accurately verified by comparing the target test result verification model with the test result of the code to be tested, and the accuracy of automatic test script quality judgment is further improved.
In an implementation manner, test codes of a plurality of test items can be selected first, then the selected test codes of the plurality of test items are determined as a first test code sample, the test items are also items corresponding to the open items, and a plurality of code attributes corresponding to the first test code sample are obtained, wherein the code attributes at least comprise the number of pages of a document occupied by thousand lines of codes, the average working age of developers, the number of times of changing test requirements, the number of produced day-average codes and the defect rate of the thousand lines of codes. In one embodiment, the code attributes may be found in table 1 below:
TABLE 1 code attributes corresponding to a first test code sample
Figure BDA0002797461310000071
The design document page number of the thousand lines of codes is used for representing the document page number occupied by each thousand lines of codes in a software program, and the quality and the test quantity of the codes can be reflected; the average working age of developers is the average working age number of code developers, and can reflect the code quality; the quality of code development is directly influenced by testing the number of times of change of the requirement (namely the number of times of change of the requirement), and the quality of code development is relatively reduced as the number of times of change of the requirement is more; the daily average code production number is the number of codes produced by each employee at the working age every day and is used for representing the efficiency and quality of writing codes by the employees; the defect rate of the thousand lines of codes is a key index for measuring the quality of software codes.
After determining the plurality of code attributes of the first test code sample, a linear regression equation is established based on the plurality of code attributes of the first test code sample. A linear regression equation such as may be understood is that for a simple dataset, where each sample has 2 features, a plane may be found to fit the labels in the dataset according to a linear regression algorithm. The linear regression equation established in this embodiment is shown in formula (1):
Figure BDA0002797461310000081
wherein x is1,x2,……xnFor values corresponding to code properties, θ0,θ1……,θnA weight corresponding to each code attribute value.
The weight value of each code attribute can be determined by performing linear regression calculation on the linear regression equation, and after the weight value is determined, an initial test result verification model can be determined based on the linear regression equation and the weight value.
Further, the linear regression equation further includes error values of the code attribute values corresponding to the first test code sample, and when the linear regression equation is subjected to linear regression calculation, the weight value of the corresponding code attribute is determined when each error value is smaller than a specified threshold value. In one embodiment, the linear regression equation is referred to in equation (2):
y(i)=θTx(i)(i) (2)
wherein epsilon(i)For the error value of the code attribute value corresponding to the first test code sample, the specified threshold may be the minimum value of the error values, and the weight value is the weight value θ corresponding to the minimum value of each ∈ (error). In one embodiment, for the code attribute values in table 1, after multi-sample calculation, a relational expression between the number of pages of the design document of the thousand lines of codes, the average age of the developers, the number of required changes, the number of production codes per day per age of the employees, and the defect rate of the thousand lines of codes can be obtained: the code defect rate of one thousand lines is 0.196+0.108 one thousand lines of codes, the number of pages of a design document is +0.132 one average work age of developers +0.155 one demand change number +0.129 one production code number per day of work age of each employee, wherein parameters before each code attribute are corresponding weight values.
In one embodiment, after determining the initial test result verification model, a second test code sample may be selected that corresponds to the same number of development projects as the first test code sample, the second test code sample having a plurality of code attributes, such as the same code attributes as the first test code sample: the number of pages of a document occupied by the thousand lines of codes, the average working age of developers, the number of times of changing test requirements, the daily average code production number and the defect rate of the thousand lines of codes. For ease of understanding, see table 2 below:
TABLE 2 code attributes corresponding to the second test code sample
Figure BDA0002797461310000091
And then, performing iterative computation on the initial test result verification model based on the second test code sample to determine a target test result verification model, and performing multiple linear regression computation on the code attribute values in the table 2 to obtain the best fitting relationship among the parameters, so as to establish the target test result verification model (which can also be called a thousand-line code defect rate computation model).
In addition, after the target test result verification model is obtained, automatic test operation can be performed on the code to be tested, the test result is determined, and then the test result of the code to be tested is verified through the target test result verification model. When a tester takes a set of test codes and completes the test, an actual kiloline code defect rate value can be obtained, and whether the test result is reasonable or not can be analyzed by comparing the value with the kiloline code defect rate model calculation value. If the deviation is small, the testing process is normalized, and if the deviation is large, the testing process is neglected.
The present embodiment further provides a method for verifying a test result, referring to a flowchart of another method for verifying a test result shown in fig. 2, the method mainly includes the following steps S202 to S206:
step S202, a plurality of test samples are selected, and a plurality of attribute values related to the automatic test are obtained from the test samples.
And step S204, a linear regression algorithm is selected, and a linear regression equation is established by analyzing the plurality of sample attribute values.
And S206, selecting a plurality of test samples to verify the equation, obtaining the best fitting relation among the parameters through a plurality of times of algorithm learning, and establishing a thousand-line code defect rate calculation model. The thousand-line code defect rate calculation model is also the target test result verification model.
The verification method for the test result provided by the embodiment can effectively verify the test process of the tester by establishing the kiloline code defect rate model.
For the verification method of the test result shown in fig. 1, an embodiment of the present invention further provides a verification apparatus of the test result, referring to a schematic structural diagram of the verification apparatus of the test result shown in fig. 3, the apparatus mainly includes the following components:
an obtaining module 302, configured to obtain a first test code sample and a plurality of code attributes of the first test code sample;
an initial model determination module 304 for determining an initial test result verification model based on a plurality of code attributes of the first test code sample;
the target model determining module 306 is configured to perform iterative computation on the test result verification model based on a plurality of code attributes corresponding to the second test code sample, and determine the target test result verification model so as to verify the test result of the code to be tested through the target test result verification model; wherein the second test code sample is the same number of test code samples as the first test code sample.
According to the verification device for the test result, the initial test result verification model is established through the code attributes corresponding to the obtained first test code sample, iterative calculation is carried out through the plurality of code attributes corresponding to the second test code sample (the number of the test code samples is the same as that of the first test code sample), the initial test result verification model can be optimized, and therefore the accuracy of the test result can be accurately verified through comparison of the obtained target test result verification model and the test result of the code to be tested, and the accuracy of automatic test script quality judgment is further improved.
In an embodiment, the obtaining module 302 is further configured to select test codes of a plurality of test items; determining the test codes of the selected test items as a first test code sample; obtaining a plurality of code attributes corresponding to a first test code sample; the code attributes at least comprise the number of pages of a document occupied by the thousand lines of codes, the average working age of developers, the changing times of test requirements, the daily average code production number and the defect rate of the thousand lines of codes.
In one embodiment, the above apparatus is applied to a DevOps platform.
In one embodiment, the initial model determination module 304 is further configured to establish a linear regression equation based on the plurality of code attributes of the first test code sample; performing linear regression calculation on the linear regression equation, and determining the weight value of each code attribute; an initial test result verification model is determined based on the linear regression equation and the weight values.
In one embodiment, the linear regression equation further includes an error value of the code property value corresponding to the first test code sample; the initial model determining module 304 is further configured to perform a linear regression calculation on the linear regression equation, and determine a weight value of the corresponding code attribute when each error value is smaller than a specified threshold.
In one embodiment, the target model determining module 306 is further configured to select a second test code sample having the same number as the first test code sample; performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample to determine a target test result verification model; and each code attribute of the second test code sample meets a preset fitting relation.
In one embodiment, the apparatus further includes a verification module, configured to perform an automated testing operation on the code to be tested, and determine a testing result; and verifying the test result of the code to be tested through the target test result verification model.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention provides electronic equipment, which particularly comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 4 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected through the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The memory 41 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The bus 42 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The memory 41 is used for storing a program, the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40, or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 40. The Processor 40 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the method in combination with the hardware thereof.
The method and apparatus for verifying a test result and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a nonvolatile program code executable by a processor, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, the method described in the foregoing method embodiments is executed.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the system described above may refer to the corresponding process in the foregoing embodiments, and is not described herein again.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for validating test results, the method comprising:
obtaining a first test code sample and a plurality of code attributes of the first test code sample;
determining an initial test result validation model based on a plurality of the code attributes of the first test code sample;
performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to a second test code sample, and determining a target test result verification model so as to verify the test result of the code to be tested through the target test result verification model; wherein the second test code sample is the same number of test code samples as the first test code sample.
2. The method of claim 1, wherein the step of obtaining the first test code sample and the plurality of code attributes of the first test code sample comprises:
selecting test codes of a plurality of test items;
determining the test codes of the selected plurality of test items as a first test code sample;
obtaining a plurality of code attributes corresponding to the first test code sample; the code attributes at least comprise the number of pages of a document occupied by the thousand lines of codes, the average working age of developers, the changing times of test requirements, the daily average code production number and the defect rate of the thousand lines of codes.
3. The method for validating test results as claimed in claim 1, wherein the method is applied to a DevOps platform.
4. The method of claim 1, wherein the step of determining an initial test result verification model based on a plurality of the code attributes of the first test code sample comprises:
establishing a linear regression equation based on a plurality of the code attributes of a first test code sample;
performing linear regression calculation on the linear regression equation, and determining a weight value of each code attribute;
determining the initial test result verification model based on the linear regression equation and the weight values.
5. The method of claim 4, wherein the linear regression equation further includes an error value of the code property value corresponding to the first test code sample; the step of performing linear regression calculation on the linear regression equation and determining the weight value of each code attribute includes:
and performing linear regression calculation on the linear regression equation, and determining the weight value of the corresponding code attribute when each error value is smaller than a specified threshold value.
6. The method of claim 1, wherein the step of iteratively calculating the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample to determine a target test result verification model comprises:
selecting the second test code samples with the same quantity as the first test code samples;
performing iterative computation on the initial test result verification model based on a plurality of code attributes corresponding to the second test code sample, and determining the target test result verification model; wherein each code attribute of the second test code sample satisfies a preset fitting relationship.
7. The method for verifying the test result according to claim 1, wherein the step of verifying the test result of the code to be tested by the target test result verification model comprises:
executing automatic test operation on the code to be tested, and determining a test result;
and verifying the test result of the code to be tested through the target test result verification model.
8. An apparatus for verifying test results, the apparatus comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first test code sample and a plurality of code attributes of the first test code sample;
an initial model determination module to determine an initial test result validation model based on a plurality of the code attributes of the first test code sample;
and the target model determining module is used for performing iterative calculation on the test result verification model based on a plurality of code attributes corresponding to the second test code sample, determining the target test result verification model and verifying the test result of the code to be tested through the target test result verification model.
9. An electronic device comprising a processor and a memory;
the memory has stored thereon a computer program which, when executed by the processor, performs a method of validating a test result according to any one of claims 1 to 7.
10. A computer readable storage medium storing computer software instructions for a method of validating the test result of any one of claims 1 to 7.
CN202011342305.2A 2020-11-25 2020-11-25 Test result verification method and device and electronic equipment Pending CN112416782A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011342305.2A CN112416782A (en) 2020-11-25 2020-11-25 Test result verification method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011342305.2A CN112416782A (en) 2020-11-25 2020-11-25 Test result verification method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112416782A true CN112416782A (en) 2021-02-26

Family

ID=74843708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011342305.2A Pending CN112416782A (en) 2020-11-25 2020-11-25 Test result verification method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112416782A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809622A (en) * 2023-01-19 2023-03-17 南京集成电路产业服务中心有限公司 Chip simulation acceleration system with automatic optimization configuration function

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980909A (en) * 2017-03-30 2017-07-25 重庆大学 A kind of box office receipts Forecasting Methodology based on Fuzzy Linear Regression
CN109144879A (en) * 2018-09-03 2019-01-04 腾讯科技(深圳)有限公司 Method for testing and analyzing and device
CN109408389A (en) * 2018-10-30 2019-03-01 北京理工大学 A kind of aacode defect detection method and device based on deep learning
CN110502277A (en) * 2019-08-30 2019-11-26 西安邮电大学 A kind of bad taste detection method of code based on BP neural network
CN110580217A (en) * 2018-06-08 2019-12-17 阿里巴巴集团控股有限公司 software code health degree detection method, processing method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106980909A (en) * 2017-03-30 2017-07-25 重庆大学 A kind of box office receipts Forecasting Methodology based on Fuzzy Linear Regression
CN110580217A (en) * 2018-06-08 2019-12-17 阿里巴巴集团控股有限公司 software code health degree detection method, processing method and device and electronic equipment
CN109144879A (en) * 2018-09-03 2019-01-04 腾讯科技(深圳)有限公司 Method for testing and analyzing and device
CN109408389A (en) * 2018-10-30 2019-03-01 北京理工大学 A kind of aacode defect detection method and device based on deep learning
CN110502277A (en) * 2019-08-30 2019-11-26 西安邮电大学 A kind of bad taste detection method of code based on BP neural network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115809622A (en) * 2023-01-19 2023-03-17 南京集成电路产业服务中心有限公司 Chip simulation acceleration system with automatic optimization configuration function

Similar Documents

Publication Publication Date Title
CN112416778A (en) Test case recommendation method and device and electronic equipment
CN110991065B (en) Automatic identification method for design change in building information model
CN112508456A (en) Food safety risk assessment method, system, computer equipment and storage medium
CN112416782A (en) Test result verification method and device and electronic equipment
CN113886373A (en) Data processing method and device and electronic equipment
CN113723467A (en) Sample collection method, device and equipment for defect detection
CN117391306A (en) Homeland space planning result examination method, device, equipment and storage medium
CN110334262B (en) Model training method and device and electronic equipment
CN112559369A (en) Automatic testing method, automatic testing equipment and storage medium
US10782942B1 (en) Rapid onboarding of data from diverse data sources into standardized objects with parser and unit test generation
CN109376285B (en) Data sorting verification method based on json format, electronic device and medium
CN111754352A (en) Method, device, equipment and storage medium for judging correctness of viewpoint statement
CN110471912B (en) Employee attribute information verification method and device and terminal equipment
CN110795308A (en) Server inspection method, device, equipment and storage medium
CN111400644B (en) Calculation processing method for laboratory analysis sample
CN115168217A (en) Defect discovery method and device for source code file
KR102159574B1 (en) Method for estimating and managing the accuracy of work results of crowdsourcing based projects for artificial intelligence training data generation
CN114911085A (en) Method for analyzing defects
CN114595216A (en) Data verification method and device, storage medium and electronic equipment
CN113284141A (en) Model determination method, device and equipment for defect detection
CN107992287B (en) Method and device for checking system demand priority ranking result
CN112434471A (en) Method, system, electronic device and storage medium for improving model generalization capability
CN111274128A (en) Test method, test device, computer equipment and computer readable storage medium
CN112749742A (en) Source risk score quantification method and device and electronic equipment
CN112631852A (en) Macro checking method, macro checking device, electronic equipment and computer readable 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