Test systems, methods, electronic devices, and media

By providing a multi-mode testing environment, the testing system solves the problem of satellite model measurement, control, and operation software testing relying on real hardware equipment, achieving efficient software testing and monitoring analysis, shortening the development cycle, and improving testing efficiency.

CN123138137APending Publication Date: 2026-11-20NO 63921 UNIT OF PLA +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611158795.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-31
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

The testing of existing satellite telemetry, tracking, and command (TT&C) software relies on real hardware equipment, resulting in long development cycles, tight project schedules, and heavy workloads. Software verification and testing work depends on the development of hardware equipment and is difficult to carry out independently.

Method used

A testing system is provided, including a test environment pool, an interaction module, a monitoring module, and a statistical analysis module. It performs software testing through various types of test environments (task state, process state, fault state, and drill state), uses physical hardware devices and test computers to simulate external environment scenarios, monitors resource usage, and analyzes test results.

Benefits of technology

It eliminates the need for frequent setup or modification of the test environment, supports flexible switching between multiple test environments, improves testing efficiency, shortens the software development cycle, lowers the technical threshold, supports full-process monitoring and analysis services, and simplifies the testing process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138137A_ABST
    Figure CN123138137A_ABST
Patent Text Reader

Abstract

The application discloses a test system, a test method, an electronic device and a medium, and relates to the field of software testing. The test system comprises a test environment pool, an interaction module, a matching module, a monitoring module and a statistical analysis module. The test environment pool comprises multiple types of test environments, and the multiple types of test environments correspond to different test requirements. The interaction module is used for receiving a test business text, and the test business text comprises a test requirement. The matching module is used for determining a target test environment corresponding to the test requirement in the test environment pool, and running the target test environment to test a to-be-tested software. The monitoring module is used for monitoring resource usage in a to-be-tested software test process. The statistical analysis module is used for analyzing the resource usage and a test result according to a preset analysis strategy, and outputting an alarm information in the case that the resource usage meets an alarm triggering condition. The test system provides multiple test environments, and improves test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software testing technology, specifically to a testing system, method, electronic device, and medium. Background Technology

[0002] With the continuous advancement of space information technology, on-orbit satellites are widely used in various fields, including civilian and military applications, and the number of on-orbit satellites has become one of the important indicators for measuring a nation's comprehensive strength. Ensuring the normal operation of satellites in orbit has become an important research direction in aerospace systems engineering, which is crucial for improving people's quality of life, ensuring national security, and enhancing national influence. Therefore, how to conduct thorough testing and joint debugging of the telemetry, tracking, and command (TT&C) software responsible for managing satellites before entering the actual operational environment has become key to ensuring the smooth execution of missions by on-orbit satellites.

[0003] The current R&D process for satellite telemetry, tracking, and command (TT&C) software generally follows a sequence: first, overall system design; then, hardware design and prototype production; next, software design, development, and testing; and finally, system integration testing and verification. This process results in a strong correlation between the satellite TT&C software and physical hardware. Software verification and testing largely depend on hardware devices connected via interfaces. Therefore, the testing environment for satellite TT&C software is typically a fully physical testing environment, where the software runs in a real target environment, and all interfaces connected to the software are real hardware devices. The advantage of this testing method is that the software under test has a real operating environment, resulting in high reliability of test results. However, due to the tight integration with hardware, the design and development of the TT&C software usually requires waiting for the hardware to be developed. Furthermore, after software development, in addition to software debugging by designers, a series of tasks are required, including developer testing, third-party testing, and system integration testing. This leads to a significant time commitment to hardware development, making the entire project time-sensitive and demanding, and greatly extending the overall project cycle. Summary of the Invention

[0004] To solve the above-mentioned technical problems, or at least partially solve them, embodiments of this application provide a testing system, a testing method, an electronic device, and a medium.

