Integration test method, system and equipment based on link coverage

Through the integrated testing method based on link coverage, identifying key links and dynamically adjusting test cases, the shortcomings of traditional integrated testing methods in terms of coverage, efficiency and adaptability are solved, and an efficient, flexible and complete testing process is achieved.

CN119759763APending Publication Date: 2025-04-04TRAVELSKY TECHNOLOGY LIMITED
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411794764.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

Existing integrated testing methods have challenges in improving test coverage, efficiency, accuracy and adapting to system changes, especially in large and complex systems where traditional methods are inefficient and affect the speed of software delivery.

Method used

The integrated testing method based on link coverage is adopted to identify key links by collecting monitoring system information, generate test cases, execute test cases, collect test results, and dynamically adjust test cases to improve link coverage.

Benefits of technology

It significantly improves the degree of automation and testing efficiency, enhances adaptability and flexibility, improves test coverage and test integrity, reduces test cycles, and improves software quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759763A_ABST
    Figure CN119759763A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software testing, and provides an integration testing method, system and equipment based on link coverage, and the method comprises the steps: collecting monitoring system information, obtaining a key link through recognizing the monitoring system information, and storing the obtained key link; generating a test case according to the obtained key link, executing the generated test case to obtain test result information, and collecting and storing the test result information; and dynamically adjusting the test case by analyzing the test result information of the test case, and outputting test information to a user. The problems of insufficient link coverage, tedious manual test case design, low efficiency and the like in a traditional integration test can be solved, a new solution is brought to the field of software quality assurance, and the test efficiency is improved through intelligent test case generation, efficient test execution and flexible test management. And the efficiency and the effectiveness of the integration test stage in the software development process are remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of software testing technology, and in particular, relates to an integrated testing method, system and device based on link coverage. Background Art

[0002] Integration testing is a critical phase in the software development process, and its goal is to verify that different software modules or components behave as expected when combined together. It ensures that each module is not only correct when running independently, but also achieves the expected overall functionality and performance when working together. With the increasing complexity of software systems, traditional integration testing methods face many challenges in ensuring test coverage, efficiency, accuracy, and adaptability to system changes.

[0003] The current integration testing methods are mainly divided into top-down, bottom-up and big bang methods. The top-down method starts from the top level of the system and proceeds downward step by step, testing the interfaces between modules layer by layer; the bottom-up method starts from the bottom module, gradually integrates upward and tests; the big bang method integrates all modules at once and then tests. These methods have their own advantages and disadvantages, but they generally rely on testers to manually design test cases, which will lead to incomplete testing or missing critical paths, increase the risk of missing defects, and have the following shortcomings: 1. Inefficiency and incompleteness. Since the existing technology requires testers to design test cases based on their own experience and understanding of the system, this is not only time-consuming and labor-intensive, but also easily leads to incomplete test coverage due to differences in personal experience; especially for large and complex systems, the existing integration testing methods are insufficient in execution efficiency, affecting the speed of software delivery. 2. Poor adaptability. When the software architecture or function changes, the existing test cases need to be manually updated in large quantities, which increases maintenance costs and reduces the flexibility of testing; 3. Inefficient test data generation and management. Effective testing requires not only reasonable test cases but also appropriate test data. Existing Technologies In data-driven testing, efficiently generating and managing test data that meets specific conditions has always been a challenge.

[0004] To solve the above problems, the industry has adopted a variety of technologies and methods. For example, the model-driven test case generation method can automate the test case design process to a certain extent, while the practice of continuous integration improves the frequency and efficiency of testing. However, these methods still fail to fully solve the problem of link coverage, and the maintenance and updating of test cases is still a major challenge when the system environment changes frequently. The Chinese patent "Automated Testing System and Method" with publication number CN118051434A discloses an automatic testing system that improves testing efficiency by automatically generating test scripts and executing test cases. This solution does not solve the problem of insufficient link coverage, and manual participation in test case design is still required, and test coverage and adaptability are still insufficient.

[0005] Therefore, how to provide an integration testing method that improves the coverage and efficiency of integration testing while improving the adaptability and manageability of integration testing has become a technical problem that needs to be solved urgently. Summary of the invention

