CN115794638A - Test method, system and computer equipment based on code change analysis engine - Google Patents

Test method, system and computer equipment based on code change analysis engine Download PDF

Info

Publication number
CN115794638A
CN115794638A CN202211536788.9A CN202211536788A CN115794638A CN 115794638 A CN115794638 A CN 115794638A CN 202211536788 A CN202211536788 A CN 202211536788A CN 115794638 A CN115794638 A CN 115794638A
Authority
CN
China
Prior art keywords
code
test
platform
change
test platform
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
CN202211536788.9A
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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202211536788.9A priority Critical patent/CN115794638A/en
Publication of CN115794638A publication Critical patent/CN115794638A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application provides a test method based on a code change analysis engine, which comprises the following steps: the test platform acquires the code of each item changed from the code management platform in real time and stores the code in the corresponding item of the test platform; the test platform filters the changed codes to obtain target codes; the test platform analyzes the target code to obtain a change interface and a change type; the test platform searches a corresponding test case according to the change interface; the test platform correspondingly stores the test cases and the change types in corresponding items of the test platform; the test platform responds to user operation to modify the test case and the interface parameter structure according to the stored test case and the change type; and the test platform automatically executes the modified test case according to the modified test case and the interface parameter structure. According to the technical scheme, the changed codes can be analyzed and tested more conveniently and intelligently.

Description