[0005] In a first aspect, embodiments of this application provide a testing system for testing one or more software under test. The testing system includes a testing environment pool, an interaction module, a matching module, a monitoring module, and a statistical analysis module. The testing environment pool includes multiple types of testing environments, each corresponding to different testing requirements. The testing environment pool includes one or more of the following testing environments: a task-state testing environment, a process-state testing environment, a fault-state testing environment, and a drill-state testing environment. The task-state testing environment is constructed to recreate the real application environment corresponding to the software under test. The process-state testing environment is constructed to verify new functions of the software under test. The fault-state testing environment is constructed to verify the fault tolerance and emergency response performance of the software under test. The drill-state testing environment is constructed to support the joint debugging of the software under test and its associated software. The interaction module is used to receive test business text, which includes test requirement text. The matching module is used to determine the target test environment in the test environment pool that corresponds to the test requirement text, and to run the target test environment to test the software under test; The monitoring module is used to monitor the resource usage of the software under test during the testing process; The statistical analysis module is used to analyze the resource usage and test results monitored by the monitoring module according to a preset analysis strategy, and to output alarm information when the resource usage meets the alarm triggering conditions.

[0006] The test environment in the test environment pool consists of physical hardware devices and test computers. The physical hardware devices are used to run the software under test, and the test computers are used to simulate external environment scenarios related to the software under test, providing data input and signal stimulation for the software under test. The external environment scenarios include one or more of the following: instantaneous power outage scenario, protocol anomaly scenario, and data packet loss scenario.

[0007] In an optional embodiment, the testing system includes a resource management module for managing resources used to build the various types of testing environments.

[0008] In an optional embodiment, the testing system further includes a resource application template; the resource management module further includes a resource configuration submodule, which includes the resource application template. The resource configuration submodule is used to respond to the acquisition of test requirement text, determine the resource application template corresponding to the test business text, apply for test resources according to the resource application template, construct a test environment according to the applied test resources, and manage the resource application template.

[0009] In an optional embodiment, the resource configuration submodule is further configured to: divide the resources for building the test environment according to the dimension of the test tasks, so that each test task exclusively has access to the allocated resource slice.

[0010] In an optional embodiment, the interaction module further includes one or more of the following sub-modules: a test data configuration sub-module, a test script writing sub-module, a test result display and analysis sub-module, and a fault detection and design sub-module.

[0011] In an optional embodiment, the testing system further includes a task scheduling module, used to determine the priority of each test task based on the business importance of the multiple test tasks; and to schedule the multiple tasks according to the priority order of the test tasks, wherein the multiple test tasks are for testing one or more software under test.

[0012] Secondly, embodiments of this application provide a testing method, including: Receive test service text, which includes test requirement text; A target test environment corresponding to the strategy requirements is obtained from the test environment pool, and the target test environment is run to test the software under test. The test environment pool includes multiple types of test environments, each corresponding to different test requirements. The test environment pool includes one or more of the following test environments: task-mode test environment, process-mode test environment, fault-mode test environment, and drill-mode test environment. The task-mode test environment is constructed to reproduce the real application environment corresponding to the software under test. The process-mode test environment is constructed to verify the new functions of the software under test. The fault-mode test environment is constructed to verify the fault tolerance and emergency response performance of the software under test. The drill-mode test environment is constructed to support the joint debugging of the software under test and its associated software. Monitor the resource usage of the software under test during the testing process; The monitoring module analyzes the resource usage and test results monitored by the monitoring module according to the preset analysis strategy, and outputs alarm information when the resource usage meets the alarm triggering conditions.

[0013] In an optional embodiment, the method further includes: receiving test cases, the test cases including test input data, execution conditions, and expected results; testing the software under test based on the test input data and the execution conditions; and comparing the expected results with the test results to determine whether the software under test meets the test requirements.

[0014] In an optional embodiment, the method further includes: in response to obtaining the test requirement text, determining the resource application template corresponding to the test business text, applying for test resources according to the resource application template, and constructing a test environment based on the applied test resources.

[0015] In an optional embodiment, the method further includes: determining the priority of each test task based on the business importance of the multiple test tasks; scheduling the multiple tasks according to the priority order of the test tasks, wherein the multiple test tasks are for testing one or more software under test.

