An application test document generation method, device, program product, and medium
By obtaining test document templates and collecting the values of the items to be configured, and combining them with user identification information to generate application test documents, the problems of low efficiency and low standardization of manual writing are solved, and efficient and standardized test document generation is achieved.
Patent Information
- Application Number
- CN202511237961.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-01
- Publication Date
- 2026-11-06
AI Technical Summary
In existing technologies, manually writing performance test documentation is inefficient and lacks standardization, resulting in significant differences in documentation written by different testers, which is detrimental to communication between developers and acceptance personnel.
By obtaining a test document template, collecting the values of the items to be configured and filling them into the template, and combining the identification information of the test users, application test documents are generated. Data of different items to be configured is automatically processed to generate standardized documents.
It improved the accuracy and standardization of application test documentation generation, and enhanced communication efficiency.
Smart Images

Figure CN123048377A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of data processing technology and software testing, and can be used in the financial technology field. In particular, it relates to an application test document generation method, apparatus, program product, and medium. Background Technology
[0002] Performance testing is a crucial means of ensuring software quality and an indispensable part of the software lifecycle. It's a commonly used testing method that uses performance test data to determine if performance issues exist in the application software.
[0003] Currently, performance test documentation is written manually.
[0004] However, manually writing performance test documentation is inefficient and lacks standardization. Different testers produce vastly different performance test documentation, which hinders communication between developers and acceptance personnel. Summary of the Invention
[0005] This invention provides an application test document generation method, apparatus, program product, and medium to improve the accuracy of application test document generation.
[0006] In a first aspect, embodiments of the present invention provide an application test document generation method, the method comprising:
[0007] Obtain the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and the corresponding slots to be filled for each item.
[0008] For each configurable item, the application to be tested collects the corresponding values for each configurable item.
[0009] Fill the corresponding slots in the test document template with the collected values of each item to be configured, and determine the first document data.
[0010] The second document data is determined based on the user identifier information of the test user corresponding to the application to be tested.
[0011] The data from the first document and the data from the second document are merged to generate an application test document.
[0012] Secondly, embodiments of the present invention also provide an application test document generation apparatus, the apparatus comprising:
[0013] The template acquisition module is used to obtain the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and the corresponding slots to be filled for each item.
[0014] The data acquisition module is used to collect the corresponding values of each configuration item from the application under test.
[0015] The data filling module is used to fill the collected values corresponding to each configuration item into the corresponding slots in the test document template to determine the first document data.
[0016] The identifier determination module is used to determine the second document data based on the user identifier information of the test user corresponding to the application to be tested;
[0017] The data fusion module is used to merge the data from the first document with the data from the second document to generate an application test document.
[0018] Thirdly, embodiments of the present invention also provide an application test document generation device, the application test document generation device comprising:
[0019] At least one processor; and
[0020] A memory that is communicatively connected to at least one processor; wherein,
[0021] The memory stores a computer program that can be executed by at least one processor, such that the at least one processor is able to execute the application test document generation method of any embodiment of the present invention.
[0022] Fourthly, embodiments of the present invention also provide a computer program product, which includes a computer program that, when executed by a processor, implements the application test document generation method of any embodiment of the present invention.
[0023] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement the application test document generation method of any embodiment of the present invention.
[0024] The technical solution of this invention involves obtaining a test document template corresponding to the application under test. The test document template includes at least one configurable item and corresponding slots to be filled for each configurable item. For each configurable item, the application under test collects the corresponding collection value according to the configurable item. The collection values corresponding to each configurable item are then filled into the corresponding slots in the test document template to determine the first document data. Based on the user identifier information of the test user corresponding to the application under test, the second document data is determined. The first document data and the second document data are then merged to generate an application test document. Different operations are performed for different configurable items, which refines the steps for obtaining the collection values corresponding to the configurable items and automates the acquisition of standardized application test documents, thereby improving the accuracy of application test document generation.
[0025] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is a flowchart of an application test document generation method provided in Embodiment 1 of the present invention;
[0028] Figure 2 This is a flowchart of an application test document generation method provided in Embodiment 2 of the present invention;
[0029] Figure 3 This is a structural diagram of an application test document generation device provided according to an embodiment of the present invention;
[0030] Figure 4 This is a schematic diagram of the structure of an application test document generation device provided in an embodiment of the present invention. Detailed Implementation
[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0033] The acquisition, storage, and application of test document templates and other related technologies in the technical solutions of this invention comply with relevant laws and regulations and do not violate public order and good morals.
[0034] Example 1
[0035] Figure 1 This is a flowchart illustrating an application test document generation method according to Embodiment 1 of the present invention. This embodiment of the present invention is applicable to the generation of application test documents. The method can be executed by an application test document generation device, which can be implemented in hardware and / or software.
[0036] See Figure 1 The application test document generation method shown includes:
[0037] S101. Obtain the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and the corresponding slots to be filled for each item to be configured.
[0038] The application to be tested can be the application for which performance testing is to be performed. The test document template can be a standardized document template pre-designed to standardize the testing workflow and unify the test document format and content framework. The configuration items can be attribute values to be tested by the application to be tested. The slots to be filled can be the location areas in the test document template corresponding to the attribute values of the configuration items to be filled.
[0039] Specifically, the test document template is a standardized framework pre-designed to standardize the format and content of test documents. Essentially, it's a combination of a fixed structure and fillable slots. The fixed structure represents the configurable items, and the fillable slots are the spaces to be filled. This avoids testers writing documentation from scratch, ensuring a consistent test document structure across different people or projects and that no key information is omitted. For example, the test document template includes test steps, expected results, and maintenance measures. The test document template for the application under test can be obtained through methods including, but not limited to, sequential search algorithms, binary search algorithms, tree search algorithms, or hash search algorithms. This embodiment of the invention does not impose any limitations on these methods. The test document template includes at least one configurable item and corresponding fillable slots for each configurable item. For example, the configurable item can be a test metric such as response time, concurrent users, memory usage, mean time between failures, or request success rate.
[0040] S102. For each configuration item, collect the corresponding collection value of the configuration item for the application to be tested.
[0041] The collected values can be data obtained from the configuration items of the application under test.
[0042] Specifically, the test document templates differ for different testing phases, functions, and business scenarios. This means the types, quantities, and distribution of configurable items vary across these phases, functions, and scenarios. The methods for obtaining attribute values also differ for different configurable items. For example, memory usage can be obtained through operating system tools; interface response time can be obtained through test scripts; and application error rate can be obtained by scanning logs. Performance test data for different configurable items is processed to obtain the corresponding collected values.
[0043] S103. Fill the corresponding collection values of each item to be configured into the corresponding slots in the test document template to determine the first document data.
[0044] Specifically, different configurable items correspond to different slots to be filled. For each configurable item, the collected value corresponding to the configurable item is filled into the corresponding slot to determine the first document data. Different slots to be filled are located in different areas of the test document template, and different slots to be filled correspond to different area sizes.
[0045] S104. Determine the second document data based on the user identifier information of the test user corresponding to the application to be tested.
[0046] Among these, the test user can be the user who generates the application test documentation for the application to be tested. The user identification information can be descriptive information that uniquely identifies the test user.
[0047] Specifically, different time periods or testing phases correspond to different test users. Each test user corresponds one-to-one with user identification information. User identification information may include the test user's department, test confidentiality level, business function information, test environment information, or user contact information, etc. Based on the obtained user identification information of the test users corresponding to the application under test, the second document data is determined.
[0048] S105. Merge the first document data with the second document data to generate an application test document.
[0049] Among them, the application test document can be a file that records the performance data of the application to be tested.
[0050] Specifically, application test documentation refers to electronic files created during the testing process of the application under test to standardize the testing process, record testing information, and ensure testing quality. It spans the entire lifecycle of the testing work (from test preparation to test execution and test closure). The first document data describes the performance-related data obtained after performance testing of the application under test. The second document data describes the user identification information of the test users who control the performance testing process of the application under test. The application test documentation is obtained by merging the first and second document data and storing them in the same file.
[0051] The technical solution of this invention involves obtaining a test document template corresponding to the application under test. The test document template includes at least one configurable item and corresponding slots to be filled for each configurable item. For each configurable item, the application under test collects the corresponding collection value according to the configurable item. The collection values corresponding to each configurable item are then filled into the corresponding slots in the test document template to determine the first document data. Based on the user identifier information of the test user corresponding to the application under test, the second document data is determined. The first document data and the second document data are then merged to generate an application test document. Different operations are performed for different configurable items, which refines the steps for obtaining the collection values corresponding to the configurable items and automates the acquisition of standardized application test documents, thereby improving the accuracy of application test document generation.
[0052] Example 2
[0053] Figure 2 This is a flowchart illustrating an application test document generation method according to Embodiment 2 of the present invention. Based on the above embodiments, this embodiment optimizes and improves the application test document generation operation.
[0054] Furthermore, the process of "collecting the corresponding collection value of the configuration item according to the configuration item to be configured in the application under test" is refined into "identifying the configuration type corresponding to the configuration item to be configured in the application under test; collecting the corresponding collection value of the configuration item to be configured in the application under test according to the data processing rules corresponding to the configuration type of the configuration item", in order to improve the operation of generating application test documents.
[0055] It should be noted that for parts not described in detail in the embodiments of the present invention, please refer to the descriptions in other embodiments.
[0056] See Figure 2 The application test document generation method shown includes:
[0057] S201. Obtain the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and the corresponding slots to be filled for each item to be configured.
[0058] S202. Identify the configuration type corresponding to the configuration item to be configured for the application under test.
[0059] The configuration type can be the type of operation to be performed on the attribute value corresponding to the configuration item.
[0060] Specifically, the correspondence between configurable items and configuration types can be preset to determine the mapping data. A neural network model is trained based on the mapping data until a preset training termination condition is met, resulting in a trained neural network model. The trained neural network model then identifies the configurable items for the application under test, determining the corresponding configuration type for each configurable item. Different configurable items can correspond to the same or different configuration types.
[0061] S203. Collect the corresponding values of the configuration items of the application to be tested according to the data processing rules corresponding to the configuration type of the configuration items.
[0062] Among them, the data processing rules can be descriptive information about how to process the attribute values corresponding to the configuration items.
[0063] Specifically, different configuration types correspond to different data processing rules. Based on the configurable item, the attribute values corresponding to the configurable item of the application under test are collected. The data processing rules corresponding to the configurable item are then obtained. The attribute values of the application under test are processed according to the data processing rules corresponding to the configuration type of the configurable item to obtain the collected values corresponding to the configurable item.
[0064] S204. Fill the corresponding collection values of each item to be configured into the corresponding slots in the test document template to determine the first document data.
[0065] S205. Determine the second document data based on the user identifier information of the test user corresponding to the application to be tested.
[0066] S206. Merge the first document data with the second document data to generate an application test document.
[0067] This invention identifies the configuration type corresponding to the configuration item to be configured in the application under test; collects the corresponding value of the configuration item according to the data processing rules corresponding to the configuration type of the configuration item; performs different data processing operations for different configuration types, refines the data processing steps, and improves the accuracy of application test document generation.
[0068] Optionally, when the configuration type is topology detection, the collected values corresponding to the configuration items of the application to be tested are collected according to the data processing rules corresponding to the configuration type of the configuration item to be configured. This includes: querying the parameter item sequence corresponding to the configuration item in the acquired preset map data, wherein the parameter item sequence includes at least one associated configuration item; for each associated configuration item, performing performance testing on the application to be tested based on the associated configuration item to obtain the associated value corresponding to the associated configuration item; and determining each associated configuration item and the associated value corresponding to each associated configuration item as the collected value corresponding to the configuration item.
[0069] Among them, the topology detection type can be the type of data processing performed on the topology data corresponding to the configuration item. The preset map data can be a preset dataset storing the connection relationships between various configuration items. The parameter item sequence can be a sequence storing parameter items that have connection relationships with the configuration item. The associated configuration item can be the parameter items stored in the parameter item sequence. The associated value can be data obtained by performing performance tests on the application under test according to the associated configuration items.
[0070] Specifically, in real-world business scenarios, user requests can traverse the entire chain from "terminal → network → service → data." Good performance in a single component does not equate to good overall performance. Performance issues often lie hidden within the "chain links," rather than in individual components. Topology testing can trace the request flow path and pinpoint specific bottlenecks. Without topology testing, isolating and testing only a single component (such as load testing an application server) will lead to test results that are disconnected from real-world business operations. The purpose of topology testing is precisely to address this issue. Pre-defined graph data can be determined based on the parameters and execution order of at least one complete chain corresponding to the actual business function. The parameter sequence corresponding to the item to be configured is retrieved from the obtained pre-defined graph data. This sequence includes at least one associated configuration item, and each associated configuration item has a direct or indirect relationship with the item to be configured. For each associated configuration item, performance testing is performed on the application under test to obtain the associated values. Each associated configuration item and its associated values are then identified as the collected values for the item to be configured. The performance test results of this chain can be analyzed based on the collected values, using methods such as network modeling. The performance test results can also be stored in the application test documentation.
[0071] By querying the preset map data, the parameter item sequence corresponding to the item to be configured is obtained. The parameter item sequence includes at least one associated configuration item. For each associated configuration item, the performance test of the application to be tested is performed according to the associated configuration item to obtain the associated value corresponding to the associated configuration item. Each associated configuration item and the associated value corresponding to each associated configuration item are determined as the collection value corresponding to the item to be configured. The full-link performance test data corresponding to the item to be configured can be obtained, avoiding mis-locating faults.
[0072] Optionally, when the configuration type is the rated detection type, the data processing rules corresponding to the configuration type of the item to be configured are used to collect the corresponding value of the item to be configured in the application to be tested. This includes: finding the rated data source corresponding to the item to be configured; obtaining the data collected from the rated data source, which includes log data and configuration data; identifying the log data based on the obtained attack identifier to obtain the identifier identification result; and finding the corresponding value of the item to be configured in the data collected based on the identifier identification result.
[0073] The rated detection type can be a type where the data range of the attribute values corresponding to the configurable item remains unchanged under safe operating conditions. The rated data source can be the storage space that stores the data corresponding to the configurable item of the rated detection type. Log data can be a collection of data that automatically records key operations, status changes, event information, or error details during the operation of a system, device, software, or process. Configuration data can be the preset attribute values of the configurable item of the application under test.
[0074] Specifically, the "baseline parameter range" explicitly defined by the developer or user during the design, manufacturing, or application of a software application to ensure its safe, stable, and efficient operation can be stored as configuration data. Essentially, it is the product's "safe operation manual." Users must operate the product within the specified data range; otherwise, performance failure, equipment damage, or even safety risks (such as overheating, short circuits, and explosions) may occur. During the daily execution of the software application, the real-time attribute values corresponding to the configurable item are stored in the log data corresponding to the specified data source. The process involves finding the specified data source corresponding to the configurable item; acquiring the collected data corresponding to the specified data source, which includes log data and configuration data; identifying the log data based on the acquired attack identifier; and obtaining the identifier identification result. If the identifier identification result indicates an attack, it means the application under test has been attacked, indicating that its corresponding log data is inaccurate. In this case, the attribute value corresponding to the configurable item is directly queried from the configuration data and used as the collected value for the configurable item. If the identifier identification result indicates no attack, it means the application under test has not been attacked, indicating that its corresponding log data is accurate. In this case, the attribute value corresponding to the configurable item is directly queried from the log data.
[0075] By finding the corresponding rated data source for the item to be configured; obtaining the collected data corresponding to the rated data source, including log data and configuration data; identifying the log data based on the obtained attack identifier to obtain the identifier identification result; and finding the collected value corresponding to the item to be configured in the collected data based on the identifier identification result, the accurate attribute value corresponding to the item to be configured can be obtained, thus improving the accuracy of application test document generation.
[0076] Optionally, when the configuration type is image detection, the data processing rules corresponding to the configuration type of the application to be tested are used to collect the corresponding collection values of the configuration items. This includes: obtaining at least one monitoring data point corresponding to a preset time period of the configuration item, where the monitoring data includes the collection time and the monitoring value corresponding to the collection time; obtaining a preset data range; normalizing each monitoring data point according to the preset data range to determine the updated monitoring data; determining the pixel position for each monitoring data point based on the collection time; determining the image pixel value based on the monitoring value; and generating image data based on each pixel position and the corresponding image pixel value, which is then determined as the collection value corresponding to the configuration item.
[0077] Among them, the image detection type can be the type of performance data corresponding to the configuration item that needs to be represented in an image format.
[0078] Specifically, the performance test data corresponding to the configurable item can be represented in image format so that testers can intuitively observe the performance test results of the application under test. At least one monitoring data point corresponding to a preset time period for the configurable item is obtained. The monitoring data can be data obtained from performance testing of the application under test according to the configurable item, and includes: the collection time and the monitoring value corresponding to the collection time; a preset data range is obtained, which can be [0, 255] or (0 or 1); based on the preset data range, each monitoring data point is normalized to determine the updated monitoring data; for each monitoring data point, according to the preset mapping relationship between collection time and pixel position, the pixel position is determined based on the collection time in the monitoring data; the image pixel value is determined based on the monitoring value in the monitoring data; image data is generated based on each pixel position and the corresponding image pixel value, and determined as the collection value corresponding to the configurable item.
[0079] By acquiring at least one monitoring data point corresponding to a preset time period for the item to be configured, including the acquisition time and the corresponding monitoring value; acquiring a preset data range; normalizing each monitoring data point according to the preset data range to determine the updated monitoring data; determining the pixel position for each monitoring data point based on the acquisition time; determining the image pixel value based on the monitoring value; and generating image data based on each pixel position and the corresponding image pixel value, which is then used as the acquisition value for the item to be configured. This allows the data corresponding to the item to be configured to be represented in an image format, making the performance data of the item to be configured more intuitive.
[0080] Optionally, the second document data is determined based on the user identification information of the test user corresponding to the application under test, including: obtaining the user identification information of the test user corresponding to the application under test; generating an encryption key based on the user identification information; querying a preset key library based on the encryption key to obtain the digital signature corresponding to the encryption key; and determining the second document data based on the digital signature and the user identification information.
[0081] The user identification information can be a unique descriptive information identifying the test user. The encryption key can be a string obtained by encrypting the user identification information. The preset key store can be a database that stores the mapping relationship between preset encryption keys and digital signatures.
[0082] Specifically, the process involves obtaining the user identification information of the test users corresponding to the application under test; generating an encryption key based on the user identification information using a symmetric or asymmetric encryption algorithm; querying a preset key library to obtain the digital signature corresponding to the encryption key; and determining the second document data based on the digital signature and user identification information, which can then be displayed in the application test document. This approach can enhance the collaboration between manual and automated troubleshooting, improving the accuracy of application test document generation.
[0083] By obtaining the user identification information of the test user corresponding to the application under test; generating an encryption key based on the user identification information; querying the encryption key in the preset key library to obtain the digital signature corresponding to the encryption key; and determining the second document data based on the digital signature and user identification information, it is possible to facilitate test collaboration and clarify responsibilities, ensure the validity and reliability of performance test results, and provide support for the system to meet performance standards.
[0084] Optionally, the test document templates include a test process template and a test conclusion template.
[0085] The test process template can be a preset template of storage performance test data. The test conclusion template can be a preset template of storage performance test conclusions.
[0086] Specifically, in software testing, test document templates serve as a "general framework" for standardizing testing processes and unifying document output formats. The test process template and test conclusion template are core components, focusing respectively on "how tests are executed" and "how test results are summarized." Performance tests are performed on each configurable item in the test process template to obtain performance test data, which is then used to fill the corresponding slots in the test process template. For each configurable item in the test conclusion template, the performance test data corresponding to each associated item can be determined. This performance test data is then processed according to a preset conclusion analysis method to obtain the attribute values corresponding to the configurable items in the test conclusion template.
[0087] The test documentation templates include test process templates and test conclusion templates. The test process template focuses on process traceability, solving the problem of how to record test operations, with the core benefit of efficient collaboration. The test conclusion template focuses on results-oriented decision-making, solving the problem of how to summarize test results, with the core benefit of supporting deployment judgment and facilitating review. The combination of the two essentially transforms the testing work from fragmented operations into a quantifiable process through a standardized framework, ultimately ensuring software quality.
[0088] Example 3
[0089] Figure 3This is a schematic diagram of an application test document generation device provided in Embodiment 3 of the present invention. This embodiment of the present invention is applicable to the generation of application test documents. The device can execute an application test document generation method and can be implemented in hardware and / or software.
[0090] See Figure 3 The application test document generation device shown includes: a template acquisition module 301, a data acquisition module 302, a data filling module 303, an identifier determination module 304, and a data fusion module 305, wherein...
[0091] Template acquisition module 301 is used to acquire the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and the corresponding slots to be filled for each item to be configured.
[0092] Data acquisition module 302 is used to collect the corresponding acquisition value of each configuration item from the application under test according to the configuration item.
[0093] The data filling module 303 is used to fill the collected values corresponding to each configuration item into the corresponding slots in the test document template to determine the first document data.
[0094] The identifier determination module 304 is used to determine the second document data based on the user identifier information of the test user corresponding to the application to be tested;
[0095] The data fusion module 305 is used to fuse the first document data with the second document data to generate an application test document.
[0096] The technical solution of this invention involves obtaining a test document template corresponding to the application under test. The test document template includes at least one configurable item and corresponding slots to be filled for each configurable item. For each configurable item, the application under test collects the corresponding collection value according to the configurable item. The collection values corresponding to each configurable item are then filled into the corresponding slots in the test document template to determine the first document data. Based on the user identifier information of the test user corresponding to the application under test, the second document data is determined. The first document data and the second document data are then merged to generate an application test document. Different operations are performed for different configurable items, which refines the steps for obtaining the collection values corresponding to the configurable items and automates the acquisition of standardized application test documents, thereby improving the accuracy of application test document generation.
[0097] Optionally, the data acquisition module 302 includes:
[0098] The type identification unit is used to identify the configuration type corresponding to the configuration item to be configured in the application under test.
[0099] The data processing unit is used to collect the corresponding values of the configuration items of the application under test according to the data processing rules corresponding to the configuration type of the configuration items.
[0100] Optional, data processing unit, specifically used for:
[0101] When the configuration type is topology detection type, the parameter item sequence corresponding to the item to be configured is obtained by querying the acquired preset map data. The parameter item sequence includes at least one associated configuration item.
[0102] For each associated configuration item, performance testing is performed on the application under test based on the associated configuration item to obtain the associated value corresponding to the associated configuration item.
[0103] Each associated configuration item and its associated value are determined as the collection value corresponding to the item to be configured.
[0104] Optional, data processing unit, specifically used for:
[0105] When the configuration type is rated detection type, find the rated data source corresponding to the item to be configured based on the item to be configured.
[0106] Obtain the collection data corresponding to the rated data source. The collection data includes: log data and configuration data.
[0107] The log data is identified based on the obtained attack identifiers to obtain the identifier identification results;
[0108] Based on the identification results, the corresponding collection value of the item to be configured can be found in the collected data.
[0109] Optional, data processing unit, specifically used for:
[0110] When the configuration type is image detection type, at least one monitoring data corresponding to the preset time period of the item to be configured is obtained. The monitoring data includes: the collection time and the monitoring value corresponding to the collection time.
[0111] Get the preset data range;
[0112] Based on the preset data range, each monitoring data is normalized to determine the updated monitoring data.
[0113] For each monitoring data point, the pixel location is determined based on the acquisition time within the monitoring data.
[0114] Determine the image pixel values based on the monitored values in the monitoring data;
[0115] Image data is generated based on each pixel position and the corresponding image pixel value, and then determined as the acquisition value corresponding to the item to be configured.
[0116] Optionally, the identifier determination module 304 is specifically used for:
[0117] Obtain the user identification information of the test user corresponding to the application to be tested;
[0118] Generate an encryption key based on user identification information;
[0119] The digital signature corresponding to the encryption key is obtained by querying the preset key library based on the encryption key.
[0120] The second document data is determined based on the digital signature and user identification information.
[0121] Optionally, the test document templates include a test process template and a test conclusion template.
[0122] The application test document generation device provided in the embodiments of the present invention can execute the application test document generation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the application test document generation method.
[0123] Example 4
[0124] Figure 4 A schematic diagram of the structure of an application test document generation device 400 that can be used to implement embodiments of the present invention is shown.
[0125] like Figure 4 As shown, the application test document generation device 400 includes at least one processor 401 and a memory, such as a read-only memory (ROM) 402 and a random access memory (RAM) 403, communicatively connected to the at least one processor 401. The memory stores computer programs executable by the at least one processor. The processor 401 can perform various appropriate actions and processes based on the computer program stored in the ROM 402 or loaded into the RAM 403 from storage unit 408. The RAM 403 may also store various programs and data required for the operation of the application test document generation device 400. The processor 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0126] Multiple components in the application test document generation device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, optical disk, etc.; and a communication unit 409, such as a network card, modem, wireless transceiver, etc. The communication unit 409 allows the application test document generation device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0127] Processor 401 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 401 performs the various methods and processes described above, such as applying test document generation methods.
[0128] In some embodiments, the application test documentation generation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the application test documentation generation device 400 via ROM 402 and / or communication unit 409. When the computer program is loaded into RAM 403 and executed by processor 401, one or more steps of the application test documentation generation method described above may be performed. Alternatively, in other embodiments, processor 401 may be configured to execute the application test documentation generation method by any other suitable means (e.g., by means of firmware).
[0129] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0130] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0131] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0132] To provide user interaction, the systems and techniques described herein can be implemented on an application test document generation device, which includes: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the application test document generation device. Other types of devices can also be used to provide user interaction; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including voice input, speech input, or tactile input).
[0133] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0134] A computing system can include clients and servers. Clients and servers are generally geographically separated and typically interact via communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system. It addresses the shortcomings of traditional physical hosts and VPS (Virtual Private Server) services, such as high management difficulty and weak business scalability.
[0135] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0136] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for generating application test documents, characterized in that, The method includes: Obtain the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and a corresponding slot to be filled for each item to be configured. For each of the configurable items, the application to be tested collects the corresponding collection value for each configurable item. Fill the corresponding slots in the test document template with the collected values corresponding to each of the configurable items to determine the first document data; The second document data is determined based on the user identifier information of the test user corresponding to the application to be tested; The first document data and the second document data are merged to generate an application test document.
2. The method according to claim 1, characterized in that, The step of collecting the collected values corresponding to the configuration items for the application under test according to the configuration items includes: The configuration type corresponding to the configuration item is identified for the configuration item to be configured in the application to be tested; The data processing rules corresponding to the configuration type of the configuration item are used to collect the corresponding values of the configuration item of the application to be tested.
3. The method according to claim 2, characterized in that, When the configuration type is a topology detection type, the step of collecting the collected values corresponding to the configuration items of the application under test according to the data processing rules corresponding to the configuration type of the configuration item includes: The parameter item sequence corresponding to the item to be configured is obtained by querying the acquired preset map data, and the parameter item sequence includes at least one associated configuration item; For each of the associated configuration items, a performance test is performed on the application under test based on the associated configuration items to obtain the associated values corresponding to the associated configuration items; Each of the associated configuration items and the associated value corresponding to each of the associated configuration items are determined as the collection value corresponding to the item to be configured.
4. The method according to claim 2, characterized in that, When the configuration type is a rated detection type, the step of collecting the collected values corresponding to the configuration items of the application under test according to the data processing rules corresponding to the configuration type of the configuration item includes: Find the corresponding rated data source based on the item to be configured; Obtain the collection data corresponding to the rated data source, the collection data including: log data and configuration data; The log data is identified based on the acquired attack identifiers to obtain the identifier identification results; Based on the identification result, the collection value corresponding to the item to be configured is found in the collected data.
5. The method according to claim 2, characterized in that, When the configuration type is image detection type, the step of collecting the collected values corresponding to the configuration items of the application to be tested according to the data processing rules corresponding to the configuration type of the configuration item includes: Obtain at least one monitoring data corresponding to a preset time period of the item to be configured, wherein the monitoring data includes: the collection time and the monitoring value corresponding to the collection time; Get the preset data range; Based on the preset data range, the monitoring data is normalized to determine the updated monitoring data. For each of the monitoring data, the pixel position is determined based on the acquisition time in the monitoring data; The image pixel values are determined based on the monitoring values in the monitoring data; Image data is generated based on each pixel position and the corresponding image pixel value, and determined as the acquisition value corresponding to the item to be configured.
6. The method according to claim 1, characterized in that, The step of determining the second document data based on the user identifier information of the test user corresponding to the application to be tested includes: Obtain the user identification information of the test user corresponding to the application to be tested; Generate an encryption key based on the user identification information; The digital signature corresponding to the encryption key is obtained by querying a preset key library based on the encryption key. The second document data is determined based on the digital signature and the user identification information.
7. The method according to claim 1, characterized in that, The test document template includes a test process template and a test conclusion template.
8. An application test document generation device, characterized in that, The device includes: The template acquisition module is used to acquire the test document template corresponding to the application to be tested. The test document template includes at least one item to be configured and slots to be filled for each item to be configured. The data acquisition module is used to collect the corresponding acquisition value of the configuration item for the application under test according to the configuration item for each of the configuration items; The data filling module is used to fill the corresponding slots in the test document template with the collected values corresponding to each of the configurable items, thereby determining the first document data. The identifier determination module is used to determine the second document data based on the user identifier information of the test user corresponding to the application to be tested; The data fusion module is used to fuse the first document data with the second document data to generate an application test document.
9. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the application test document generation method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the application test document generation method according to any one of claims 1-7.