[0006] In response to the above problems, the present application provides an integrated testing method, system and device based on link coverage.

[0007] According to a first aspect of the present application, a link coverage-based integrated testing method is provided, the method comprising:

[0008] Collect monitoring system information, obtain key links by identifying the monitoring system information, and store the obtained key links;

[0009] Generate test cases according to the obtained key links, execute the generated test cases to obtain test result information, and collect and store the test result information;

[0010] Dynamically adjust test cases by analyzing the test result information of test cases and output test information to users.

[0011] Optionally, in the integrated testing method based on link coverage of the present application, monitoring system information is collected, key links are obtained by identifying the monitoring system information, and the obtained key links are stored, including: using a link identification module to regularly obtain software, module and interface information from the monitoring system, analyzing the obtained software, module and interface information through a link identification algorithm, identifying and obtaining key links of TAM, sending the identified key links to a test case generation module, and synchronously storing them in a data management module.

[0012] Optionally, in the link coverage-based integrated testing method of the present application, test cases are generated according to the obtained key links, including: using a test case generation module to dynamically generate corresponding test cases according to the received key links and preset test case generation rules.

[0013] Optionally, in the link coverage-based integrated testing method of the present application, corresponding test cases are dynamically generated, including: creating test scripts and test instructions when generating test cases.

[0014] Optionally, in the link coverage-based integrated testing method of the present application, the generated test cases are executed to obtain test result information, and the test result information is collected and stored, including: using the test execution module to execute the test cases generated by the test case generation module, collecting the corresponding test result information, and synchronously storing the collected test result information to the data management module, wherein the test result information includes test success, test failure or test error information.

[0015] Optionally, in the link coverage-based integrated testing method of the present application, a test execution module is used to execute test cases generated by a test case generation module, including: the test execution module sets a corresponding test environment according to a test script, and executes the test cases according to test instructions.

[0016] Optionally, in the link coverage-based integrated testing method of the present application, the test cases are dynamically adjusted by analyzing the test result information of the test cases, including: using a result analysis module to analyze the test result information, calculating the link coverage, judging whether it is necessary to update or add test cases based on the calculated link coverage, and updating or adding test cases based on the judgment result.

[0017] Optionally, in the link coverage-based integrated testing method of the present application, test information is output to the user, including: outputting test result information, link coverage, test case adjustment information, and test data information to the user through an information output module.

[0018] According to a second aspect of the present application, there is provided an integrated testing system based on link coverage, the system comprising an integrated testing server, the integrated testing server comprising:

[0019] Link identification module, used to collect monitoring system information and obtain key links by identifying the monitoring system information;

[0020] A test case generation module, used to generate test cases according to the obtained key links;

[0021] The test execution module is used to execute the generated test cases to obtain test result information and collect test result information;

[0022] Result analysis module, used to analyze the test result information of test cases and dynamically adjust test cases;

[0023] A data management module, used to store the obtained key links and test result information;

[0024] The information output module is used to output test information to the user.

[0025] According to a third aspect of the present application, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect of the present application when executing the program.

[0026] The integrated testing method, system and device based on link coverage of the present application have the following beneficial technical effects:

[0027] 1. Improve the degree of automation and efficiency. Through automated link identification and test case generation, manual intervention is significantly reduced, test efficiency is improved, and test inaccuracies caused by human errors are avoided. Compared with traditional manual test design, the automated process can adapt to rapid changes in software architecture or functions more quickly, ensuring that test cases are always kept up to date, thereby shortening the test cycle and improving test accuracy;

[0028] 2. Enhanced adaptability and flexibility, able to quickly adapt to software architecture or functional changes, and update test cases in real time. This flexibility is not available in traditional integration testing, allowing the test team to respond to development changes in a timely manner and maintain the relevance and effectiveness of test cases, thereby improving software quality and reducing the workload of test case maintenance caused by system changes;

[0029] 3. Improve coverage and test integrity. Through systematic link identification and comprehensive test case generation, ensure full coverage of all key links. Compared with traditional methods, it greatly improves test integrity, reduces the risk of missing key test points, and significantly enhances product quality.