[0016] Thirdly, embodiments of this application provide an electronic device, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor. When the program or instructions are executed by the processor, they implement the testing method provided in any embodiment of this application.

[0017] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, and when the program or instructions are executed by a processor, they implement the test method provided in any embodiment of this application.

[0018] The testing system provided in this application provides multiple types of testing environments through a testing environment pool, which can meet the testing needs of different purposes. It eliminates the need for frequent setup or modification of testing environments due to changes in testing requirements, enabling flexible switching between multiple testing environments, improving testing efficiency and lowering the technical barrier to entry. The system receives test business text through an interaction module, and a matching module parses the test business text to determine the corresponding test requirements, thereby determining and running the corresponding testing environment for testing the software under test. A monitoring module monitors the resource usage of the software under test during the testing process, and a statistical analysis module analyzes the resource usage and test results according to a preset analysis strategy. When resource usage meets alarm triggering conditions, alarm information is output, providing full-process monitoring and analysis services for the operating environment status. This facilitates problem localization, reproduction, and resolution, shortening the overall software development lifecycle. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below.

[0020] Figure 1 A schematic diagram illustrating the software development process in prior art is shown; Figure 2 A block diagram of a test system according to an embodiment of this application is shown; Figure 3A block diagram of a test system according to another embodiment of this application is shown; Figure 4 A schematic diagram of the architecture of the test system according to an embodiment of this application is shown; Figure 5 A block diagram of a test system according to another embodiment of this application is shown; Figure 6 A flowchart illustrating the testing method of an embodiment of this application is shown; Figure 7 A block diagram illustrating an electronic device according to an embodiment of this application is shown. Detailed Implementation

[0021] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0023] Figure 2 A block diagram of a test system according to an embodiment of this application is shown. This test system is used to test one or more software under test.

[0024] like Figure 2 As shown, the test system 200 includes a test environment pool 201, an interaction module 202, a matching module 203, a monitoring module 204, and a statistical analysis module 205.

[0025] The test environment pool 201 includes various types of test environments. Different types of test environments correspond to different test requirements, such as test requirements to ensure the normal operation and execution of tasks by the software under test, test requirements to verify new functions of the software under test, test requirements to test the fault handling and emergency response capabilities of the software under test, and test requirements for joint debugging.

[0026] As an optional example, the test environment pool includes one or more of the following test environments: task-oriented test environment, process-oriented test environment, fault-oriented test environment, and drill-oriented test environment. The task-oriented test environment is a test environment built to reproduce the real application environment corresponding to the software under test. It is used to completely align the logic of the software under test during actual operation, avoiding test deviations caused by environmental differences. Test data injected into the software under test in the task-oriented test environment includes, for example, business data generated during the actual application of the software under test. The process-oriented test environment is a test environment built to verify new functions of the software under test. Test data injected into the software under test in the process-oriented test environment includes, for example, composite data composed of business data generated during the actual application of the software under test and simulation data generated by the virtual simulation system. The process-oriented test environment can be used to quickly verify new software functions. The fault-oriented test environment is a test environment built to verify the fault tolerance and emergency response performance of the software under test. Test data injected into the software under test in the fault-oriented test environment includes, for example, composite data containing simulated fault data. The fault-oriented test environment can be used to accurately verify the software's anomaly handling capabilities. The test environment is a testing environment built to support the joint debugging of the software under test (SDK) and its related software. Test data injected into the SDK in the test environment includes, for example, business data generated during the actual application of the SDK or simulation data generated by a virtual simulation system. The test environment is adaptable to complex scenarios of multi-system joint debugging and supports flexible scheduling of large systems.

[0027] In an optional embodiment, each test environment in the test environment pool consists of physical hardware devices and test computers. The physical hardware devices are used to run the software under test (SUBUT) and output its results. Optional examples of physical hardware devices include, but are not limited to, computing power devices, servers, storage devices (such as memory and disks), and network devices. The test computers are used to simulate external environment scenarios related to the SUBUT, capable of simulating the abstract interfaces and functions of a virtual system, thereby providing data input and signal stimulation for the SUBUT. These external environment scenarios include one or more of the following: momentary power outage scenarios, protocol anomaly scenarios, and data packet loss scenarios.

