CN116795666A - Code positioning method and device for test cases, storage medium and electronic equipment - Google Patents

Code positioning method and device for test cases, storage medium and electronic equipment Download PDF

Info

Publication number
CN116795666A
CN116795666A CN202210248856.5A CN202210248856A CN116795666A CN 116795666 A CN116795666 A CN 116795666A CN 202210248856 A CN202210248856 A CN 202210248856A CN 116795666 A CN116795666 A CN 116795666A
Authority
CN
China
Prior art keywords
code
information
semantic
test case
pieces
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
CN202210248856.5A
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.)
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shizhen 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 Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202210248856.5A priority Critical patent/CN116795666A/en
Publication of CN116795666A publication Critical patent/CN116795666A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a code positioning method and device for a test case, a storage medium and electronic equipment, wherein the method comprises the following steps: acquiring a code file and a test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information; carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; carrying out semantic analysis on the test case to obtain second semantic feature information; calculating the similarity of a plurality of first semantic feature information and second semantic feature information respectively, wherein code position information corresponding to the first semantic feature information with the similarity reaching a preset threshold value is used as target code position information; obtaining a corresponding target code according to the target code position information; and the test case and the target code are displayed, so that the accuracy of the test case positioning code is improved.

Description

Code positioning method and device for test cases, storage medium and electronic equipment
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a code positioning method and device for test cases, a storage medium and electronic equipment.
Background
Software testing is the process of operating a software program under specified conditions to discover anomalies in the software program, measure the quality of the software program, and evaluate whether it meets design requirements. Test cases (Test cases) are a set of Test inputs, execution conditions, and expected results that are formulated for a particular goal during a software Test to Test a software program path or to verify that a particular requirement is met.
When the traditional technology is used for testing software programs, many of the software programs are black box tests, the code level is less concerned, the design of test cases is written according to product documents, design documents and the like, and when the corresponding codes are required to be positioned through the test cases, the problem of inaccurate positioning exists.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides a code positioning method, a device, a storage and electronic equipment for test cases, which can improve the accuracy of positioning codes of the test cases.
According to a first aspect of an embodiment of the present application, there is provided a code positioning method for a test case, including the steps of:
acquiring a code file and a test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information;
Carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located;
carrying out semantic analysis on the test case to obtain second semantic feature information;
calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information;
obtaining a corresponding target code according to the target code position information;
and displaying the test case and the target code.
According to a second aspect of the embodiment of the present application, there is provided a code positioning device for a test case, including:
the data acquisition module is used for acquiring the code file and the test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information;
the semantic information acquisition module is used for carrying out semantic analysis on a plurality of pieces of marking information in the code file to acquire a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located;
The semantic feature acquisition module is used for carrying out semantic analysis on the test cases to acquire second semantic feature information;
the position information acquisition module is used for respectively calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information;
the target code acquisition module is used for acquiring a corresponding target code according to the target code position information;
and the data display module is used for displaying the test case and the target code.
According to a third aspect of embodiments of the present application, there is provided an electronic device comprising a processor and a memory; the memory stores a computer program adapted to be loaded by the processor and to perform the code location method of the test case as described above.
According to a fourth aspect of embodiments of the present application, there is provided a computer readable storage medium having stored thereon a computer program, characterized in that the computer program, when executed by a processor, implements a code positioning method for a test case as described above.
The embodiment of the application obtains the code file and the test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information; carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located; carrying out semantic analysis on the test case to obtain second semantic feature information; calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information; obtaining a corresponding target code according to the target code position information; and displaying the test case and the target code, so that the accuracy of the test case positioning code is improved by carrying out semantic matching on the labeling information of the code file and the test case. Furthermore, the application can realize the positioning of the test case to the code without executing the test case, thereby improving the code positioning efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application as claimed.
For a better understanding and implementation, the present application is described in detail below with reference to the drawings.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for code location of test cases according to one embodiment of the present application;
FIG. 2 is a flow chart illustrating a method of obtaining semantic information according to one embodiment of the present application;
FIG. 3 is a flow chart of a code location method for a test case according to another embodiment of the present application;
FIG. 4 is a flow chart illustrating a method of acquiring association codes according to one embodiment of the present application;
FIG. 5 is a schematic block diagram of a code location device for a test case shown in one embodiment of the application;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the application, are intended to be within the scope of the embodiments of the present application.
When the following description refers to the accompanying drawings, like numerals refer to the same or similar elements throughout the various drawings unless otherwise indicated. In the description of the present application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination".
Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In order to better understand the technical solution of the present application, before introducing the code positioning method of the test case of the present application, the following description is given to the related art:
when software is tested by the traditional technology, the software is mostly tested by a black box, the code level is less concerned, the design of the test cases is written according to a product document, a design document and the like, when the corresponding codes are required to be positioned by the test cases, the test cases are required to be executed at least once to correlate the test cases with the codes, and then the corresponding codes are positioned according to the correlated test cases.
In the process of realizing the application, the inventor discovers that the traditional technology associates the test case with the code by executing the test case, and the problem of the code itself possibly exists when the test case is executed to cause abnormal execution, or the problem of difficult and inaccurate association of the test case and the code exists when the test case is executed to operate, so that the code accuracy rate positioned according to the test case is low; moreover, executing test cases takes a long time, and locating codes according to the test cases is inefficient.
In order to better understand the technical scheme of the application, the application environment of the code positioning method of the test case of the application is described below.
The application environment of the code positioning method of the test case in the embodiment of the application comprises the code positioning equipment of the test case, the code positioning equipment of the test case can realize the code positioning method of the test case in a software and/or hardware mode, and the code positioning equipment of the test case can be formed by two or more physical entities or one physical entity. For example, the code positioning device of the test case can be a smart device such as a computer, a mobile phone, a tablet or a smart interaction tablet.
The code location device of the test case may include one or more processors, a memory for storing data, and a transmission means for communication functions. The memory may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the code positioning method of the test case in the embodiment of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, thereby implementing the code positioning method of the test case. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, the memory may further include memory remotely located with respect to the processor, which may be connected to the code location device of the test case via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission means is used for receiving or transmitting data via a network. The specific example of the network described above may include a wireless network provided by a communication provider of the code location device of the test case. In one example, the transmission means comprises a network adapter (Network Interface Controller, simply referred to as NIC) that can be connected to other network devices via a base station to communicate with the internet. In one example, the transmission device may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
Example 1
The code positioning method of the test case provided by the embodiment of the application will be described in detail with reference to fig. 1 to 4.
Referring to fig. 1, a flowchart of a code positioning method of a test case according to an embodiment of the application is shown. The code positioning method for the test case provided by the embodiment of the application comprises the following steps:
step S101: acquiring a code file and a test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information.
The codes in the code file have different types, functions, display styles and the like, and describing or identifying the codes of the code file through the labeling information can help a user or a computer to better understand the codes, so that the user or the computer can be helped to determine the types, the functions, the display styles and the like of the codes. In particular, the labeling information is information for explaining and explaining the code in the code file, and in general, the labeling information is explanation or prompt of sentences, program segments, functions and the like at the end of one or a plurality of lines of codes when a user writing the code writes the code, so as to improve the readability of the code.
The annotation information may include annotation information and annotation information.
Annotation information is used to describe the role of the code and some key knowledge points, and a word descriptor is used to provide a view to the programmer, thereby enabling the programmer to learn the annotated code in a faster time. The annotation information may include prologue annotations and functional annotations; the main content of the prologue notes includes the interface of the module, the description of the data and the function of the module; the main content of the functional annotation includes the function of the program segment, the function of the statement, and the state of the data. For example, the annotation information may include a function name, a function, an interface parameter, a code calling method, a display name, a code version number, a return value judgment condition of normal execution, and the like of the code.
Annotation information, also called metadata, is a code-level specification at the same level as classes, interfaces, enumerations, which may be declared in front of packages, classes, fields, local variables, method parameters, etc. for the specification, annotation of these elements. The function is to describe the code, describe the program, and the main purpose is to make the computer look at, and can influence the operation of the program. According to the role score, annotation information may include writing documents, code analysis, and compilation checks; writing a document for generating a document by metadata represented in the code; code analysis is used for analyzing through metadata represented in the code; compilation checking is used to enable a compiler to implement basic compilation checking through metadata represented in the code. Classifying according to an operation mechanism, wherein the annotation information can comprise source code annotation, compile time annotation and operation time annotation; the annotation of source code is used for annotating that only exists in source code, and the annotation of compiling time does not exist after compiling into the class file, and the annotation of compiling time also exists in the class file on the basis of the existence of source code, but does not exist in the operation stage. Runtime annotations are used to annotate that persists during the runtime phase and can affect the running process of the program.
Optionally, the annotation information of the code file may be information written by a user writing the code according to a preset annotation style or annotation style, so as to improve accuracy of positioning of the subsequent code, where the annotation style or annotation style may be writing content and writing order of the annotation information or annotation information, for example, the annotation style may include function names, functions, interface parameters, and the like of sequentially writing the code.
The test case refers to the description of a specific software product for testing tasks, and the test scheme, method, technology and strategy are embodied. Test cases include test goals, test environments, input data, test steps, expected results, test scripts, etc., simply considering a test case as a set of test inputs, execution conditions, and documents of expected results tailored for a particular goal for a particular characteristic of a particular software product to verify whether the particular goal is met by the particular characteristic of the software product.
Test cases may include test text content that may include programming test purposes, test scopes, definition terms, reference documents, summaries, and the like. The test case may also include test script code, labeling information corresponding to the test script code, and the like. The test script code is a code for automatically executing the test on the code file; the labeling information corresponding to the test script code is information for explaining the test script code.
Step S102: carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located.
In an optional embodiment, when semantic analysis is performed on a plurality of pieces of labeling information in the code file, semantic analysis may be performed on each piece of labeling information, so as to obtain semantic information corresponding to each piece of labeling information, at this time, the first semantic feature information in each piece of semantic information is obtained from one piece of labeling information, and further, corresponding code position information may be obtained according to the labeling information.
In another alternative embodiment, since there may be a correlation between different code lines, the labeling information may also be correlated with each other, for example, the function execution of the different code lines is correlated, so that corresponding labeling information is also correlated, for this purpose, when performing semantic analysis on several pieces of labeling information in the code file, according to the similarity of the labeling information, a corresponding piece of semantic information is obtained from multiple pieces of labeling information with similar semantics, and at this time, the first semantic feature information in each piece of semantic information is obtained from multiple pieces of labeling information, and further, according to the multiple pieces of labeling information, corresponding code position information may be obtained.
It can be understood that, since the first semantic feature information can be obtained from one piece of labeling information or can be obtained from multiple pieces of labeling information, the labeling information where the first semantic feature information is located can be one or more pieces, and the code corresponding to the explanation of the labeling information can also have one or more lines, so that the position where the code of one or more lines is located is the code position information corresponding to the first semantic feature information. Generally, since the labeling information generally corresponds to a plurality of lines of codes, for convenience of recording, the code position information is recorded in the form of a start code line position and an end line code position of the code to which the labeling information corresponds.
In an alternative embodiment, the code positioning device of the test case can analyze and identify the labeling information based on a preset semantic analysis algorithm. The semantic analysis algorithm can be preset in code positioning equipment of the test case. The code positioning device of the preset test case can be any existing semantic analysis algorithm, and the method is not limited in detail herein.
In another alternative embodiment, the code positioning device of the test case may also input the labeling information into a trained semantic analysis model, and perform semantic analysis recognition on the labeling information through the trained semantic analysis model.
Specifically, in step S102, the step of performing semantic analysis on the plurality of pieces of labeling information in the code file to obtain a plurality of pieces of semantic information includes: inputting the code file into a trained semantic analysis model, and carrying out semantic analysis on a plurality of pieces of labeling information through the semantic analysis model to obtain a plurality of pieces of semantic information.
The training of the semantic analysis model can be performed based on a labeling information sample labeled with semantic information. The annotation information sample comprises annotation information written according to a preset annotation style, annotation information written according to a common style and annotation information written by writing program codes.
According to the embodiment of the application, the semantic analysis model is used for carrying out semantic analysis on a plurality of pieces of the labeling information to obtain a plurality of pieces of semantic information, so that the accuracy of the semantic information can be improved.
Alternatively, the semantic analysis model may be a SemNLP (semantic Natural Language Processing) semantic analysis library. The SemNLP semantic analysis library is obtained by training a marked information sample marked with semantic information based on a deep learning network by means of a natural language processing mode. The semanteme analysis library comprises various labeling methods of labeling information, such as a labeling method of a function, a labeling method of a class, a labeling method of a method and the like. For example, the label of the function is @ SemNLP (module= "set", feature= 'written background', rule= 'default'); after semantic analysis is carried out on the labels of the functions through the SemNLP semantic analysis library, corresponding first semantic feature information including { ' setting module ', ' writing background ', ' writing application ', ' function name and the like can be obtained, and the code position information is a start code row and an end code row of the functions.
Step S103: and carrying out semantic analysis on the test case to obtain second semantic feature information.
In an alternative embodiment, the code positioning device of the test case can analyze and identify the test case based on a preset semantic analysis algorithm. The semantic analysis algorithm can be preset in code positioning equipment of the test case. The code positioning device of the preset test case can be any existing semantic analysis algorithm, and the method is not limited in detail herein.
In another alternative embodiment, the code positioning device of the test case may also input the test case into a trained semantic analysis model, and perform semantic analysis recognition on the test case through the trained semantic analysis model. The training of the semantic analysis model can be performed based on test case samples with labeled semantic information.
Wherein, since the test case may include only the test text content, in an alternative embodiment, only the test text content may be subjected to semantic analysis to obtain the second semantic feature information. In another optional embodiment, when the test case tests the text content, the test script code and the labeling information corresponding to the test script code, the semantic analysis may be performed simultaneously in combination with the test text content and the labeling information corresponding to the test script code to obtain the second semantic feature information.
Step S104: and respectively calculating the similarity of the plurality of first semantic feature information and the second semantic feature information, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information.
It can be understood that, since the test case may test multiple functions of multiple lines of code, there may be a plurality of pieces of similarity between the first semantic feature information and the second semantic feature information reaching a preset threshold, where code location information corresponding to the plurality of pieces of first semantic feature information is all taken as target code location information.
Step S105: and obtaining the corresponding target code according to the target code position information.
Since the object code position information records the start line position and the end line position of the code explained by the annotation information, the corresponding object code can be obtained from the object code position information.
Step S106: and displaying the test case and the target code.
The embodiment of the application obtains the code file and the test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information; carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located; carrying out semantic analysis on the test case to obtain second semantic feature information; calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information; obtaining a corresponding target code according to the target code position information; and displaying the test case and the target code, so that the accuracy of the test case positioning code is improved by carrying out semantic matching on the labeling information of the code file and the test case. Furthermore, the application can realize the positioning of the test case to the code without executing the test case, improves the code positioning efficiency, and particularly can quickly and accurately obtain the corresponding code according to the test case when the bug is found in the test, thereby reducing the labor cost and improving the test efficiency.
In one embodiment, before the step of performing semantic analysis on the plurality of pieces of annotation information in the code file in step S102 to obtain a plurality of pieces of semantic information, the method further includes the following steps:
judging whether the code file is imported with a semantic analysis identifier, and if so, carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; and if the semantic analysis identifier is not imported into the code file, prompting to import the information of the semantic analysis identifier.
The semantic analysis identifier is used for indicating whether the code file is subjected to semantic analysis. When semantic analysis is performed through the semantic analysis library, the semantic analysis identifier is specifically used for indicating to refer to the corresponding semantic analysis library, and semantic analysis is performed on a plurality of pieces of annotation information. Specifically, the semantic analysis identifier can be introduced by adding an import+semantic analysis library address at the beginning of the code file, for example, the semantic analysis identifier is introduced by adding an import SemNLP at the beginning of the code file, so that the SemNLP semantic analysis library is called to carry out semantic analysis on the labeling information of the code file by compiling the code file.
Referring to fig. 2, a flowchart of a method for acquiring semantic information according to an embodiment of the present application is shown.
In one embodiment, the step of performing semantic analysis on the plurality of pieces of labeling information in the code file in step S102 to obtain a plurality of pieces of semantic information includes:
step S1021: and preprocessing the code file.
Optionally, the step of preprocessing the code file in step S1021 includes:
judging whether each piece of labeling information of the code file has a compiling error, if so, outputting an error log to prompt the modification of the labeling information and stopping semantic analysis of the labeling information.
Optionally, the step of preprocessing the code file in step S1021 includes:
judging whether each row of codes of the code file is associated with other code files; if the codes are associated with other code files, the identification information of the other code files associated with the codes is recorded, so that the identification information of the other code files is displayed when the codes are displayed.
Identification information of other code files may include, but is not limited to, names of other code files, code modules with which other code files are specifically associated, function names, corresponding code locations, and the like.
It should be noted that, in the embodiment of the present application, the code files may be all code files of an application, and there may be a correlation between the code files, for example, there may be a functional correlation between the code files, specifically, for implementing a certain function, it may be necessary to call the code of the B function of the code file a and the code of the D function of the code file C, so if the code of the B function is located, the name, the module and the corresponding code position of the D function of the code file C are displayed, so as to assist the user in analyzing the code more accurately.
In particular implementations, code files may be preprocessed by compiling the code files.
Wherein, compiling is a process of translating a source program into a target program, and the working process in the process is divided into five stages: lexical analysis; analyzing grammar; semantic checking and intermediate code generation; code optimization; target code generation and the like, which are also called source program analysis, when compiling errors such as semantic errors, grammar errors and the like are found in the analysis process, prompt information is given to prompt a user to modify a code file, and meanwhile, compiling can also identify the code file referenced by the code file.
According to the embodiment of the application, the accuracy of subsequent semantic analysis can be improved by performing compiling error analysis on the labeling information of the code file, and further, the positioned code can be assisted to be analyzed by a user by recording the information of other related code files and displaying the identification information of the other code files when the code is displayed, so that the accuracy of code analysis is improved.
Step S1022: and carrying out semantic analysis on a plurality of pieces of marking information in the preprocessed code file to obtain a plurality of pieces of semantic information.
Optionally, semantic analysis can be continuously performed on a plurality of pieces of marking information in the preprocessed code file in a compiling mode to obtain a plurality of pieces of semantic information, that is, software compiling is started, the code file is preprocessed, semantic analysis is performed on a plurality of pieces of marking information in the preprocessed code file, and a plurality of pieces of semantic information are obtained. Specifically, semantic analysis identifiers are imported into the code file, so that semantic information can be obtained in the compiling and constructing process of the application according to the semantic analysis identifiers, after the code file is compiled and preprocessed, a semantic analysis library corresponding to the semantic analysis identifiers is continuously called in a compiling mode, semantic analysis is carried out on a plurality of pieces of marking information in the preprocessed code file, and a plurality of pieces of semantic information are obtained, so that the subsequent code positioning time is saved, and the code positioning efficiency is improved.
According to the embodiment of the application, the code file is compiled and preprocessed, and then the preprocessed code file is subjected to semantic analysis, so that the corresponding semantic information is obtained, and the accuracy of the semantic analysis can be improved.
Refer to FIG. 3, which is a flowchart illustrating a code positioning method of a test case according to another embodiment of the present application.
In one embodiment, the code positioning method of the test case further includes the following steps:
step S1041: performing instrumentation compiling on the code file, executing the test case, and obtaining the position information of the coverage code corresponding to the test case.
Optionally, the coverage code position information corresponding to the test case may be obtained through a code coverage rate tool, where the code coverage rate tool may be a Jacoco open source tool for java language.
Specifically, the code coverage rate tool is used for performing instrumentation compiling on the code file, namely, a probe is inserted into each code line in the code file, and after a certain code line in the code file is executed, the inserted probe in the code line outputs the execution information of the code line. Therefore, when the test case is tested and executed, the code coverage rate tool can continuously collect and store the execution information of the code row output by the probe inserted by different code rows of the code file, and automatically or manually trigger by a tester to generate a corresponding code coverage file; the tested code lines in the code file are identified in the code overlay file, so that the tested code lines and the untested code lines in the code file can be distinguished by analyzing the code overlay file. After the test case is executed, the code line corresponding to the test when the test case is executed can be obtained by analyzing the code coverage file, namely, the coverage code position information corresponding to the test case is obtained.
It should be noted that executing one test case may correspond to testing one or more code lines, and different code lines may belong to different code files, that is, multiple coverage code location information lines corresponding to one test case may be from code lines of one code file, or may be from code lines in multiple code files, where multiple code lines in one code file may also include coverage code location information of different test cases. For example, test case X may correspond to code line 1, code line 2, and code line 3 in test code file a, test code file b; test case Y may correspond to code line 4 and code line 5 in test code file a, and code line 6 in test code file b; test case Z may correspond to code lines 7-12, etc. in test code file c.
In this embodiment, since the process of locating the code by the test case may be performed on a plurality of code files together, the code coverage tool may generate one code coverage file for a plurality of code files according to the execution condition of the test, or may generate one code coverage file for one code file, that is, the coverage code row corresponding to the test case may be a tested code row corresponding to one or more code coverage files. For example, when the names of the code files to be tested are identified as "a" and "b", respectively, the overlay code location information generated by the code coverage tool may include the tested code lines corresponding to the two code overlay files named "a.java. Html" and "b.java. Html".
Step S1042: and obtaining the association code which is not overlapped with the target code according to the overlay code position information and the target code position information.
Step S1043: and when the test case and the target code are displayed, the associated code is also displayed.
It should be noted that, the steps S1041-S1042 and the steps S102-S104 may be executed in parallel, or after the steps S102-S104 are executed, a popup window may be popped up to prompt the user whether to execute the steps S1041-S1042 to display the associated code, and if the user determines to execute the steps S1041-S1042, the test case, the target code and the associated code are displayed finally; if the user refuses to execute the steps S1041 to S1042, the test case and the target code are displayed finally. Similarly, after executing the steps S1041 to S1042, a popup window may be popped up to prompt the user whether to execute the steps S102 to S104 to display the associated code, and if the user determines to execute the steps S102 to S104, the test case, the target code and the associated code are displayed finally; and if the user refuses to execute the steps S102-S104, finally displaying the test case and the association code.
According to the embodiment of the application, the code associated with the test case is displayed by further executing the test case once, but the code which is not overlapped with the target code can be further improved in the accuracy of the positioned code.
Referring to fig. 4, a flowchart of a method for acquiring association codes is shown in an embodiment of the present application.
In one embodiment, the step of obtaining the associated code that does not overlap with the target code according to the overlay code position information and the target code position information in step S1042 includes:
step S10421: and obtaining the corresponding coverage codes according to the coverage code position information.
Step S10422: and comparing the target code with the coverage code to obtain an association code which is not coincident with the target code.
According to the embodiment of the application, the target code and the cover code are compared to obtain the associated code which is not overlapped with the target code, so that the accuracy of code identification can be improved.
It should be understood that, although the steps in the flowcharts of fig. 1 to 4 are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps or stages of other steps.
Example 2
The following are examples of the apparatus of the present application that may be used to perform the method of example 1 of the present application. For details not disclosed in the device embodiment of the present application, please refer to the method in embodiment 1 of the present application.
Referring to fig. 5, a code positioning device 200 for a test case according to an embodiment of the present application includes:
a data acquisition module 201, configured to acquire a code file and a test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information;
the semantic information acquisition module 202 is configured to perform semantic analysis on a plurality of pieces of the labeling information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located;
the semantic feature acquisition module 203 is configured to perform semantic analysis on the test case to obtain second semantic feature information;
the location information obtaining module 204 is configured to calculate similarities between the plurality of first semantic feature information and the second semantic feature information, and take code location information corresponding to the first semantic feature information with the similarity greater than a preset threshold as target code location information;
An object code obtaining module 205, configured to obtain a corresponding object code according to the object code location information;
and the data display module 206 is configured to display the test case and the object code.
The embodiment of the application obtains the code file and the test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information; carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located; carrying out semantic analysis on the test case to obtain second semantic feature information; calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information; obtaining a corresponding target code according to the target code position information; and displaying the test case and the target code, so that the accuracy of the test case positioning code is improved by carrying out semantic matching on the labeling information of the code file and the test case. Furthermore, the application can realize the positioning of the test case to the code without executing the test case, thereby improving the code positioning efficiency.
In one embodiment, the code positioning device 200 of the test case further includes:
the semantic analysis identification judging module is used for judging whether the code file is imported with semantic analysis identification, and carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information if the code file is imported with the semantic analysis identification; and if the semantic analysis identifier is not imported into the code file, prompting to import the information of the semantic analysis identifier.
In one embodiment, the semantic information acquisition module 202 includes:
and the preprocessing module is used for preprocessing the code file.
The semantic analysis module is used for carrying out semantic analysis on a plurality of pieces of marking information in the preprocessed code file to obtain a plurality of pieces of semantic information.
Wherein, the preprocessing module includes:
and the first processing module is used for judging whether each piece of labeling information of the code file has a compiling error, and if the labeling information has the compiling error, outputting an error log to prompt the modification of the labeling information and stopping semantic analysis of the labeling information.
The second processing module is used for judging whether each row of codes of the code file is associated with other code files or not; if the codes are associated with other code files, the identification information of the other code files associated with the codes is recorded, so that the identification information of the other code files is displayed when the codes are displayed.
According to the embodiment of the application, the code file is compiled and preprocessed, and then the preprocessed code file is subjected to semantic analysis, so that the corresponding semantic information is obtained, and the accuracy of the semantic analysis can be improved.
In one embodiment, the code positioning device 200 of the test case further includes:
and the overlay code position information acquisition module is used for performing instrumentation compiling on the code file, executing the test case and acquiring the overlay code position information corresponding to the test case.
And the associated code acquisition module is used for acquiring an associated code which is not overlapped with the target code according to the position information of the cover code and the position information of the target code.
And the associated code display module is used for displaying the associated code when the test case and the target code are displayed.
According to the embodiment of the application, the code associated with the test case is displayed by further executing the test case once, but the code which is not overlapped with the target code can be further improved in the accuracy of the positioned code.
In one embodiment, the association code acquisition module comprises:
the coverage code acquisition module is used for acquiring a corresponding coverage code according to the coverage code position information;
And the associated code calculation module is used for comparing the target code with the coverage code to obtain an associated code which is not overlapped with the target code.
According to the embodiment of the application, the target code and the cover code are compared to obtain the associated code which is not overlapped with the target code, so that the accuracy of code identification can be improved.
Example 3
The following are examples of the apparatus of the present application that may be used to perform the method of example 1 of the present application. For details not disclosed in the embodiment of the apparatus of the present application, please refer to the method of embodiment 1 of the present application.
Referring to fig. 6, the present application further provides an electronic device 300, where the electronic device 300 may be a computer, a mobile phone, a tablet computer, an interactive tablet, etc., and in an exemplary embodiment of the present application, the electronic device 300 is an MOS transistor on-state loss obtaining device, and the electronic device 300 may include: at least one processor 310, at least one memory 320, at least one display 330, at least one network interface 340, a user interface 350, and at least one communication bus 360.
The user interface 350 is mainly used for providing an input interface for a user, and acquiring data input by the user. Optionally, the user interface 350 may also include a standard wired interface, a wireless interface.
The network interface 340 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the communication bus 360 is used to enable connection communications between these components.
Wherein the processor 310 may include one or more processing cores. The processor 310 utilizes various interfaces and lines to connect various portions of the overall electronic device 300, perform various functions of the electronic device 300, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 320, and invoking data stored in the memory 320. Alternatively, the processor 310 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 310 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 310 and may be implemented by a single chip.
The Memory 320 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 320 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 320 may be used to store instructions, programs, code sets, or instruction sets. The memory 320 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. Memory 320 may also optionally be at least one storage device located remotely from the aforementioned processor 310. As shown in fig. 6, an operating system, a network communication module, a user may be included in the memory 320 as one type of computer storage medium.
The processor 310 may be configured to call an application program of the code location method of the test case stored in the memory 320, and specifically execute: acquiring a code file and a test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information; carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located; carrying out semantic analysis on the test case to obtain second semantic feature information; calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information; obtaining a corresponding target code according to the target code position information; and displaying the test case and the target code.
The embodiment of the application obtains the code file and the test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information; carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located; carrying out semantic analysis on the test case to obtain second semantic feature information; calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information; obtaining a corresponding target code according to the target code position information; and displaying the test case and the target code, so that the accuracy of the test case positioning code is improved by carrying out semantic matching on the labeling information of the code file and the test case. Furthermore, the application can realize the positioning of the test case to the code without executing the test case, thereby improving the code positioning efficiency.
In one embodiment, the processor 310 may be configured to call an application program of the code location method of the test case stored in the memory 320, and further specifically execute: judging whether the code file is imported with a semantic analysis identifier, and if so, carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; and if the semantic analysis identifier is not imported into the code file, prompting to import the information of the semantic analysis identifier.
In one embodiment, the processor 310 may be configured to call an application program of the code location method of the test case stored in the memory 320, and further specifically execute: preprocessing the code file; and carrying out semantic analysis on a plurality of pieces of marking information in the preprocessed code file to obtain a plurality of pieces of semantic information.
In one embodiment, the processor 310 may be configured to call an application program of the code location method of the test case stored in the memory 320, and further specifically execute: performing instrumentation compiling on the code file, and executing the test case to obtain the position information of the coverage code corresponding to the test case; acquiring an association code which is not overlapped with the target code according to the overlay code position information and the target code position information; and when the test case and the target code are displayed, the associated code is also displayed. According to the embodiment of the application, the code associated with the test case is displayed by further executing the test case once, but the code which is not overlapped with the target code can be further improved in the accuracy of the positioned code.
Example 4
The present application further provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the above-described embodiment 1, and the specific execution process may refer to the specific description shown in the embodiment, which is not repeated herein. The storage medium can be an electronic device such as a personal computer, a notebook computer, a smart phone, a tablet personal computer and the like.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present application without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. The code positioning method for the test case is characterized by comprising the following steps:
acquiring a code file and a test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information;
Carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located;
carrying out semantic analysis on the test case to obtain second semantic feature information;
calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information respectively, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information;
obtaining a corresponding target code according to the target code position information;
and displaying the test case and the target code.
2. The code positioning method of a test case according to claim 1, wherein:
the step of performing semantic analysis on a plurality of pieces of labeling information in the code file to obtain a plurality of pieces of semantic information comprises the following steps:
inputting the code file into a trained semantic analysis model, and carrying out semantic analysis on a plurality of pieces of labeling information through the semantic analysis model to obtain a plurality of pieces of semantic information.
3. The code positioning method of a test case according to claim 1, wherein:
the method further comprises the steps of:
performing instrumentation compiling on the code file, and executing the test case to obtain the position information of the coverage code corresponding to the test case;
acquiring an association code which is not overlapped with the target code according to the overlay code position information and the target code position information;
the step of displaying the test case and the target code further includes:
and displaying the association code.
4. A code location method for a test case according to claim 3, wherein:
the step of obtaining the associated code which is not overlapped with the target code according to the overlay code position information and the target code position information comprises the following steps:
obtaining a corresponding coverage code according to the coverage code position information;
and comparing the target code with the coverage code to obtain an association code which is not coincident with the target code.
5. The code positioning method of a test case according to any one of claims 1 to 4, wherein:
before the step of performing semantic analysis on a plurality of pieces of labeling information in the code file to obtain a plurality of pieces of semantic information, the method further comprises the following steps:
Judging whether the code file is imported with a semantic analysis identifier or not; if the code file is imported with the semantic analysis identifier, carrying out semantic analysis on a plurality of pieces of marking information in the code file to obtain a plurality of pieces of semantic information; and if the semantic analysis identifier is not imported into the code file, prompting to import the information of the semantic analysis identifier.
6. The code positioning method of a test case according to any one of claims 1 to 4, wherein:
the step of performing semantic analysis on a plurality of pieces of labeling information in the code file to obtain a plurality of pieces of semantic information comprises the following steps:
preprocessing the code file;
and carrying out semantic analysis on a plurality of pieces of marking information in the preprocessed code file to obtain a plurality of pieces of semantic information.
7. The code location method of test cases according to claim 6, wherein:
the step of preprocessing the code file comprises the following steps:
judging whether each piece of labeling information of the code file has a compiling error, if so, outputting an error log to prompt the modification of the labeling information and stopping semantic analysis of the labeling information.
And/or the number of the groups of groups,
judging whether each row of codes of the code file is associated with other code files; if the codes are associated with other code files, the identification information of the other code files associated with the codes is recorded, so that the identification information of the other code files is displayed when the codes are displayed.
8. A code positioning device for a test case, comprising:
the data acquisition module is used for acquiring the code file and the test case; the code file comprises a plurality of lines of codes and a plurality of corresponding labeling information;
the semantic information acquisition module is used for carrying out semantic analysis on a plurality of pieces of marking information in the code file to acquire a plurality of pieces of semantic information; the semantic information comprises first semantic feature information and corresponding code position information; the code position information is used for indicating a code position corresponding to the labeling information where the first semantic feature information is located;
the semantic feature acquisition module is used for carrying out semantic analysis on the test cases to acquire second semantic feature information;
the position information acquisition module is used for respectively calculating the similarity of a plurality of pieces of first semantic feature information and the second semantic feature information, and taking code position information corresponding to the first semantic feature information with the similarity larger than a preset threshold value as target code position information;
The target code acquisition module is used for acquiring a corresponding target code according to the target code position information;
and the data display module is used for displaying the test case and the target code.
9. An electronic device includes a processor and a memory; characterized in that the memory stores a computer program adapted to be loaded by the processor and to execute the code location method of the test case according to any of claims 1 to 7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a code location method for a test case according to any of claims 1 to 7.
CN202210248856.5A 2022-03-14 2022-03-14 Code positioning method and device for test cases, storage medium and electronic equipment Pending CN116795666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210248856.5A CN116795666A (en) 2022-03-14 2022-03-14 Code positioning method and device for test cases, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210248856.5A CN116795666A (en) 2022-03-14 2022-03-14 Code positioning method and device for test cases, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116795666A true CN116795666A (en) 2023-09-22

Family

ID=88037331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210248856.5A Pending CN116795666A (en) 2022-03-14 2022-03-14 Code positioning method and device for test cases, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN116795666A (en)

Similar Documents

Publication Publication Date Title
CN110059009B (en) Method and apparatus for testing code files
CN108614707B (en) Static code checking method, device, storage medium and computer equipment
CN108932192B (en) Python program type defect detection method based on abstract syntax tree
US9158514B2 (en) Method and apparatus for providing change-related information
US8850415B2 (en) Generating a transition system for use with model checking
US9619211B2 (en) Code suggestion in a software development tool
ben Fadhel et al. Search-based detection of high-level model changes
CN109426615A (en) Null pointer dereference detection method, system, equipment and the medium of interprocedual
US7882493B2 (en) Software test management program software test management apparatus and software test management method
US9417991B2 (en) Translation verification testing
US20130159975A1 (en) Detecting a broken point in a web application automatic test case
CN109871326A (en) A kind of method and apparatus that script is recorded
CN104156311B (en) A kind of embedded type C language target code level unit test method based on CPU emulator
CN110955608B (en) Test data processing method, device, computer equipment and storage medium
CN105512021A (en) Method and device for Diff analysis used for software testing
CN112558942A (en) Operator registration method and related product
US11327722B1 (en) Programming language corpus generation
CN111813672B (en) Non-invasive coverage rate statistical method for various processor architectures
CN111427771A (en) Code coverage rate analysis method, equipment, server and readable storage medium
CN113094252B (en) Test case generation method and device, computer equipment and storage medium
CN108399125A (en) Automated testing method, device, computer equipment and storage medium
CN110990282A (en) Automatic unit testing method
CN113778890A (en) Code testing method and device, electronic equipment and storage medium
US8756580B2 (en) Instance-based field affinity optimization
US20140040666A1 (en) Systems and methods for feedback driven regression testing

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