[0030] 4. Improve traceability and transparency, allowing users to easily query test results, view link coverage details and adjust test configurations. Users can understand the test status and coverage in real time through an intuitive interface, adjust test strategies in a timely manner, and control the test process more effectively;

[0031] 5. Improve performance optimization and resource utilization. Through efficient link identification algorithms and optimized data processing processes, it shows higher efficiency when processing large amounts of test data. In actual cases, the test cycle was shortened by 30% while maintaining or even improving test accuracy. Automated testing reduces dependence on professional technicians, enabling the test team to use time and resources more efficiently.

[0032] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures indicated in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1This is an example diagram of the architecture of an integrated test system based on link coverage according to an embodiment of the present application;

[0035] Figure 2 This is an example diagram of the architecture of an integrated test server of an integrated test system based on link coverage according to an embodiment of the present application;

[0036] Figure 3 A flowchart of a link coverage-based integrated testing method according to an embodiment of the present application;

[0037] Figure 4 This is an example diagram of executing an integrated testing method based on link coverage according to an embodiment of the present application;

[0038] Figure 5 This is an example diagram of a link verification data flow of an integrated testing method based on link coverage according to an embodiment of the present application;

[0039] Figure 6 This is an example diagram of a link verification timing of an integrated testing method based on link coverage according to an embodiment of the present application;

[0040] Figure 7 A schematic diagram of the structure of the device provided in this application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0042] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0043] Figure 1 FIG. 1 is an example diagram of an architecture of an integrated test system based on link coverage according to an embodiment of the present application, such as Figure 1As shown, the system may include an integrated test server 101, a communication network 102 and / or one or more integrated test clients 103. Figure 1 The example shown in FIG. 1 is a plurality of integrated test clients 103 .

[0044] The integrated test server 101 can be any appropriate server for storing information, data, programs and / or any other suitable type of content. In some embodiments, the integrated test server 101 can perform appropriate functions. For example, in some embodiments, the integrated test server 101 can be used to perform integrated testing based on link coverage. As an optional example, in some embodiments, the integrated test server 101 can be used to implement integrated testing by identifying key links. For example, the integrated test server 101 can be used to: collect monitoring system information, obtain key links by identifying monitoring system information, and store the obtained key links; generate test cases according to the obtained key links, execute the generated test cases to obtain test result information, collect and store test result information; dynamically adjust the test cases by analyzing the test result information of the test cases, and output test information to the user. The monitoring system of this embodiment can be a TAM system, which is called Travel Sky Application Monitor System, which counts, analyzes, warns and displays the business operation status, and provides interface information and logs of software and modules. This application is illustrated by taking the TAM system as an example, but is not limited to the TAM system. Any monitoring system that can realize system monitoring can be applied to this application.

[0045] As another example, in some embodiments, the integration test server 101 may send the link coverage-based integration test method to the integration test client 103 for the user to use according to the request of the integration test client 103 .

[0046] Figure 2 FIG. 1 is an example diagram of the architecture of an integrated test server of an integrated test system based on link coverage according to an embodiment of the present application, such as Figure 2 As shown, the integrated test server of this embodiment is composed of a link identification module, a test case generation module, a test execution module, a result analysis module, a data management module and an information output module.

[0047] The link identification module of this embodiment is used to collect monitoring system information and obtain key links by identifying the monitoring system information. In practical applications, this module uses an efficient algorithm to analyze the data synchronized from the monitoring system to identify the key links in the system. For example, when a new software version is deployed to the monitoring system, the link identification module will automatically download the relevant software, module and interface information, analyze the data through a preset algorithm, and identify all key links. The identification results are then stored in the data management module and provide the necessary input for the test case generation module.

[0048] The test case generation module of this embodiment is used to generate test cases based on the obtained key links. As an optional example, the test case generation module of this embodiment dynamically generates targeted test cases through a software program based on the key link information provided by the link identification module, and the program can automatically create test scripts or instructions based on the link information and preset rules. For example, if the link identification module identifies a new key link, the test case generation module will generate a corresponding test script based on the characteristics of this link to ensure that this link can be fully verified in subsequent tests.