[0028] The test environment of this application embodiment includes physical hardware devices and a test computer. The test computer is used to simulate the external environment scenarios related to the software under test, and interconnects the physical hardware devices with the virtual simulation, so that the testing of the software under test is more comprehensive, efficient and reliable.

[0029] The interaction module 202 is used to receive test business text. For example, it receives test business text uploaded by users through a visual interactive interface. This test business text may include, for example, test requirements, test cases, and expected test results.

[0030] In optional embodiments, the interaction module 202 may further include one or more of the following sub-modules: test data configuration sub-module, test script writing sub-module, test result display and analysis sub-module, and fault detection and design sub-module.

[0031] The test data configuration submodule provides data required for software operation in the form of data files, meeting specified data format requirements. This includes orbital data, attitude data, and raw code stream data, encompassing data from real business systems and simulation data from simulation submodules such as satellite simulators. This allows for the integration of business data and various simulation data, enabling flexible configuration of test data according to testing needs. The test script writing submodule is used to develop test scripts, generate batch files, and automate testing. The test result display and analysis submodule displays real-time data of interest to users during testing, such as telemetry data. After real-time telemetry ends, the collected test data is automatically compared and analyzed to determine if software issues exist, resource usage, and software code coverage (software code coverage indicates which analyses and statements in the software code were not executed, analyzing code coverage and branch coverage, for example, displaying executed / unexecuted code and branches for testers to analyze and confirm). The fault detection and design submodule is used to locate and repair faults that occur during the testing process in a timely manner, and can design fault types that meet the testing requirements. It can inject faults according to given events and methods to meet the needs of testers to examine the operation of the software under test in fault conditions.

[0032] The matching module 203 is used to determine the target test environment in the test environment pool that corresponds to the test requirements, and to run the target test environment to test the software under test. Optionally, the matching module 203 can use a preset expert system to match the test requirements with the test environments in the test environment pool to determine the target test environment corresponding to the test requirements. After determining the target test environment, the target test environment is run and the software under test is run to test the software under test.

[0033] The monitoring module 204 is used to monitor the resource usage of the software under test during the testing process. For example, the monitoring module 204 monitors the memory usage (such as memory utilization), CPU usage (such as CPU utilization), disk throughput, communication latency, or data packet loss (packet loss rate or retransmission rate) of the software under test during the testing process.

[0034] The statistical analysis module 205 is used to analyze the resource usage and / or test results monitored by the monitoring module according to a preset analysis strategy. Optionally, the statistical analysis module 205 can analyze the resource usage and / or test results during the testing process through the analysis strategy within the expert system or a pre-trained network model (such as a large language model, an attention-based neural network model, or a network model based on reinforcement learning algorithms). For example, the resource usage and test results of the software under test during the testing process can be provided to the large language model (LLM), and specified prompts (instructions or keywords used in the field of artificial intelligence to guide intelligent models to generate output) can be input into the large language model to guide the large language model to perform analysis. As an optional example, the specified prompt words input into the large language model include the following: "You are a senior test operations and maintenance analysis expert. Based on the resource usage data and test results I provided during the testing process, complete the following analysis tasks: Analyze the usage trends of four core resources: CPU, memory, disk I / O, and network; locate resource bottlenecks; and mark abnormal indicators during high-load periods. Correlate the causal relationship between resource consumption and test efficiency, provide resource optimization suggestions, and output a resource scheduling and adjustment plan that can be directly implemented. Output a structured analysis report, highlighting key risk warning items."

[0035] The statistical analysis module 205 is also used to output alarm information when resource usage meets alarm triggering conditions. For example, different alarm triggering conditions can be set for monitoring indicators of resource usage. For example, for CPU utilization, the alarm triggering condition is set to output alarm information when CPU utilization is greater than or equal to a specified threshold. Therefore, in response to detecting that CPU utilization is greater than or equal to the specified threshold, the statistical analysis module 205 outputs alarm information via email, SMS, or in-site notification.