Test method, system and computer equipment based on code change analysis engine
Technical Field
The application relates to the field of financial science and technology, in particular to a code change analysis engine-based test system and computer equipment.
Background
The test is one of the main means for checking the software quality and ensuring the software quality, along with the attention paid to the software test, the cost in the test link is very high at present, and the improvement of the test effectiveness is very important. The existing testing links are comprehensively checked, and the following problems mainly exist:
1 after the test case is executed, no standard or data measures the execution effect of the case
2 automated test Range assessment empirically, software version update iterations, affecting specifically those code function points, relying on empirical assessment
3 automatic case scene design has no strong data basis
4 automatic use case scene update is not timely
5, the problem of repeated tests exists, the manual tests and the automatic tests are related to overlap, the overlap ratio is high, the test cost is high, and a plurality of tests with invalid redundancy exist
6 the software updating iteration is faster, the manpower is limited, and as the function is more complicated, the regression function points are more and more
The 7-code update affects those functions imperceptibly.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a code change analysis engine-based testing method, which is more convenient and intelligent, and a code change analysis engine-based testing system and a computer device.
In a first aspect, an embodiment of the present application provides a test method based on a code change analysis engine, where the test method based on the code change analysis engine includes the following steps:
the test platform acquires the code of each item changed from the code management platform in real time and stores the code in the corresponding item of the test platform;
the test platform filters the changed codes to obtain target codes;
the test platform analyzes the target code to obtain a change interface and a change type;
the test platform searches a corresponding test case according to the change interface;
the test platform correspondingly saves the test cases and the change types in corresponding projects of the test platform;
the test platform responds to user operation to modify the test case and the interface parameter structure according to the stored test case and the change type;
and the test platform automatically executes the modified test case according to the modified test case and the interface parameter structure.
In a second aspect, an embodiment of the present application provides a test system based on a code change analysis engine, where the test system based on the code change analysis engine specifically includes:
a code management platform;
a test platform, comprising: the system comprises an acquisition module, a filtering module, an analysis module, a search module, a storage module, a modification module and an automatic test module, wherein the acquisition module is used for acquiring a code changed in each project from a code management platform in real time, the filtering module is used for filtering the changed code to obtain a target code, the analysis module is used for analyzing the target code to obtain a change interface and a change type, the search module is used for searching a corresponding test case according to the change interface, the storage module is used for correspondingly storing the test case and the change type in the corresponding project of the test platform, the modification module is used for responding to user operation according to the stored test case and the change type and modifying the structures of the test case and the interface parameters, and the automatic test module is used for automatically executing the modified test case according to the modified test case and the interface input parameter.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes: the computer readable storage medium is used for storing program instructions, and the processor and the bus execute the program instructions to realize the test method based on the code change analysis engine.
According to the code change analysis engine-based test method, the test system and the computer equipment, accurate test can be achieved by obtaining changed codes, specific influence on function points can be more transparent, whether other function points are influenced by code updating can be sensed, the automatic case scene can be more effectively designed by modifying the interfaces corresponding to the changed codes and modifying the corresponding test cases, a large amount of regression operation is not needed, only the corresponding test on the change is needed, the repetition is reduced, invalid change and the like are filtered, the code change analysis accuracy is improved, the involved regression cases can be intelligently screened, the test efficiency is submitted, and the test cost is saved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
Fig. 1 is a flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 2 is a flowchart of a test method based on a code change analysis engine according to a second embodiment of the present application.
Fig. 3 is a first sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 4 is a second sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 5 is a third sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 6 is a fourth sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 7 is a fifth sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 8 is a sixth sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application.
Fig. 9 is a schematic internal structural diagram of a computer device according to an embodiment of the present application.
Fig. 10 is a schematic diagram of a test system based on a code change analysis engine according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged under appropriate circumstances, in other words, the described embodiments may be practiced other than as illustrated or described herein. Moreover, the terms "comprises," "comprising," and any other variation thereof, may also include other things, such as processes, methods, systems, articles, or apparatus that comprise a list of steps or elements is not necessarily limited to only those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such processes, methods, articles, or apparatus.
It should be noted that the descriptions in this application referring to "first", "second", etc. are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
Please refer to fig. 1 and fig. 10 in combination, in which fig. 1 is a flowchart of a testing method based on a code change analysis engine according to an embodiment of the present application. Fig. 10 is a schematic diagram of a test system based on a code change analysis engine according to an embodiment of the present application. The test system 1000 based on the code change analysis engine specifically includes a code management platform 100 and a test platform 200. The test platform 200 comprises an obtaining module 201, a filtering module 202, an analyzing module 203, a searching module 204, a storing module 205, a modifying module 206 and an automatic testing module 207, wherein the obtaining module 201 is used for obtaining a code of each item changed from the code management platform 100 in real time in a corresponding item of the test platform 200, the filtering module 202 is used for filtering the changed code to obtain a target code, the analyzing module 203 is used for analyzing the target code to obtain a change interface and a change type, the searching module 204 is used for searching a corresponding test case according to the change interface, the storing module 205 is used for storing the test case and the change type in the corresponding item of the test platform 200 correspondingly, the modifying module 206 is used for responding to user operation according to the stored test case and the change type to modify the structure of the test case and the interface parameters, and the automatic testing module 207 is used for automatically executing the modified test case according to the modified test case and the interface entry parameters. The test method based on the code change analysis engine specifically includes the following steps S102 to S114.
Step S102, the test platform 200 obtains the changed code of each item from the code management platform 100 in real time in the corresponding item of the test platform 200. It can be understood that the test platform 200 monitors in real time whether a code related to the item newly submitted by the user is received by the code management platform 100 by the item code existing in the test platform 200, and when the code management platform 100 receives the item code submitted by the user, the test platform 200 acquires the item code submitted by the user in real time to an address where the corresponding item is stored in the test platform 200, where details are described below.
Step S104, the test platform 200 filters the changed code to obtain a target code. It can be understood that, each time a developer submits a project code to the project, there may be a case where there is no modification or invalid modification, that is, when the project code submitted by the code management platform 100 does not affect the original function, in order to avoid waste of resources, a filtering and denoising process is set, that is, a filtering process is performed on a case where the submitted content and the original content are not modified, and a denoising process is performed on a modification that only some formats such as spaces, blank lines, etc. are modified or do not affect the function in the submitted code, so as to obtain a target code, details of which are shown below.
Step S106, the test platform 200 analyzes the target code to obtain a change interface and a change type. It can be understood that after the filtering in step S104, the test platform 200 parses the content in each object code to obtain the operation type and the change interface of each object code, and details are described below.
Step S108, the test platform 200 searches for a corresponding test case according to the changed interface. It can be understood that the test platform 200 performs matching search on the interface in the automatic test case according to the change interface corresponding to each object code, and when the change interface is successfully matched with the interface in the automatic test case, the test platform 200 finds the test case corresponding to the change interface.
Step S110, the test platform 200 correspondingly saves the test case and the change type in the corresponding item of the test platform 200. It can be understood that, after the test platform 200 uses the test case corresponding to the change interface obtained in step S108, the change interface, the test case, and the change type are correspondingly stored in the project file corresponding to the test platform 200.
Step S112, the test platform 200 responds to the user operation to modify the test case and the interface parameter structure according to the stored test case and the modification type. It can be understood that, after the test platform 200 completes storing the test case in step S110, a message is sent to the user to remind the user to modify the test case in the test platform 200 and the interface parameter structure in the automated test case corresponding to the project according to the stored content, which is described in detail below.
Step S114, the test platform 200 automatically executes the modified test case according to the modified test case and the interface parameter structure. It can be understood that, after the user finishes modifying the test case and the automated test case interface parameter structure, and the test platform 200 receives a submission instruction submitted by the user, the test platform 200 updates the corresponding test case and the automated test case interface parameter structure, and automatically runs the automated test case after the update is finished, so as to verify whether a problem exists.
In the above embodiment, by acquiring the changed code, accurate testing can be performed, and the function points that are specifically affected can be more transparent, so that whether other function points are affected by updating of the code can be sensed, and by modifying the interface corresponding to the changed code and modifying the corresponding test case, an automatic case scene can be more effectively designed without performing a large number of regression operations, only the modified interface needs to be correspondingly tested, so that repetition is reduced, and filtering invalidity and the like is performed, so that the accuracy of code change analysis is improved, the regression cases involved can be intelligently screened, and testing efficiency is submitted and testing cost is saved.
Please refer to fig. 2, which is a flowchart illustrating a test method based on a code change analysis engine according to a second embodiment of the present application. Specifically, the method includes the following steps S202-S204.
In step S202, the test platform 200 collects the association relationship between each test case and the project code by executing the test case. It can be understood that, the test platform 200 acquires the association relationship between each test case and the project code by executing the test case and collecting the call relationship when the test case is executed by using the JAVA probe.
Step S204, the test platform 200 stores the acquired incidence relation to obtain a case relation library. It can be understood that the test platform 200 stores the association relationship collected by the JAVA probe into the test platform 200, forming a case relationship library.
Please refer to fig. 3 in combination, which is a first sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application. Step S106 specifically includes the following steps S302-S308.
Step S302, the test platform 200 parses the object code into a data file. It can be understood that the test platform 200 stores the acquired project codes submitted by the user in the form of a data file, where the data file may be a file such as a Json file that can be used for machine identification and can store the project codes.
Step S304, the test platform 200 identifies each target code according to the operation type of each target code in the data file to obtain a change type corresponding to each target code. It will be appreciated that the test platform 200 makes a marking decision on the type of operation and what is operated on for each object code in the data file so as to visualize what each object code has done. For example, if the object code is a delete name field in the Student class, the test platform 200 may recognize that the object code is a delete operation when reading the object code, and if the object code is a delete name field in the Student class, the test platform 200 marks the object code with a delete color tag for subsequent determination and confirmation of the test platform 200 and the user.
Step S306, the test platform 200 parses the data file to obtain a class path corresponding to the modified code method, where the class path is a path of a folder in which a corresponding code class of the class corresponding to the code method is stored. It can be understood that the test platform 200 performs a recursive algorithm on the modified code, finds the top-level call, and knows the class path corresponding to the modified code method according to the path corresponding to the top-level call, which is described in detail below.
Step S308, the test platform 200 utilizes the case relation library to map out the corresponding change interface according to the class path. It can be understood that the test platform 200 finds the corresponding test case according to the class path, and then obtains the corresponding change interface by using the mapping relationship between the test case and the interface in the case management library.
Please refer to fig. 4 in combination, which is a second sub-flowchart of the test method based on the code change analysis engine according to the embodiment of the present application. Step S306 specifically includes the following steps S402-S404.
Step S402, the test platform 200 performs a recursive algorithm according to each target code in the data file to obtain a code method for invoking a corresponding modification of each target code. It is understood that the test platform 200 performs a recursive algorithm on each object code in the data file to obtain interface information related to each object code and calls a method of the top layer modified by each object code.
Step S404, the test platform 200 obtains a corresponding code class and a class path according to the modified code method. It can be understood that, by using the top-level method obtained by the recursive algorithm, the test platform 200 obtains the corresponding code class and the class path corresponding to the code class according to the top-level method.
Please refer to fig. 5 in combination, which is a third sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application. Step S112 specifically includes the following steps S502 to S506.
Step S502, the test platform 200 arranges the test cases and the change types into a report and outputs the report. It can be understood that, when the test platform 200 acquires the test case and the change type corresponding to the change interface, the test case and the change type are directly and correspondingly sorted into the detection result of the test platform 200 with the report output value.
Step S504, when the test case scene needs to be modified, the test platform 200 responds to the user operation to modify the test case. It can be understood that when the change of the interface causes the change of the application scene or application range of the interface, the user is required to modify the scene of the automated test case and the test case on the test platform, so that the method has more pertinence, and the problems of insufficient test and the like are avoided.
Step S506, when the change type involves interface parameter change, the test platform 200 modifies the corresponding interface parameter structure in response to user operation. It can be understood that, when the structure of the interface parameter changes, the test platform 200 needs to notify the user in time to modify the structure of the interface parameter of the automated test case to prevent an error report during running, for example, if the developer deletes the name field in the Student class, the user needs to delete the name field in the Student class in the automated test case to ensure that the running state is normal.
Please refer to fig. 6 in combination, which is a fourth sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application. Step S104 specifically includes the following steps S602 to S606.
Step S602, the test platform 200 compares the obtained changed code with the corresponding code stored in the latest record to obtain a comparison result. It can be understood that, when the test platform 200 acquires a code of a project for the first time, all codes of the project are acquired into the test platform 200 for storage, and a code that is changed each time is also stored, and when the test platform 200 acquires a code that is changed, the test platform 200 calls a code that is recorded latest of a code related to the code, compares the code that is recorded latest with the code that is changed and is acquired immediately before, and determines whether a code that is submitted by a developer to the code management platform 100 has been changed.
In step S604, when there is no change in the comparison result, the test platform 200 filters out the data file that has been changed this time. It can be understood that, when the test platform 200 stores the acquired code in a data file and determines that the code submitted by the developer on the code management platform 100 is consistent with the latest recorded code and there is no change, or when the test platform 200 acquires a plurality of data files and there is a case where some of the data files are not changed, the test platform 200 filters the data files which are not changed and only keeps the data files inconsistent with the latest recorded code.
Step S606, when there is a change in the comparison result, the test platform 200 will detect whether there is an invalid change in the data file. It is understood that when the testing platform 200 stores the obtained code in the data file and determines that the code submitted by the developer on the code management platform 100 is inconsistent with the newly recorded code, or the data file that is retained by the filtering and inconsistent with the newly recorded code, the testing platform 200 will start to determine the validity of the content in the data file, as described in detail below.
Please refer to fig. 7 in combination, which is a fifth sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application. Step S606 specifically includes the following steps S702 to S704.
Step S702, the test platform 200 obtains the content changed in the data file. It is understood that the test platform 200 acquires the content in the data file in step S606.
Step S704, the test platform 200 filters the changed content in the data file according to a preset change rule to obtain a target code. It can be understood that the test platform 200 performs recognition filtering on the content in the obtained data file according to the preset rule of invalid change to obtain an object code, where the object code is stored in the data file, and multiple object codes may be reserved in the data file, and each object code is an operation event for analyzing and analyzing each object code subsequently.
Please refer to fig. 8 in combination, which is a sixth sub-flowchart of a test method based on a code change analysis engine according to an embodiment of the present application. Step S102 specifically comprises the following steps S802-S804.
Step S802, when the code management platform 100 receives the corresponding code of each project according to the instruction, the real-time trigger testing platform 200 obtains the corresponding code of each project received by the code management platform 100. It can be understood that, when a user submits an item code to the code management platform 100, the test platform 200 monitors the state on the code management platform 100 in real time, and when the user clicks a submit button to submit the item code to the code management platform 100, the test platform 200 is triggered to timely acquire that the code management platform 100 will receive the corresponding item code, and the test platform 200 determines the corresponding item received on the code management platform 100, and determines whether the received item exists in the test platform 200.
Step S804, the testing platform 200 extracts the changed code of the corresponding code of each item from the corresponding items of the testing platform 200 according to the obtained corresponding code of each item. It is understood that when the testing platform 200 determines that the item received by the code management platform 100 is present in the testing platform 200, the testing platform 200 synchronizes the code received by the code management platform 100 to the code with the change of the testing platform 200.
Please refer to fig. 9, which is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application. Computer device 10 includes a computer-readable storage medium 11, a processor 12, and a bus 13. The computer-readable storage medium 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The computer-readable storage medium 11 may in some embodiments be an internal storage unit of the computer device 10, such as a hard disk of the computer device 10. The computer readable storage medium 11 may also be, in other embodiments, an external computer device 10 storage device, such as a plug-in hard drive, smart Media Card (SMC), secure Digital (SD) Card, flash memory Card (Flash Card), or the like, provided on the computer device 10. Further, the computer-readable storage medium 11 may also include both an internal storage unit and an external storage device of the computer device 10. The computer-readable storage medium 11 may be used not only to store application software installed in the computer device 10 and various types of data, but also to temporarily store data that has been output or will be output.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (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 thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
Further, computer device 10 may also include a display component 14. The display component 14 may be a Light Emitting Diode (LED) display, a liquid crystal display, a touch-sensitive liquid crystal display, an Organic Light-Emitting Diode (OLED) touch panel, or the like. The display component 14 may also be referred to as a display device or display unit, where appropriate, for displaying information processed in the computer device 10 and for displaying a visualized user interface.
Further, the computer device 10 may also comprise a communication component 15. The communication component 15 may optionally include a wired communication component and/or a wireless communication component, such as a WI-FI communication component, a bluetooth communication component, etc., typically used to establish a communication connection between the computer device 10 and other intelligent control devices.
Processor 12, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, executes program code stored in computer-readable storage medium 11 or processes data. Specifically, processor 12 executes a processing program to control computer device 10 to implement a code change analysis engine-based test method.
It is to be understood that fig. 9 only shows the computer device 10 with the components 11-15 and the test method based on the code change analysis engine, and it will be understood by those skilled in the art that the structure shown in fig. 9 does not constitute a limitation of the computer device 10, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, to the extent that such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, it is intended that the present application also encompass such modifications and variations.
The above-mentioned embodiments are only examples of the present invention, and the scope of the claims of the present invention should not be limited by these examples, so that the claims of the present invention should be construed as equivalent and still fall within the scope of the present invention.

Claims (10)

1. A test method based on a code change analysis engine is characterized by comprising the following steps:
the test platform acquires the code of each item changed from the code management platform in real time and stores the code in the corresponding item of the test platform;
the test platform filters the changed codes to obtain target codes;
the test platform analyzes the target code to obtain a change interface and a change type;
the test platform searches a corresponding test case according to the change interface;
the test platform correspondingly saves the test cases and the change types in corresponding projects of the test platform;
the test platform responds to user operation to modify the test case and the interface parameter structure according to the stored test case and the change type;
and the test platform automatically executes the modified test case according to the modified test case and the interface parameter structure.
2. The code change analysis engine-based testing method of claim 1, wherein the method further comprises:
the test platform acquires the association relationship between each test case and the project code by executing the test cases;
and the test platform stores the acquired incidence relation to obtain a case relation library.
3. The code change analysis engine-based testing method of claim 1, wherein the step of analyzing the target code by the testing platform to obtain a change interface and a change type specifically comprises the steps of:
the test platform analyzes the target code into a data file;
the test platform identifies each target code according to the operation type of each target code in the data file to obtain a change type corresponding to each target code;
the test platform analyzes the data file to obtain a class path corresponding to the modified code method, wherein the class path is a path of a folder in which a corresponding code class of a class corresponding to the code method is stored;
and the test platform utilizes the case relation library to map out a corresponding change interface according to the class path.
4. The code change analysis engine-based testing method of claim 3, wherein the step of the testing platform analyzing the data file to obtain the class path corresponding to the modified code method specifically comprises the steps of:
the test platform carries out a recursive algorithm according to each target code in the data file to obtain a code method for calling each target code to be correspondingly modified;
and the test platform acquires the corresponding code class and the class path according to the modified code method.
5. The code change analysis engine-based testing method of claim 1, wherein the step of modifying the test case and the interface parameter structure in response to the user operation by the testing platform according to the stored test case and change type specifically comprises:
the test platform arranges the test cases and the change types into reports to be output;
when the test case scene needs to be modified, the test platform responds to the user operation to modify the test case;
when the change type involves the interface parameter change, the test platform responds to the user operation to modify the corresponding interface parameter structure.
6. The code change analysis engine-based testing method according to claim 3, wherein the following change comparison is performed for record storage every time the testing platform acquires the changed code, and the filtering of the changed code by the testing platform to obtain the target code specifically includes:
the test platform compares the obtained changed codes with corresponding codes stored in the latest record to obtain a comparison result;
when the comparison result is not changed, the test platform filters out the data file which is changed at this time;
and when the comparison result has a change, the test platform detects whether the data file has an invalid change.
7. The code change analysis engine-based testing method of claim 6, wherein the step of detecting whether invalid changes exist in the data file by the testing platform specifically comprises the steps of:
the test platform acquires the changed content in the data file;
and the test platform filters the changed content in the data file according to a preset change rule to obtain a target code.
8. The code change analysis engine-based testing method of claim 1, wherein the step of the testing platform obtaining the changed code of each item from the code management platform in real time in the corresponding item of the testing platform specifically comprises:
when the code management platform receives the corresponding codes of each project according to the instructions, the real-time trigger test platform acquires the corresponding codes of each project received by the code management platform;
and the test platform extracts the changed codes in the corresponding codes of each project from the corresponding projects of the test platform according to the obtained corresponding codes of each project.
9. The test system based on the code change analysis engine is characterized by specifically comprising:
a code management platform;
a test platform comprising: the system comprises an acquisition module, a filtering module, an analysis module, a search module, a storage module, a modification module and an automatic test module, wherein the acquisition module is used for acquiring a code changed in each project from a code management platform in real time, the filtering module is used for filtering the changed code to obtain a target code, the analysis module is used for analyzing the target code to obtain a change interface and a change type, the search module is used for searching a corresponding test case according to the change interface, the storage module is used for correspondingly storing the test case and the change type in the corresponding project of the test platform, the modification module is used for responding to user operation according to the stored test case and the change type and modifying the structures of the test case and the interface parameters, and the automatic test module is used for automatically executing the modified test case according to the modified test case and the interface input parameter.
10. A computer device, characterized in that the computer device specifically comprises:
a computer readable storage medium for storing program instructions; and
processing executing said program instructions to implement a code change analysis engine based test method according to any of claims 1 to 8.
CN202211536788.9A 2022-12-02 2022-12-02 Test method, system and computer equipment based on code change analysis engine Pending CN115794638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211536788.9A CN115794638A (en) 2022-12-02 2022-12-02 Test method, system and computer equipment based on code change analysis engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211536788.9A CN115794638A (en) 2022-12-02 2022-12-02 Test method, system and computer equipment based on code change analysis engine

Publications (1)

Publication Number Publication Date
CN115794638A true CN115794638A (en) 2023-03-14

Family

ID=85444849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211536788.9A Pending CN115794638A (en) 2022-12-02 2022-12-02 Test method, system and computer equipment based on code change analysis engine

Country Status (1)

Country Link
CN (1) CN115794638A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331849A (en) * 2023-12-01 2024-01-02 杭银消费金融股份有限公司 Testing method and system based on accurate analysis of codes

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117331849A (en) * 2023-12-01 2024-01-02 杭银消费金融股份有限公司 Testing method and system based on accurate analysis of codes
CN117331849B (en) * 2023-12-01 2024-02-27 杭银消费金融股份有限公司 Testing method and system based on accurate analysis of codes

Similar Documents

Publication Publication Date Title
US9846634B2 (en) Visual graphical user interface verification
US20190340114A1 (en) Method and apparatus for automatic testing of web pages
CN107045477B (en) Quality assessment platform capable of carrying out multi-dimensional detection
CN109783356A (en) A kind of automated testing method and terminal
CN115794638A (en) Test method, system and computer equipment based on code change analysis engine
CN112882933A (en) Script recording method, device, equipment and storage medium
CN108121648B (en) Interface error monitoring method
US20160314061A1 (en) Software Defect Detection Identifying Location of Diverging Paths
CN113723467A (en) Sample collection method, device and equipment for defect detection
WO2019200808A1 (en) Test case recommendation method, electronic device, and readable storage medium
CN107341110B (en) Tool for modifying and affecting range of software test positioning patch and implementation method
CN112256575A (en) Code quality management method, system and related equipment
CN110618943B (en) Security service test method and device, electronic equipment and readable storage medium
CN112580334A (en) File processing method, file processing device, server and storage medium
CN112529039B (en) Method and device for checking material information of main board and storage medium
CN111324757B (en) Map data problem processing method and device
CN111611153B (en) Method and device for detecting overdrawing of user interface
CN116401113B (en) Environment verification method, device and medium for heterogeneous many-core architecture acceleration card
CN115545677B (en) Online process specification detection method and system based on automatic case execution condition
CN116383834B (en) Detection method for source code vulnerability detection tool abnormality and related equipment
CN115620042B (en) Gear model determination method and system based on target detection and clustering
CN115129355B (en) Page repair method, system and computer equipment thereof
CN116483703A (en) Branch merging detection method and device, electronic equipment and storage medium
CN116166527A (en) Method and system for realizing association of test cases and codes based on probe batch
TWI301203B (en) Test point pitch analyzing method for logic circuit

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