[0049] The test execution module of this embodiment is used to execute the generated test case to obtain test result information and collect test result information. As an optional example, the test execution module of this embodiment includes hardware resources such as an interface simulator and a signal generator, etc., which are used to simulate various test scenarios and record test results. For example, for a specific test case, the test execution module will set up the corresponding test environment according to the requirements of the test script, execute the test, and collect test result data, including success, failure, error and other information.

[0050] The result analysis module of this embodiment is used to analyze the test result information of the test case and dynamically adjust the test case. As an optional example, the result analysis module of this embodiment analyzes the test results collected by the test execution module, calculates the coverage of the link, and updates or adds test cases as needed. The module processes the test data through a software program, analyzes the coverage of each link, and determines whether it is necessary to update the existing test cases or add new test cases to improve the coverage. For example, if the coverage of a link is found to be lower than expected in a test, the result analysis module will instruct the test case generation module to generate more test cases for this link.

[0051] The data management module of this embodiment is used to store the obtained key links and test result information. As an optional example, the data management module of this embodiment is used to manage all test data, configuration information and test results, and safely store and manage data through a database server and a storage device. For example, after each test is executed, the test result data will be transmitted to the data management module for storage. At the same time, this module is also responsible for managing information such as user information and test configuration to ensure the security and accessibility of these data.

[0052] The information output module of this embodiment is used to output test information to the user, including test results, link coverage and related configurations.

[0053] As an optional example, in some embodiments, the integrated test client 103 is used to provide a visual integrated test interface, which is used to receive a selection input operation of the user's integrated test, and, in response to the selection input operation, obtain the integrated test interface corresponding to the option selected by the selection input operation from the integrated test server 101 and display the integrated test interface, wherein at least the integrated test information and the operation options for the integrated test information are displayed in the integrated test interface. Through the visual integrated test interface, the user can interact with the system, for example, query the link verification results of a specific work order, view the coverage of a specific link, etc. In addition, the user can also adjust the test configuration through the user interface to adapt to different testing requirements.

[0054] In some embodiments, the communication network 102 can be any suitable combination of one or more wired and / or wireless networks. For example, the communication network 102 can include any one or more of the following: the Internet, an intranet, a wide area network (WAN), a local area network (LAN), a wireless network, a digital subscriber line (DSL) network, a frame relay network, an asynchronous transfer mode (ATM) network, a virtual private network (VPN), and / or any other suitable communication network. The integrated test client 103 can be connected to the communication network 102 via one or more communication links (e.g., communication link 104), and the communication network 102 can be linked to the integrated test server 101 via one or more communication links (e.g., communication link 105). The communication link can be any communication link suitable for transmitting data between the integrated test client 103 and the integrated test server 101, such as a network link, a dial-up link, a wireless link, a hard-wired link, any other suitable communication link, or any suitable combination of such links.

[0055] The integration test client 103 may include any one or more clients that present an interface related to the link coverage-based integration test in an appropriate form for use and operation by a user. In some embodiments, the integration test client 103 may include any suitable type of device. For example, in some embodiments, the integration test client 103 may include a mobile device, a tablet computer, a laptop computer, a desktop computer, and / or any other suitable type of client device.

[0056] Although the integration test server 101 is illustrated as one device, in some embodiments, any suitable number of devices may be used to perform the functions performed by the integration test server 101. For example, in some embodiments, multiple devices may be used to implement the functions performed by the integration test server 101. Alternatively, a cloud service may be used to implement the functions of the integration test server 101.

[0057] Based on the above system, an embodiment of the present application provides an integrated testing method based on link coverage, which is illustrated by the following embodiments.

[0058] Figure 3 is a flowchart of a link coverage-based integrated testing method according to an embodiment of the present application. Figure 4 FIG. 1 is an example diagram of an execution of an integrated testing method based on link coverage according to an embodiment of the present application. The integrated testing method based on link coverage of this embodiment can be executed on an integrated testing server, such as Figure 3 and Figure 4 As shown, the integrated testing method based on link coverage includes the following steps:

[0059] Step S201: Collect monitoring system information, obtain key links by identifying the monitoring system information, and store the obtained key links.