[0036] Optionally, the statistical analysis module 205 is also used to statistically analyze software code coverage. Software code coverage is used to indicate which analyses and statements in the software code were not executed, analyzing code coverage and branch coverage.

[0037] The testing system provided in this application provides multiple types of testing environments through a testing environment pool, which can meet the testing needs of different purposes. It eliminates the need for frequent setup or modification of testing environments due to changes in testing requirements, enabling flexible switching between multiple testing environments, improving testing efficiency, and lowering the technical barrier to entry. The system receives test business text through an interaction module, and a matching module parses the test business text to determine the corresponding test requirements, thereby determining and running the corresponding testing environment for testing the software under test. A monitoring module monitors the resource usage of the software under test during the testing process, and a statistical analysis module analyzes resource usage and test results according to a preset analysis strategy. When resource usage meets alarm triggering conditions, alarm information is output, providing full monitoring and analysis of the operating environment status. This facilitates problem localization, reproduction, and resolution, shortening the overall software development lifecycle. Furthermore, the interaction module provides one or more sub-modules (tools): a test data configuration sub-module, a test script writing sub-module, a test result display and analysis sub-module, and a fault detection and design sub-module. These sub-modules simplify the testing process, reduce the workload of testers, and improve testing efficiency.

[0038] Figure 3 A block diagram of a test system according to another embodiment of this application is shown. Figure 3 As shown, the testing system includes: a test environment pool 301, an interaction module 302, a matching module 303, a monitoring module 304, a statistical analysis module 305, and a resource management module 306. The test environment pool 301, interaction module 302, matching module 303, monitoring module 304, and statistical analysis module 305 can be referenced. Figure 2 The embodiments shown are not described in detail here to avoid repetition.

[0039] The resource management module 306 is used to manage the resources for building the test environment, such as physical hardware resources like computing devices, memory, network, and disk, as well as virtual resources like virtual machines and containers.

[0040] Optionally, the resource management module 306 includes a resource configuration submodule 3061.

[0041] The resource configuration submodule 3061 is used to respond to the acquisition of test requirement text, determine the resource application template corresponding to the test business text, and apply for test resources according to the resource application template to build a test environment based on the applied test resources. The resource application template includes, for example, resource details such as a resource list, environment requirements, and permission descriptions. The resource application template is pre-bound to the exclusive resource quota rules of the polymorphic test environment, automatically verifying the matching degree between the applied resources and the test scenario, avoiding excessive application or insufficient quotas for resources such as CPU and memory. Optionally, the resource application template can correspond to the type of test environment; different types of test environments correspond to different resource application templates. For example, in this embodiment, the test requirement text is parsed to determine the type of test environment corresponding to the test requirement text, such as a fault-state test environment, and then the resource application template corresponding to the fault-state test environment is determined. This resource application template corresponding to the fault-state test environment is the resource application template corresponding to the test requirement text. Again, optionally, the resource application template can correspond to the test business scenario; different test business scenarios correspond to different resource application templates.

[0042] When resources are successfully requested based on a resource request template, the resource configuration submodule 3061 also supports querying the details of resources requested based on the template, enabling convenient resource management. For example, upon receiving a query command, the resource configuration submodule 3061 determines the resource request template corresponding to the query command and displays the resources requested based on that template.

[0043] Optionally, the resource configuration submodule 3061 also supports verifying the quality of the constructed test environment according to preset verification indicators. These preset verification indicators include one or more of the following: resource consistency, network connectivity, and stability score. Resource consistency indicates whether the resources of the test environment are consistent with the resource requirements in the test requirement text. Network connectivity indicates the connectivity between test nodes and between test nodes and external devices within the test environment. The stability score indicates the stability of the test environment. Optionally, embodiments of this application can utilize a large language model to compare the resources of the target test environment with the resources required by the test requirement text, outputting a resource consistency score, which indicates the resource consistency of the target test environment. For network connectivity and stability scores, embodiments of this application can inject preset test cases into the target test environment, using these preset test cases to evaluate the network connectivity and stability of the target test environment, and then obtain the network connectivity and stability scores of the target test environment based on the test results.

