A testing method, device, equipment and storage medium
Through automated configuration and monitoring of the RPA system, the problems of duplication of work and incomplete monitoring in traditional test management are solved, and the quality of software delivery and management efficiency are improved.
Patent Information
- Application Number
- CN202111515210.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-13
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2041-12-13
AI Technical Summary
Traditional testing process management relies on the management experience of test managers, resulting in duplication of work and inability to fully monitor, causing waste of human resources and making it difficult to ensure the quality of software delivery.
The Robotic Process Automation (RPA) system is used to obtain the address information, target association rules and target values of the target system, automate configuration, data collection, monitoring and early warning, calculate the first value through the target data and association rules, and compare it with the target value to determine the test results and early warning information.
It achieves flexibility and accuracy in the test management process, reduces duplication of human resources, and improves software delivery quality and management efficiency.
Smart Images

Figure CN114185790B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a testing method, apparatus, device, and storage medium. Background Art
[0002] During the test project management process, the success of a project depends on factors such as time, cost, and quality. To improve process management and quality control of software testing projects, test managers generally need to focus on these three aspects. Manual management is currently widely used to better balance these factors while also enabling real-time data acquisition.
[0003] Traditional test process management relies on the experience of test managers. Different test managers have different understandings of test process management, and there's no standard approach to follow. Understanding each monitoring item also relies on the individual test manager's interpretation. Organizational-level formulas for obtaining accurate data for each monitoring indicator are required. Furthermore, traditional test process management requires real-time monitoring of various indicators, resulting in significant duplication of effort and a waste of human resources. Summary of the Invention
[0004] In view of this, the present invention provides a testing method, apparatus, device and storage medium, which solve the problems of test managers' repeated work and inability to fully monitor during the management process, increase the flexibility of the test management process, save human resources, and improve the final software delivery quality.
[0005] In a first aspect, an embodiment of the present invention provides a testing method, the method comprising:
[0006] Acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value;
[0007] Acquire target data from the target system according to the address information of the target system;
[0008] determining a first value according to the target data and the target association rule;
[0009] A test result is determined according to the first value and the target value.
[0010] In a second aspect, an embodiment of the present invention further provides a testing device, the device comprising:
[0011] A first acquisition module is configured to acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value;
[0012] A second acquisition module, configured to acquire target data from the target system according to the address information of the target system;
[0013] A first determining module, configured to determine a first value according to the target data and the target association rule;
[0014] The second determining module is used to determine a test result according to the first value and the target value.
[0015] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the testing method described in any of the above embodiments.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the test method as described in any of the above embodiments.
[0017] This embodiment of the present invention obtains target data from a target system based on the target system's address information by acquiring a configuration item to be tested; determines a first value based on the target data and a target association rule; and determines a test result based on the first value and the target value. This solution solves the problems of test managers' duplication of effort and lack of comprehensive monitoring during the management process, increases the flexibility of the test management process, saves human resources, and improves the quality of final software delivery. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is a flow chart of a testing method provided in Example 1 of the present invention;
[0019] Figure 2 This is a flowchart of a testing method based on RPA technology provided in Example 1 of the present invention;
[0020] Figure 3 This is a schematic structural diagram of a testing device provided in the second embodiment of the present invention;
[0021] Figure 4 This is a structural diagram of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all of the structures. Furthermore, the embodiments of the present invention and the features of the embodiments may be combined with one another unless otherwise specified.
[0023] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. When its operation is completed, the process can be terminated, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the features in the embodiments of the present invention and the embodiments can be combined with each other without conflict.
[0024] The term "including" and its variations used in the present invention are open inclusions, that is, "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment."
[0025] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are used only to distinguish the description and should not be understood as indicating or implying relative importance.
[0026] Example 1
[0027] Figure 1 This is a flow chart of a testing method provided in the first embodiment of the present invention. This embodiment is applicable to software testing. The method can be executed by the testing device in the embodiment of the present invention. The device can be implemented in software and / or hardware. Figure 1 As shown, the method specifically includes the following steps:
[0028] S101. Obtain at least one configuration item to be tested.
[0029] It should be noted that the configuration items to be tested refer to the monitoring configuration items to be tested. In the process of software testing process management and quality monitoring, the configuration items to be monitored, namely the configuration items to be tested, are first configured.
[0030] The configuration items to be tested include: target system address information, target association rules, and target values.
[0031] In this embodiment, the target system refers to a system storing parameters required for monitoring. For example, the parameters required for monitoring include B1 and C1. B1 and C1 are stored in system S1, so system S1 is the target system.
[0032] It's important to explain that target association rules refer to the association rules between the parameters required for monitoring. These target association rules include target calculation formulas, which are the calculation formulas between the parameters required for monitoring. For example, if we monitor the overall project lifecycle and find that the overall project lifecycle = project commissioning date - project demand arrival date, then this calculation formula is the target association rule for the overall project lifecycle.
[0033] It should be noted that target values refer to the target values that are marked after breaking down each task during software testing process management and quality monitoring. High-quality testing process management is a prerequisite for ensuring the quality of software system projects. During the testing process, each task is broken down and marked with target values. The test results are compared with the target values to manage the testing project process.
[0034] Specifically, a Robotic Process Automation (RPA) system (RPA is a technology that uses specific "robot software" to simulate human operations on a computer and automatically execute process tasks according to rules) obtains at least one configuration item to be tested, where the configuration item to be tested includes the address information of the target system, the target association rule, and the target value.
[0035] S102: Acquire target data from the target system according to the address information of the target system.
[0036] It should be noted that the target data refers to the parameters required for monitoring stored in the target system, for example, the target data B1 and C1 stored in the target system S1.
[0037] Specifically, the RPA system obtains target data from the target system based on the address information of the target system.
[0038] S103: Determine a first value according to the target data and the target association rule.
[0039] It should be explained that the first value refers to the result calculated based on the target data and the target association rule. For example, if the target data is B1 and C1 and the target association rule is A1=B1-C1, then the first value determined is A1.
[0040] Specifically, the RPA system inputs the target data into the target calculation formula for calculation to obtain a first value.
[0041] S104: Determine a test result according to the first value and the target value.
[0042] It should be noted that the test result refers to the result obtained by comparing the determined first value with the target value.
[0043] Specifically, the first value determined according to the target data and the target association rule is compared with the target value. If the first value and the target value are different, the test result is determined according to the first value and the target value.
[0044] This embodiment of the present invention obtains target data from a target system based on the target system's address information by acquiring a configuration item to be tested; determines a first value based on the target data and a target association rule; and determines a test result based on the first value and the target value. This solution solves the problems of test managers' duplication of effort and lack of comprehensive monitoring during the management process, increases the flexibility of the test management process, saves human resources, and improves the quality of final software delivery.
[0045] Optionally, the configuration items to be tested also include: warning values.
[0046] The warning value may be understood as a value preset in advance according to actual conditions. When the first value determined according to the target data and the target association rule reaches the preset value, a warning operation is performed.
[0047] Accordingly, after determining the test result according to the first value and the target value, the method further includes:
[0048] Determine the warning information based on the warning value and test results.
[0049] It should be noted that warning information refers to the warning information sent by the RPA system to the test manager. For example, the warning method may be a frequency method or a target difference method. Different communication methods are used depending on the warning method. Communication methods such as email, text message, and voice can be used.
[0050] Specifically, the RPA system compares the test result determined based on the first numerical value and the target value with the preset warning value, and determines the warning information based on the comparison result of the warning value and the test result.
[0051] Optionally, the configuration items to be tested also include: warning rules.
[0052] It should be noted that the warning rule can be understood as a warning rule preset in advance according to the actual situation. When the first value determined according to the target data and the target association rule reaches the warning value, the warning operation is performed according to the preset rule.
[0053] Accordingly, after determining the warning information based on the warning value and the test results, it also includes:
[0054] Determine the warning time according to the warning rules.
[0055] In this embodiment, the warning time may be a time preset in advance for sending warning information according to actual conditions. Different warning rules correspond to different warning times, and the warning time is determined according to the warning rules.
[0056] The warning information is sent to the target terminal according to the warning time.
[0057] Among them, the target terminal can be understood as the terminal that receives the warning information sent by the RPA system, which may include but is not limited to smartphones, iPads, and laptops.
[0058] Specifically, the RPA system sends warning information to the target terminal according to the warning time. The test manager only needs to check the warning information sent by the RPA system on the target terminal every day. He can also conduct spot checks on the testing process at ordinary times and deal with it after the warning information arrives. It will not delay the processing of matters and will not cause lags in the management process, greatly reducing labor costs.
[0059] Optionally, the configuration item to be tested also includes: collection rule information.
[0060] The collection rule information can be understood as the rule information for the RPA system to collect target data from the target system, which is preset according to actual conditions.
[0061] Accordingly, target data is obtained from the target system according to the address information of the target system, including:
[0062] Obtain target data from the target system based on the address information and collection rule information of the target system.
[0063] Specifically, the RPA system retrieves target data from the target system based on the target system's address information and collection rules. The RPA system can retrieve target data from different target systems at a fixed or regular interval and store the target data. For example, if the RPA system needs to collect the reverse performance ratio of test cases for a quality metric, it can collect the total number of cases and reverse performance in the corresponding system.
[0064] Optionally, the configuration items to be tested include: address information of the target system corresponding to the first indicator, target association rules corresponding to the first indicator, target value corresponding to the first indicator, address information of the target system corresponding to at least one second indicator, target association rules corresponding to at least one second indicator, and target value corresponding to at least one second indicator, wherein the second indicator is an associated indicator of the first indicator.
[0065] It should be noted that the first indicator refers to the indicator that needs to be monitored when performing test process management, and the second indicator refers to the indicator related to the first indicator that needs to be monitored when performing test process management, that is, the related indicator of the first indicator.
[0066] For example, when monitoring indicator A1, if indicator A2 is found to be associated with indicator A1, that is, indicator A1 and indicator A2 are related items, then indicator A1 is the first indicator, indicator A2 is the second indicator, and second indicator A2 is the related indicator of first indicator A1. Specifically, the collection of related indicators is determined by the collection rule information.
[0067] Optionally, after determining the test result according to the first value and the target value, the method further includes:
[0068] The first value is labeled according to the first value and the target value.
[0069] Here, labeling refers to marking the first value according to a test result obtained after comparing the first value with a target value.
[0070] Specifically, the first value is compared with the target value, and if the item in the first value that is different from the target value meets the warning rule, the first value is marked.
[0071] Optionally, the configuration items to be tested also include: warning rules.
[0072] Accordingly, marking the first value according to the first value and the target value includes:
[0073] The first value is marked according to the first value, the warning rule and the target value.
[0074] Specifically, the RPA system annotates the first value based on the first value, the warning rule, and the target value. For example, when monitoring project cycle data, the target value is 100 days, and the set warning rule is to trigger an alert 10 days ahead of the project cycle. The calculated first value is 90 days. The first value is compared with the target value. During the comparison, the RPA system analyzes that the target value for this parameter is 100 days, while the calculated first value is 90 days. This meets the RPA system's set warning rule (i.e., an alert 10 days ahead of the project cycle). The RPA system then annotates the first value. Annotation can be performed based on different warning rules, such as frequency, duration of the due date, or ratio of the target value.
[0075] As an exemplary description of this embodiment, Figure 2 This is a flowchart of a testing method based on RPA technology, provided in Example 1 of the present invention. In this embodiment, the RPA system is divided into a monitoring configuration module, a data acquisition module, a data processing module, a real-time monitoring module, and an early warning module. The testing method based on RPA technology specifically includes the following steps:
[0076] S201. Configure the configuration items to be tested in the configuration module.
[0077] Specifically, configuration items to be tested are configured in the monitoring configuration module, wherein the configuration items to be tested include: target system address information, target association rules, target value, warning value, warning rules, and collection rule information. Part of the configuration items to be tested is shown in Table 1.
[0078] Table 1
[0079] Monitoring indicators Target data Target system Target association rules Target value Warning value A1 B1, C1 S1 A1=B1-C1 X X’ A2 B2, C2 S2 A2=(B2-C2) / B2 Y Y’
[0080] For example, if project lifecycle data needs to be monitored, since project lifecycle data includes both the overall project period and the project design period, the RPA system must enter these two data into the configuration module. Since the overall project period equals the project launch date minus the project demand arrival date, the RPA system must configure the project launch date and the project demand arrival date into the target association rules and solidify the target association rules into the module. Furthermore, the RPA system must list the target systems that can obtain these two parameters in the module, allowing RPA to record the data collection process for each configuration item to be tested. Furthermore, the RPA system must record target values and warning values in the configuration module. If two indicators are related, these must also be configured. For example, monitoring indicator A2 in Table 1 is a related indicator of monitoring indicator A1.
[0081] By configurable test items and the ability to set target association rules for acquiring target data, the test management process is more flexible. By uniformly setting the target data acquisition formula (i.e., target association rules), the accuracy of organizational-level data acquisition can be improved.
[0082] S202: Collect data in a data acquisition module.
[0083] Specifically, after the configuration module completes configuring the configuration items to be tested, the data acquisition module begins to obtain target data from the target system according to the address information of the target system.
[0084] RPA systems can retrieve target data from different target systems at regular intervals or at a certain frequency and store the data. For example, if an RPA system needs to collect the reverse ratio of test cases for a quality metric, the RPA system can obtain the total number of cases and reverse cases in the corresponding target system.
[0085] S203: Process the data in a data processing module.
[0086] Specifically, after the data collection module collects the data, the RPA system can perform formula calculations in the data processing module according to the target association rules in the configuration module, that is, the collected target data is calculated through the pre-set target association rules to obtain a first value, and the obtained first value is compared with the target value to obtain the test result.
[0087] S204. Mark the non-conforming items in the real-time monitoring template.
[0088] Specifically, in the real-time monitoring module, items that do not meet the requirements obtained after comparing the first value with the target value are marked.
[0089] The real-time monitoring module primarily performs annotation. For example, for the project cycle data item mentioned in S201, if the target value is 100 days and the pre-set alert rule is to trigger an alarm 10 days ahead of the project cycle, the calculated first value is 90 days. This first value is compared with the target value. During the comparison, the RPA system analyzes that the target value for this parameter is 100 days, while the calculated first value is 90 days. This meets the pre-set alert rule (i.e., trigger an alarm 10 days ahead of the project cycle), and the RPA system then annotates the first value.
[0090] It can be marked according to different warning rules, such as frequency, length of expiration deadline or target value ratio.
[0091] S205. Issue an early warning for non-conformance items in the early warning module.
[0092] Specifically, in the early warning module, the test manager is warned according to the set early warning value, early warning rules and early warning time.
[0093] After the real-time monitoring template marks non-conformities, the early warning module in the RPA system can issue an alert to the test manager. Based on the alert rules configured in the configuration module, the alert method can use either the frequency method or the target difference method. Different communication methods are used depending on the alert method, including email, text messages, and voice. Alert information is determined based on the alert value and test results, and the alert time is determined based on the alert rules. The alert information is then sent to the target terminal at the time of the alert. The test manager only needs to check the email or text message sent by the early warning module on the target terminal each day. They can also conduct spot checks on the process and take action after the alert information arrives. This does not delay the handling of the matter, does not cause lags in the management process, and significantly reduces labor costs.
[0094] The embodiment of the present invention solidifies the operational processes such as configuring configuration items to be tested, data collection, data processing, real-time monitoring, and early warning reminders into the RPA system, allowing the RPA system to complete the necessary work through preset instructions. It can realize functions such as automated configuration, automated data collection, automated monitoring, and automatic alarms, thereby solving the duplication of work and the lack of comprehensive monitoring in the management process.
[0095] Example 2
[0096] Figure 3 This is a structural diagram of a test device provided by the second embodiment of the present invention. The device is suitable for software testing. The device can be implemented by hardware / software and can be configured in a server to implement a test method in the embodiment of the present invention. Figure 3 As shown, the device specifically includes: a first acquisition module 301, a second acquisition module 302, a first determination module 303 and a second determination module 304.
[0097] The first acquisition module 301 is configured to acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value;
[0098] A second acquisition module 302 is configured to acquire target data from the target system according to the address information of the target system;
[0099] A first determination module 303 is configured to determine a first value according to the target data and the target association rule;
[0100] The second determining module 304 is configured to determine a test result according to the first value and the target value.
[0101] This embodiment of the present invention obtains target data from a target system based on the target system's address information by acquiring a configuration item to be tested; determines a first value based on the target data and a target association rule; and determines a test result based on the first value and the target value. This solution solves the problems of test managers' duplication of effort and lack of comprehensive monitoring during the management process, increases the flexibility of the test management process, saves human resources, and improves the quality of final software delivery.
[0102] Furthermore, the configuration item to be tested further includes: a warning value;
[0103] Accordingly, the testing device further includes:
[0104] The third determining module is configured to determine warning information according to the warning value and the test result after the second determining module 304 determines the test result according to the first numerical value and the target value.
[0105] Furthermore, the configuration items to be tested also include: warning rules;
[0106] Accordingly, the testing device further includes:
[0107] a fourth determining module, configured to determine a warning time according to a warning rule after the third determining module determines the warning information according to the warning value and the test result;
[0108] The sending module is configured to send the warning information to a target terminal according to the warning time after the third determining module determines the warning information according to the warning value and the test result.
[0109] Furthermore, the configuration item to be tested also includes: collection rule information;
[0110] Accordingly, the second acquisition module 302 includes:
[0111] An acquiring unit is configured to acquire target data from the target system according to the address information of the target system and the acquisition rule information.
[0112] Furthermore, the configuration item to be tested includes: address information of the target system corresponding to the first indicator, target association rules corresponding to the first indicator, target value corresponding to the first indicator, address information of the target system corresponding to at least one second indicator, target association rules corresponding to at least one second indicator, and target value corresponding to at least one second indicator, wherein the second indicator is an associated indicator of the first indicator.
[0113] Furthermore, the testing device further comprises:
[0114] The marking module is configured to mark the first value according to the first value and the target value after the second determining module 304 determines the test result according to the first value and the target value.
[0115] Furthermore, the configuration items to be tested also include: warning rules;
[0116] Accordingly, the marking module includes:
[0117] A labeling unit is used to label the first value according to the first value, the warning rule and the target value.
[0118] The above-mentioned testing device can execute the testing method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the testing method.
[0119] Example 3
[0120] Figure 4This is a schematic diagram of the structure of an electronic device provided by the third embodiment of the present invention. Figure 4 As shown, the electronic device includes a processor 401, a memory 402, an input device 403 and an output device 404; the number of processors 401 in the electronic device can be one or more. Figure 4 In the figure, a processor 401 is used as an example; the processor 401, memory 402, input device 403 and output device 404 in the electronic device can be connected by a bus or other means. Figure 4 The bus connection is taken as an example.
[0121] The memory 402, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the test method in the embodiments of the present invention (for example, the first acquisition module 301, the second acquisition module 302, the first determination module 303, and the second determination module 304 in the test device). The processor 401 executes the software programs, instructions, and modules stored in the memory 402 to execute various functional applications and data processing of the electronic device, thereby implementing the test method provided by the above-mentioned embodiments of the present invention:
[0122] Acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value;
[0123] Acquire target data from the target system according to the address information of the target system;
[0124] determining a first value according to the target data and the target association rule;
[0125] A test result is determined according to the first value and the target value.
[0126] The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created based on the use of the terminal, etc. In addition, the memory 402 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 402 may further include a memory remotely located relative to the processor 401, and these remote memories may be connected to the device / terminal / server via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0127] The input device 403 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 404 may include a display device such as a display screen.
[0128] Example 4
[0129] A fourth embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the testing method provided in the embodiment of the present invention is implemented. The method includes:
[0130] Acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value;
[0131] Acquire target data from the target system according to the address information of the target system;
[0132] determining a first value according to the target data and the target association rule;
[0133] A test result is determined according to the first value and the target value.
[0134] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0135] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0136] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0137] The computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0138] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A testing method, characterized in that: include: Acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value; Acquire target data from the target system according to the address information of the target system; determining a first value according to the target data and the target association rule; determining a test result according to the first numerical value and the target value; The target data refers to the monitoring parameter items stored in the target system; the target association rule refers to the association rule between the monitoring parameter items; and the first value refers to the result calculated based on the target data and the target association rule. Among them, the configuration items to be tested include: address information of the target system corresponding to the first indicator, target association rules corresponding to the first indicator, target value corresponding to the first indicator, address information of the target system corresponding to at least one second indicator, target association rules corresponding to at least one second indicator, and target value corresponding to at least one second indicator, wherein the second indicator is an associated indicator of the first indicator; the collection of the associated indicators is determined by the collection rule information.
2. The method according to claim 1, characterized in that The configuration items to be tested also include: warning values; Accordingly, after determining the test result according to the first value and the target value, the method further includes: The warning information is determined according to the warning value and the test result.
3. The method according to claim 2, characterized in that The configuration items to be tested also include: warning rules; Accordingly, after determining the warning information according to the warning value and the test result, the method further includes: Determine the warning time according to the warning rules; The warning information is sent to the target terminal according to the warning time.
4. The method according to claim 3, characterized in that The configuration item to be tested also includes: collection rule information; Accordingly, acquiring target data from the target system according to the address information of the target system includes: Target data is acquired from the target system according to the address information of the target system and the acquisition rule information.
5. The method according to claim 1, wherein After determining the test result according to the first value and the target value, the method further includes: The first value is labeled according to the first value and the target value.
6. The method according to claim 5, characterized in that The configuration items to be tested also include: warning rules; Correspondingly, marking the first value according to the first value and the target value includes: The first value is marked according to the first value, the warning rule and the target value.
7. A testing device, characterized in that: include: A first acquisition module is configured to acquire at least one configuration item to be tested, wherein the configuration item to be tested includes: address information of a target system, a target association rule, and a target value; A second acquisition module, configured to acquire target data from the target system according to the address information of the target system; A first determining module, configured to determine a first value according to the target data and the target association rule; a second determining module, configured to determine a test result according to the first numerical value and the target value; The target data refers to the monitoring parameter items stored in the target system; the target association rule refers to the association rule between the monitoring parameter items; and the first value refers to the result calculated based on the target data and the target association rule. Among them, the configuration items to be tested include: address information of the target system corresponding to the first indicator, target association rules corresponding to the first indicator, target value corresponding to the first indicator, address information of the target system corresponding to at least one second indicator, target association rules corresponding to at least one second indicator, and target value corresponding to at least one second indicator, wherein the second indicator is an associated indicator of the first indicator; the collection of the associated indicators is determined by the collection rule information.
8. An electronic device, characterized in that: include: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the processors are enabled to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium containing a computer program, wherein the computer program is stored thereon, characterized in that: When the program is executed by one or more processors, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and device for data processing
CN104360879A
Front-end testing method, apparatus, computer device and storage medium
CN109144865A
Off-line data testing method, off-line data testing device and electronic equipment
CN113391962A