[0060] As an optional example, this embodiment uses a link identification module to regularly obtain software, module and interface information from the monitoring system, analyzes the obtained software, module and interface information through a link identification algorithm, identifies the key links of the monitoring system, sends the identified key links to the test case generation module, and synchronously stores them in the data management module. In actual applications, this embodiment uses a link identification module to regularly connect to the monitoring system, download the latest software, module and interface information, analyze this information using a preset algorithm, and identify all key links in the system. For example, for a new software version, the link identification module will analyze the software structure of the version, identify all key links, and store this information in the data management module for subsequent use. It should be noted that when implementing the method of the present application, other suitable algorithms can be selected for link identification according to the actual application scenario, and this embodiment does not limit this. For example, a machine learning algorithm is used for link identification, and a machine learning model is introduced to predict and identify key links.

[0061] Step S202: Generate test cases according to the obtained key links, execute the generated test cases to obtain test result information, and collect and store the test result information.

[0062] The present embodiment adopts a test case generation module to dynamically generate corresponding test cases according to the received key links and preset test case generation rules. When generating test cases, test scripts and test instructions are created. As an optional example, the test case generation module of the present embodiment generates specific test scripts or instructions based on the key link information provided by the link identification module using preset rules and historical data. For example, for a key link involving multiple modules and interfaces, the test case generation module generates a series of test instructions for verifying the function and performance of this link. It should be noted that when implementing the method of the present application, natural language processing technology can also be used to analyze software requirement documents, automatically extract test scenarios and conditions, and then generate accurate and comprehensive test cases.

[0063] After generating the test case, the present embodiment uses the test execution module to execute the test case generated by the test case generation module, collects the corresponding test result information, and synchronously stores the collected test result information to the data management module, and the test result information includes test success, test failure or test error information. For example, the test execution module of the present embodiment sets the corresponding test environment according to the test script, and executes the test case according to the test instruction. For example, for a link that needs to be verified, the test execution module configures the test environment according to the requirements of the test script, simulates various operations and data transmission, and then records the test results, including success, failure, error and other information. In practical applications, the present embodiment can also use cloud computing resources to dynamically allocate the test execution environment, instead of a fixed or local test environment configuration, and dynamically allocate computing and storage resources according to test requirements through the cloud computing platform to improve the flexibility and efficiency of test execution.

[0064] Step S203: dynamically adjusting the test case by analyzing the test result information of the test case, and outputting the test information to the user.

[0065] As an optional example, this embodiment uses a result analysis module to analyze the test result information, calculate the coverage of the link, determine whether to update or add test cases based on the calculated coverage of the link, and update or add test cases based on the determination result. For example, if it is found that the coverage of a certain link is insufficient during the test, the result analysis module will analyze the cause and guide the test case generation module to generate more test cases for this link.

[0066] It should be noted that this embodiment also outputs test result information, link coverage, test case adjustment information, and test data information to the user through the information output module. This embodiment can also introduce visualization tools to improve the intuitiveness of result analysis. In the result analysis stage, data visualization tools are added to help users understand test coverage and potential problems more intuitively, thereby improving the efficiency of problem diagnosis and decision-making.

[0067] In actual applications, if an enterprise originally needed several weeks to manually design integrated test cases, it can complete the same task in just a few days by using the method in this embodiment, and the test coverage rate is increased from 70% to 95%. This not only shortens the time to market, but also significantly improves product quality and reduces subsequent maintenance costs.

[0068] The integrated testing method and system based on link coverage of this embodiment are further described in detail below in specific scenarios.