[0044] The resource configuration submodule 3061 also provides resource application template management functions, supporting the creation, deletion, and modification of templates. For example, in response to receiving a template creation command, the resource configuration submodule 3061 creates a resource application template according to the target creation command; and / or, in response to receiving a template update command, modifies the resource application template indicated by the template update command; and / or, in response to receiving a deletion command, deletes the resource application template indicated by the deletion command.

[0045] Optionally, the resource configuration submodule 3061 is also used to divide the resources for building the test environment according to the dimension of the test task, so that each test task has exclusive access to the allocated resource slice.

[0046] In optional implementation scenarios, there may be multiple test tasks. To avoid resource contention and conflicts that may occur when multiple test tasks are executed in parallel, this application embodiment divides the resources for building the test environment according to the dimension of test tasks. Each test task can only occupy its allocated resource slice, and others cannot occupy the resources of other test tasks. For example, when it is necessary to execute test task 1, test task 2, and test task 3 simultaneously (test task 1 is used to test software 1 under test, and test tasks 2 and 3 are used to test different versions of software 2 under test), this application embodiment determines the corresponding target test environment based on the test requirement text of test task 1, test task 2, and test task 3, and then determines the resource application template corresponding to the target test environment. Resources are applied for according to the resource application template to build the corresponding test environment. Test task 1, test task 2, and test task 3 are executed simultaneously, and each test task 1, test task 2, and test task 3 exclusively occupies its own allocated resources, avoiding resource contention. At the same time, the running space of different versions of software 2 under test is isolated to avoid mutual interference, thus realizing the requirement of parallel testing of multiple versions of software.

[0047] The testing system provided in this application provides multiple types of testing environments through a testing environment pool, which can meet the testing needs of different purposes. It eliminates the need to frequently build or modify testing environments due to changes in testing requirements, realizes flexible switching of multi-mode testing environments, improves testing efficiency, and lowers the technical threshold for use. The resource management module manages the resources used to build the testing environment, realizing full-process management of the resource lifecycle, and enabling monitoring, dynamic allocation, and scheduling of allocated resources. The resource application template is pre-bound to the exclusive resource quota rules of the multi-mode testing environment, automatically verifying the matching degree between the applied resources and the test scenario. Applying for resources through the resource application template can avoid excessive application or insufficient quota of resources such as CPU and memory.

[0048] Figure 4A schematic diagram of the test environment for an embodiment of the test system of this application is shown. For example... Figure 4 As shown, the test environment in this embodiment includes a physical layer, a data layer, and a test layer. The physical layer includes physical hardware devices such as memory, disk, network, and computing devices. The data layer includes business data generated by various business systems and simulation data produced by the simulation system. The test layer constructs a polymorphic test environment using the resources provided by the physical layer and uses the data provided by the data layer to test the software under test with different functions within the polymorphic test environment.

[0049] Figure 5 A block diagram of a test system according to yet another embodiment of this application is shown. Figure 5 As shown, the testing system includes: a testing environment pool 501, an interaction module 502, a matching module 503, a monitoring module 504, a statistical analysis module 505, a resource management module 506, and a task scheduling module 507.

[0050] The test environment pool 501 includes various types of test environments, each corresponding to different testing requirements. As an optional example, the test environment pool includes one or more of the following test environments: task-oriented test environment, process-oriented test environment, fault-oriented test environment, and drill-oriented test environment; wherein, the task-oriented test environment is constructed to reproduce the real application environment corresponding to the software under test; the process-oriented test environment is constructed to verify the new functions of the software under test; the fault-oriented test environment is constructed to verify the fault tolerance and emergency response performance of the software under test; and the drill-oriented test environment is constructed to support the joint debugging of the software under test and its associated software.

[0051] The interaction module 502 is used to receive test business text, which includes test requirements.

[0052] The matching module 503 is used to determine the target test environment in the test environment pool that corresponds to the test requirements, and to run the target test environment to test the software under test.