[0069] Figure 5 FIG. 1 is an example diagram of a link verification data flow of an integrated testing method based on link coverage according to an embodiment of the present application, such as Figure 5As shown, the TAM software information synchronization scheduled task synchronizes the interface information from the TAM system to the TAMProjectData table (TAM software information table) of CSGL every morning, and the scheduled task execution record is saved in the CronTaskExecuteLog table (scheduled task execution log table). The tester can query the TAM software interface information on the CSGL page, and can select the interface information that needs to be verified on his own work order to save it. The link coverage rate of the saved interface will be calculated later. The coverage rate information of each interface detail of the work order is stored in the LinkCheckInterface table (link verification interface information table), and the summary coverage rate of all interface coverage rates of the work order is stored in the LinkCheckSum table (link verification summary table). Because some interfaces are cached, the tester cannot effectively cover the link of the interface during the test process. For these interfaces, the tester can configure the interface name in the LinkCheckInterfaceCacheConfig table (interface cache configuration table), and these interfaces will be excluded when calculating the link coverage rate later. The link verification result calculation scheduled task queries the interface information that needs to be calculated and updated for coverage from the LinkCheck Interface table (link verification interface information table) every morning, obtains all the interface call link information of the previous day from TAM, determines whether the interface has a call record, calculates the interface coverage (queries and removes the cache interface), updates the link verification interface information table and the link verification summary table, and saves the scheduled task execution record in the CronTaskExecuteLog table (scheduled task execution log table). The scheduled task execution detection and email alarm scheduled task queries the CronTaskExecuteLog table (scheduled task execution log table) to determine whether the TAM software information synchronization scheduled task and the link verification result calculation scheduled task have normal execution records on the day. If not, an alarm email is sent to the operation and maintenance personnel, and the operation and maintenance personnel perform data compensation operations. Users can query the calculated link coverage information on the page. The CSGL of this embodiment is the full name of the test unified management tool, which provides internal testers with unified test processes and test resource management functions, test case management and execution, result analysis and display, etc.

[0070] Figure 6 FIG. 1 is a diagram showing an example of a link verification timing of an integrated test method based on link coverage according to an embodiment of the present application, such as Figure 6As shown, the CSGL system executes the scheduled task to query the latest software module interface information from the TAM system and save it in the TAMProjectData table (TAM software information table), save the scheduled task execution record, and send an alarm email to the operation and maintenance personnel if the task execution fails. The tester queries the software module interface information on CSGL, selects the interface that needs link verification on his own work order and saves it. The saved content includes the global design call relationship of the interface obtained from the TAM system (where the call relationship with cache needs to be excluded). The link verification result calculation scheduled task queries the link verification interface information of the work order that has not passed the test, obtains all the link call data of the previous day from TAM, determines whether the global design call relationship of the interface has a call record, removes the link with the call record from the remaining global design call relationship, and subtracts the number of uncovered links from the total number of interface links (where the link with cache needs to be excluded) to obtain the number of covered links. This value is divided by the total number of interface links to obtain the link coverage of the interface, which is saved, and the scheduled task execution record is saved. If the task execution fails, an alarm email is sent to the operation and maintenance personnel. Users can query the calculated link coverage information on the page. Scheduled task execution detection Scheduled task query scheduled task execution log table to determine whether there are normal execution records for the TAM software information synchronization scheduled task and link verification result calculation scheduled task on that day. If not, send an alarm email to the operation and maintenance personnel, and the operation and maintenance personnel will perform data compensation operations.

[0071] The integrated testing method and system based on link coverage of this embodiment have the following beneficial technical effects:

[0072] 1. Improve the degree of automation and efficiency. Through automated link identification and test case generation, manual intervention is significantly reduced, test efficiency is improved, and test inaccuracies caused by human errors are avoided. Compared with traditional manual test design, the automated process can adapt to rapid changes in software architecture or functions more quickly, ensuring that test cases are always kept up to date, thereby shortening the test cycle and improving test accuracy;

[0073] 2. Enhanced adaptability and flexibility, able to quickly adapt to software architecture or functional changes, and update test cases in real time. This flexibility is not available in traditional integration testing, allowing the test team to respond to development changes in a timely manner and maintain the relevance and effectiveness of test cases, thereby improving software quality and reducing the workload of test case maintenance caused by system changes;

[0074] 3. Improve coverage and test integrity. Through systematic link identification and comprehensive test case generation, ensure full coverage of all key links. Compared with traditional methods, it greatly improves test integrity, reduces the risk of missing key test points, and significantly enhances product quality.

[0075] 4. Improve traceability and transparency, allowing users to easily query test results, view link coverage details and adjust test configurations. Users can understand the test status and coverage in real time through an intuitive interface, adjust test strategies in a timely manner, and control the test process more effectively;

[0076] 5. Improve performance optimization and resource utilization. Through efficient link identification algorithms and optimized data processing processes, it shows higher efficiency when processing large amounts of test data. In actual cases, the test cycle was shortened by 30% while maintaining or even improving test accuracy. Automated testing reduces dependence on professional technicians, enabling the test team to use time and resources more efficiently.

[0077] In summary, this embodiment solves the problems in traditional integration testing, such as insufficient link coverage, cumbersome and inefficient manual test case design, and brings new solutions to the field of software quality assurance. Through intelligent test case generation, efficient test execution, and flexible test management, this embodiment can significantly improve the efficiency and effectiveness of the integration test phase in the software development process.

[0078] like Figure 7 As shown, the present application also provides a device, including a processor 310, a communication interface 320, a memory 330 for storing a processor executable computer program, and a communication bus 340. The processor 310, the communication interface 320, and the memory 330 communicate with each other through the communication bus 340. The processor 310 implements the above-mentioned integrated testing method based on link coverage by running the executable computer program.

[0079] Among them, the computer program in the memory 330 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0080] The system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected based on actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0082] Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that it is still possible to modify the technical solutions described in the aforementioned embodiments, or to make equivalent replacements for some of the technical features therein; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An integrated testing method based on link coverage, characterized in that: The method comprises: Collect monitoring system information, obtain key links by identifying the monitoring system information, and store the obtained key links; Generate test cases according to the obtained key links, execute the generated test cases to obtain test result information, and collect and store the test result information; Dynamically adjust test cases by analyzing the test result information of test cases and output test information to users.

2. The integrated testing method based on link coverage according to claim 1 is characterized in that: Collect monitoring system information, obtain key links by identifying the monitoring system information, and store the obtained key links, including: using a link identification module to regularly obtain software, module and interface information from the monitoring system, analyzing the obtained software, module and interface information through a link identification algorithm, identifying and obtaining key links of TAM, sending the identified key links to the test case generation module, and synchronously storing them in the data management module.

3. The integrated testing method based on link coverage according to claim 1 is characterized in that: Generating test cases according to the obtained key links includes: using a test case generation module to dynamically generate corresponding test cases according to the received key links and preset test case generation rules.

4. The integrated testing method based on link coverage according to claim 3 is characterized in that: Dynamically generate corresponding test cases, including: creating test scripts and test instructions when generating test cases.

5. The integrated testing method based on link coverage according to claim 1 is characterized in that: Execute the generated test cases to obtain test result information, collect and store the test result information, including: use the test execution module to execute the test cases generated by the test case generation module, collect the corresponding test result information, and synchronously store the collected test result information to the data management module, wherein the test result information includes test success, test failure or test error information.

6. The integrated testing method based on link coverage according to claim 5 is characterized in that: The test execution module is used to execute the test cases generated by the test case generation module, including: the test execution module sets the corresponding test environment according to the test script, and executes the test cases according to the test instructions.

7. The integrated testing method based on link coverage according to claim 1 is characterized in that: Dynamically adjust the test cases by analyzing the test result information of the test cases, including: using a result analysis module to analyze the test result information, calculate the coverage of the link, determine whether the test cases need to be updated or added based on the calculated link coverage, and update or add the test cases based on the determination result.

8. The integrated testing method based on link coverage according to claim 1, characterized in that: Outputting test information to the user includes: outputting test result information, link coverage, test case adjustment information, and test data information to the user through an information output module.

9. An integrated test system based on link coverage, characterized in that: The system includes an integrated test server, which includes: Link identification module, used to collect monitoring system information and obtain key links by identifying the monitoring system information; A test case generation module, used to generate test cases according to the obtained key links; The test execution module is used to execute the generated test cases to obtain test result information and collect test result information; Result analysis module, used to analyze the test result information of test cases and dynamically adjust test cases; A data management module, used to store the obtained key links and test result information; The information output module is used to output test information to the user.

10. A computer device, characterized in that: The computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to any one of claims 1 to 8 when executing the program.

Citation Information

Patent Citations

  • Automatic testing system and method

    CN118051434A