[0053] The monitoring module 504 is used to monitor the resource usage of the software under test during the testing process.

[0054] The statistical analysis module 505 is used to analyze the resource usage and test results monitored by the monitoring module according to the preset analysis strategy, and to output alarm information when the resource usage meets the alarm triggering conditions.

[0055] The resource management module 506 is used to manage resources for building various types of test environments. The resource management module 506 includes a resource configuration submodule 5061. The resource configuration submodule 5061, in response to receiving test requirement text, determines the resource application template corresponding to the test business text, applies for test resources according to the resource application template, and builds the test environment based on the applied test resources; it is also used to partition the resources for building the test environment according to the dimension of test tasks, so that each test task exclusively uses its allocated resource slice.

[0056] The task scheduling module 507 is used to determine the priority of each test task based on the business importance of multiple test tasks; and to schedule the multiple tasks according to the priority order of the test tasks.

[0057] This application embodiment uses a task scheduling module to prioritize test tasks based on their business importance, dynamically allocate resources, queue tasks, stagger scheduling, and resolve conflicts, prioritizing the efficient execution of core and essential test tasks, and achieving task scheduling according to task priority to maximize resource utilization and testing efficiency.

[0058] Figure 6 A flowchart illustrating the testing method of an embodiment of this application is shown. Figure 6 As shown, the test method includes: Step S601: Receive test service text, which includes test requirement text.

[0059] Step S602: Determine the target test environment in the test environment pool that corresponds to the test requirement text, and run the target test environment to test the software under test; the test environment pool includes multiple types of test environments, each corresponding to different test requirements.

[0060] Step S603: Monitor the resource usage of the software under test during the testing process.

[0061] Step S604: Analyze the resource usage and test results monitored by the monitoring module according to the preset analysis strategy, and output alarm information when the resource usage meets the alarm triggering conditions.

[0062] In an optional embodiment, the method further includes: receiving test cases, the test cases including test input data, execution conditions, and expected results; testing the software under test based on the test input data and the execution conditions; and comparing the expected results with the test results to determine whether the software under test meets the test requirements.

[0063] In an optional embodiment, the method further includes: in response to obtaining the test requirement text, determining the resource application template corresponding to the test business text, applying for test resources according to the resource application template, and constructing a test environment based on the applied test resources.

[0064] In an optional embodiment, the method further includes: in response to receiving a template creation command, creating a resource application template according to the target creation command; and / or, in response to receiving a template update command, modifying the resource application template indicated by the template update command according to the template update command; and / or, in response to receiving a deletion command, deleting the resource application template indicated by the deletion command.

[0065] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of the present invention is shown. For example... Figure 7 As shown, the electronic device includes: The system includes a processor 701, a communication interface 702, a memory 703, and a communication bus 704. The processor 701, communication interface 702, and memory 703 communicate with each other via the communication bus 704. Memory 703 is used to store computer programs; When processor 701 executes a program stored in memory 703, it performs the following steps: Receive test service text, which includes test requirement text; Obtain the target test environment corresponding to the test requirements from the test environment pool, and run the target test environment to test the software under test; the test environment pool includes multiple types of test environments, which correspond to different test requirements; the test environment pool includes one or more of the following test environments: task-state test environment, process-state test environment, fault-state test environment, and drill-state test environment; The task-state test environment is a test environment constructed to reproduce the real application environment corresponding to the software under test; the process-state test environment is a test environment constructed to verify the new functions of the software under test; the fault-state test environment is a test environment constructed to verify the fault tolerance performance and emergency response performance of the software under test; and the drill-state test environment is a test environment constructed to support the joint debugging of the software under test and its associated software. Monitor the resource usage of the software under test during the testing process; The monitoring module analyzes the resource usage and test results monitored by the monitoring module according to the preset analysis strategy, and outputs alarm information when the resource usage meets the alarm triggering conditions.

[0066] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0067] The communication interface is used for communication between the aforementioned terminal and other devices.

[0068] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0069] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0070] In another embodiment of the present invention, a computer-readable storage medium is also provided, which stores instructions that, when executed on a computer, cause the computer to perform any of the test methods described in the above embodiments.

[0071] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to perform any of the test methods described in the above embodiments.

[0072] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0073] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0074] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0075] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A testing system, characterized in that, The testing system includes a testing environment pool, an interaction module, a matching module, a monitoring module, and a statistical analysis module; The test environment pool includes multiple types of test environments, each corresponding to different test requirements; the test environment pool includes one or more of the following test environments: task-mode test environment, process-mode test environment, fault-mode test environment, and drill-mode test environment. The task-state test environment is a test environment constructed to reproduce the real application environment corresponding to the software under test; the process-state test environment is a test environment constructed to verify the new functions of the software under test; the fault-state test environment is a test environment constructed to verify the fault tolerance performance and emergency response performance of the software under test; and the drill-state test environment is a test environment constructed to support the joint debugging of the software under test and its associated software. The interaction module is used to receive test business text, which includes test requirement text. The matching module is used to determine the target test environment in the test environment pool that corresponds to the test requirement text, and to run the target test environment to test the software under test; The monitoring module is used to monitor the resource usage of the software under test during the testing process; The statistical analysis module is used to analyze the resource usage and test results monitored by the monitoring module according to a preset analysis strategy, and to output alarm information when the resource usage meets the alarm triggering conditions.

2. The system according to claim 1, characterized in that, The test environment in the test environment pool consists of physical hardware devices and test computers. The physical hardware devices are used to run the software under test, and the test computers are used to simulate external environment scenarios related to the software under test, providing data input and signal stimulation for the software under test. The external environment scenarios include one or more of the following: instantaneous power outage scenario, protocol anomaly scenario, and data packet loss scenario.

3. The testing system according to claim 1 or 2, characterized in that, The testing system includes a resource management module for managing the resources used to build the various types of testing environments.

4. The testing system according to claim 3, characterized in that, The resource management module also includes a resource configuration sub-module, which includes a resource application template. The resource configuration submodule is used to respond to the acquisition of test requirement text, determine the resource application template corresponding to the test business text, apply for test resources according to the resource application template, construct a test environment according to the applied test resources, and manage the resource application template.

5. The testing system according to claim 4, characterized in that, The resource configuration submodule is also used to: divide the resources for building the test environment according to the dimension of the test task, so that each test task has exclusive access to the allocated resource slice.

6. The testing system according to claim 1, characterized in that, The interaction module also includes one or more of the following sub-modules: test data configuration sub-module, test script writing sub-module, test result display and analysis sub-module, and fault detection and design sub-module.

7. The testing system according to claim 1, characterized in that, The testing system also includes a task scheduling module, which is used to determine the priority of each test task based on the business importance of multiple test tasks; and to schedule the multiple tasks according to the priority order of the test tasks, wherein the multiple test tasks are to test one or more software under test.

8. A testing method, characterized in that, The method is applied to the test system according to any one of claims 1-7: the method includes: Receive test service text, which includes test requirement text; A target test environment corresponding to the test requirements is obtained from the test environment pool, and the target test environment is run to test the software under test. The test environment pool includes multiple types of test environments, each corresponding to different test requirements. The test environment pool includes one or more of the following test environments: task-mode test environment, process-mode test environment, fault-mode test environment, and drill-mode test environment. The task-mode test environment is constructed to recreate the real application environment corresponding to the software under test. The process-mode test environment is constructed to verify the new functions of the software under test. The fault-mode test environment is constructed to verify the fault tolerance and emergency response performance of the software under test. The drill-mode test environment is constructed to support the joint debugging of the software under test and its associated software. Monitor the resource usage of the software under test during the testing process; The monitoring module analyzes the resource usage and test results monitored by the monitoring module according to the preset analysis strategy, and outputs alarm information when the resource usage meets the alarm triggering conditions.

9. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the method of claim 8.

10. A readable storage medium, characterized in that, A program or instructions are stored on the readable storage medium, which, when executed by a processor, implement the method as described in claim 8.