CN113391962B - Offline data testing method, offline data testing device and electronic equipment - Google Patents
Offline data testing method, offline data testing device and electronic equipment Download PDFInfo
- Publication number
- CN113391962B CN113391962B CN202010165443.1A CN202010165443A CN113391962B CN 113391962 B CN113391962 B CN 113391962B CN 202010165443 A CN202010165443 A CN 202010165443A CN 113391962 B CN113391962 B CN 113391962B
- Authority
- CN
- China
- Prior art keywords
- test
- node
- configuration information
- offline data
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The application discloses an offline data testing method, an offline data testing device and electronic equipment, and relates to the field of testing. The specific implementation scheme is as follows: acquiring a test request, wherein the test request comprises an identification of a target object; acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data; and executing test operation on the offline data according to the configuration information to obtain a test result. Based on the configuration information of the target object, the offline data is tested to obtain a test result, and the whole process does not need to be manually participated, so that the labor cost is reduced, and the test efficiency is improved.
Description
Technical Field
The present application relates to a testing technology in the field of computer technology, and in particular, to an offline data testing method, an offline data testing device, and an electronic device.
Background
With the application of various machine learning algorithms, the data returned by the server needs to be analyzed and trained offline to act on the client. Therefore, various data streams are required to be used for data transmission between the server and the client, and in the data transmission process, the correctness, stability and the like of the data are difficult to be ensured, so that the online quality of the server and the user experience of the client are affected.
The offline data test aims at monitoring the quality of the offline data output path of the server, and can complete the monitoring and testing of final offline data from any link in the offline data output path, so that the stability and the correctness of uploading the offline data to the client are ensured.
The existing offline data testing method mainly tests the offline data in a manual mode, and has the advantages of high manual participation and low testing efficiency.
Disclosure of Invention
The embodiment of the application provides an offline data testing method, an offline data testing device and electronic equipment, which are used for solving the problems of high manual participation and low testing efficiency of the existing offline data testing method.
In order to solve the technical problems, the application is realized as follows:
the first aspect of the present application provides an offline data testing method, including:
acquiring a test request, wherein the test request comprises an identification of a target object;
acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data;
and executing test operation on the offline data according to the configuration information to obtain a test result.
Further, the target object is a topological structure;
and executing test operation on the offline data according to the configuration information to obtain a test result, wherein the test result comprises the following steps:
determining the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes according to the configuration information;
and according to the topological sequence, testing operation is sequentially carried out on the offline data according to the node information of each testing node, and a testing result is obtained.
Further, the configuration information further includes a topology table for determining hierarchical information of the topology structure, a single-node table for determining an order of the respective test nodes, and a node configuration table for determining node information of the respective test nodes;
the step of determining the topological order among the test nodes of the topological structure and the node information of the test nodes according to the configuration information comprises the following steps:
determining the hierarchy information of the topological structure according to the topology table of the configuration information, wherein the hierarchy information comprises the layer number of the topological structure and the test node identification of each layer;
determining the topological sequence among the test nodes corresponding to the test node identifiers according to a single-node table in the configuration information;
and determining node information of the test node corresponding to each test node identifier according to a node configuration table in the configuration information.
Further, the target object is a test node, and the configuration information further comprises a test environment and a test type;
according to the configuration information, executing test operation on the offline data to obtain a test result, including:
detecting the offline data, the test environment and the test type according to configuration information;
and under the condition that the detection is passed, executing test operation on the offline data to obtain a test result.
A second aspect of the present application provides an offline data testing apparatus, comprising:
the first acquisition module is used for acquiring a test request, wherein the test request comprises the identification of the target object;
the second acquisition module is used for acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data;
and the third acquisition module is used for executing test operation on the offline data according to the configuration information to obtain a test result.
Further, the target object is a topological structure;
the third acquisition module includes:
the determining submodule is used for determining the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes according to the configuration information;
and the first acquisition sub-module is used for sequentially executing test operation on the offline data according to the node information of each test node according to the topological sequence to obtain a test result.
Further, the configuration information further includes a topology table for determining hierarchical information of the topology structure, a single-node table for determining an order of the respective test nodes, and a node configuration table for determining node information of the respective test nodes;
the determining submodule is used for:
determining the hierarchy information of the topological structure according to the topology table of the configuration information, wherein the hierarchy information comprises the layer number of the topological structure and the test node identification of each layer;
determining the topological sequence among the test nodes corresponding to the test node identifiers according to a single-node table in the configuration information;
and determining node information of the test node corresponding to each test node identifier according to a node configuration table in the configuration information.
Further, the target object is a test node, and the configuration information further comprises a test environment and a test type;
the third acquisition module includes:
the detection module is used for respectively detecting the offline data, the test environment and the test type according to the configuration information;
and the second acquisition sub-module is used for executing test operation on the offline data under the condition that the detection passes, so as to obtain a test result.
A third aspect of the present application provides an electronic apparatus, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect.
A fourth aspect of the application provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of the first aspect.
A fifth aspect of the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
One embodiment of the above application has the following advantages or benefits:
acquiring a test request, wherein the test request comprises an identification of a target object; acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data; and executing test operation on the offline data according to the configuration information to obtain a test result. Based on the configuration information of the target object, the offline data is tested to obtain a test result, and the whole process does not need to be manually participated, so that the labor cost is reduced, and the test efficiency is improved.
By setting configuration information for a single test node and executing test operation on offline data through the test node according to the configuration information, a tester only needs to set the configuration information of the test node before testing, manual participation is not needed in the subsequent whole test process, labor cost is reduced, and test efficiency is improved.
The target object is a topological structure, and when the offline data is subjected to test operation according to the configuration information to obtain a test result, the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes are determined according to the configuration information; and according to the topological sequence, testing operation is sequentially carried out on the offline data according to the node information of each testing node, and a testing result is obtained. The method realizes the execution of the off-line data output path based on the topological structure, can pre-set the problem finding link, adopts more test nodes to participate in monitoring, and ensures the stability and the correctness of off-line data output.
The topology sequence of each test node in the topology structure and the node information of each test node can be determined through the topology table, the single node table and the node configuration table in the configuration information. Therefore, when each test node in the topological structure is adopted to test the offline data, manual participation is not needed, the labor cost is reduced, and the test efficiency is improved.
Other effects of the above alternative will be described below in connection with specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a flow chart of an offline data testing method provided by an embodiment of the present application;
FIG. 2a is a single-node offline data testing framework provided by an embodiment of the present application;
FIG. 2b is a schematic diagram of a topology according to an embodiment of the present application;
FIG. 2c is a flow chart of another offline data testing method provided by the present application;
FIG. 3 is a block diagram of an offline data testing device according to an embodiment of the present application;
FIG. 4 is a block diagram of an electronic device for implementing an offline data testing method according to an embodiment of the present application.
Description of the embodiments
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Referring to fig. 1, fig. 1 is one of flowcharts of an offline data testing method provided by an embodiment of the present application, as shown in fig. 1, the embodiment provides an offline data testing method applied to an electronic device, including the following steps:
step 101, obtaining a test request, wherein the test request comprises an identification of a target object.
The test request may be triggered automatically by the electronic device or based on user input, without limitation. The test request includes an identification of the target object that is used to uniquely identify the target object, different target objects having different identifications. The target object may be a test node or a topology structure formed by the test node.
Step 102, obtaining configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data.
The identification of the target object has a mapping relation with the configuration information of the target object, and the configuration information of the target object can be obtained according to the identification of the target object.
The configuration information of the target object is preconfigured, and the configuration information can be written into the electronic equipment through a unified script or can be input into the electronic equipment through a mode of manual addition by a user. The configuration information includes at least a storage address of the offline data. And acquiring the offline data according to the storage address of the offline data. Offline data may be understood as data obtained from a server or other electronic device.
The configuration information may include, in addition to the storage address of the offline data, a data deployment address, that is, the storage address of the output data after the test operation is performed subsequently. The configuration information may also include a test module identifier, a product line identifier where the test module is located, a test environment, a test type, a storage form of data, a threshold value corresponding to the test type, expected benefits of online data, a test rule, and the like. The test module identifier refers to an identifier of a module for receiving offline data to perform test, and the product line identifier where the test module is located refers to an identifier of a product line where the test module is located. The test environment may be a container, physical machine, cluster, etc. test environment. The test type may be script test, vocabulary data test, xbox data, and so forth. The storage form of the data refers to the form in which the offline data or the output data is stored, for example, in a text format.
And 103, executing test operation on the offline data according to the configuration information to obtain a test result.
After the configuration information is obtained, a test operation can be performed on the offline data according to the setting in the configuration information, and a test result is obtained. For example, the configuration information is provided with a storage address of the offline data, a test module identifier and a storage address of the output data, so that the offline data can be obtained from the storage address of the offline data, the offline data is input into the test module corresponding to the test module identifier for testing, the obtained output data has the storage address of the output data, and further, the electronic equipment obtains a test result according to the output data of the test module. The test result can be a test report, which can be displayed on a display screen of the electronic equipment for reference of a tester.
In this embodiment, a test request is obtained, where the test request includes an identifier of a target object; acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data; and executing test operation on the offline data according to the configuration information to obtain a test result. Based on the configuration information of the target object, the offline data is tested to obtain a test result, and the whole process does not need to be manually participated, so that the labor cost is reduced, and the test efficiency is improved.
In one embodiment of the present application, the target object is a test node, and the configuration information further includes a test environment and a test type;
according to the configuration information, executing test operation on the offline data to obtain a test result, including:
detecting the offline data, the test environment and the test type according to configuration information;
and under the condition that the detection is passed, executing test operation on the offline data to obtain a test result.
In this embodiment, the offline data testing framework of a single node (i.e. a single testing node) as shown in fig. 2a, when testing according to the testing node, may include the following procedures:
detecting (check) input parameters (which can be understood as offline data) input to the test node, if preset parameters (such as base parameters) are missing, directly reporting errors and returning;
selecting test environments such as a container, a physical machine, a cluster and the like according to the test environments set by the configuration information, and performing environment dependent installation and environment preparation detection in the selected test environments;
the test type set according to the configuration information is selected, script test, vocabulary data test, xbox data and the like can be supported, and detection of required fields is carried out aiming at the selected test type, if parameters are missing, errors are directly reported and returned;
under the condition that the detection is passed, testing is carried out according to the testing nodes, the testing results are tidied and collected, the final testing state is recalled, and the testing report is uploaded, so that the testing report is conveniently displayed to the testers.
In the embodiment, by setting the configuration information for a single test node and executing the test operation on the offline data through the test node according to the configuration information, a tester only needs to set the configuration information of the test node before the test, no human participation is needed in the subsequent whole test process, the labor cost is reduced, and the test efficiency is improved.
In one embodiment of the present application, the target object is a topology;
and executing test operation on the offline data according to the configuration information to obtain a test result, wherein the test result comprises the following steps:
determining the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes according to the configuration information;
and according to the topological sequence, testing operation is sequentially carried out on the offline data according to the node information of each testing node, and a testing result is obtained.
In this embodiment, the target object is a topology structure, where the topology structure is formed by a plurality of test nodes, each test node has corresponding node information, and the node information may include one or more of an input data address, an output data address, a test environment, a test type, a test module identifier, a product line identifier where the test module is located, a test rule, a test environment, and a test type.
The configuration information includes information that determines a topological order among the test nodes of the topology, for example, the configuration information may include a sequencing of the plurality of test nodes. The configuration information also includes node information for each test node.
After the topological sequence of each test node and the node information of the test node are determined, the test operation is sequentially executed on the offline data according to the node information of each test node. For example, the offline data is obtained according to the storage address of the offline data in the configuration information, then the offline data is input into the first test node in the topology sequence according to the input, the execution is sequentially performed according to the node information of each test node, one or more output data are obtained, and finally the test result is obtained according to the one or more output data. The test result can be a test report, which can be displayed on a display screen of the electronic device for reference by a user.
When the topological structure is constructed, node information is firstly configured for the test nodes, the node information can comprise one or more of an input data address, an output data address, a test environment, a test type, a test module identifier, a product line identifier where the test module is located, a test environment and a test type, then a hierarchy is created, test nodes are selected for each hierarchy, the sequence of the hierarchy is adjusted, and finally the identifier of the topological structure is saved and generated. After the electronic equipment acquires the test request, the topological sequence of each test node of the topological structure and the node information of each test node can be determined according to the identification of the topological structure.
As shown in fig. 2c, the topology structure is layered according to the topology identifier, no sequence exists between the test nodes in the same layer, the nodes between adjacent layers have the sequence, when the offline task of the topology structure is executed, the test nodes in the first layer are processed first, each layer may include a plurality of test nodes, and the processing manner of each test node may include the following processes:
detecting (check) input parameters input to the test node, if a preset parameter (such as a base parameter) is missing, directly reporting errors and returning;
selecting test environments such as a container, a physical machine, a cluster and the like according to the test environments in the node information of the test node, and performing environment dependent installation and environment preparation detection in the selected test environments;
according to the test type in the node information of the test node, script test, word list data test, xbox data and the like can be supported, and aiming at the selected test type, detection of a required field is carried out, if parameters are missing, errors are directly reported and returned;
and testing according to the testing nodes, sorting and collecting the testing results, calling back the final testing state, uploading the testing report, and facilitating the display to the testers.
All the test nodes in the same level are processed, the test and output results are normal, and then the next level is processed. If abnormality occurs in the hierarchical processing, exiting and returning an abnormality test report; if the processing of each level is abnormal, integrating all the current output results, exiting and returning an integrated test report.
The test nodes in the topological structure can acquire the test condition of data from any test node to the final test node of the topological structure only by configuration once, so that the test efficiency is improved.
In this embodiment, the target object is a topology structure, and when a test operation is performed on the offline data according to the configuration information to obtain a test result, a topology sequence among all test nodes of the topology structure and node information of all test nodes are determined according to the configuration information; and according to the topological sequence, testing operation is sequentially carried out on the offline data according to the node information of each testing node, and a testing result is obtained. The method realizes the execution of the off-line data output path based on the topological structure, can pre-set the problem finding link, adopts more test nodes to participate in monitoring, and ensures the stability and the correctness of off-line data output.
In one embodiment of the present application, the configuration information further includes a topology table for determining hierarchical information of the topology structure, a single-node table for determining an order of the respective test nodes, and a node configuration table for determining node information of the respective test nodes;
the step of determining the topological order among the test nodes of the topological structure and the node information of the test nodes according to the configuration information comprises the following steps:
determining the hierarchy information of the topological structure according to the topology table of the configuration information, wherein the hierarchy information comprises the layer number of the topological structure and the test node identification of each layer;
determining the topological sequence among the test nodes corresponding to the test node identifiers according to a single-node table in the configuration information;
and determining node information of the test node corresponding to each test node identifier according to a node configuration table in the configuration information.
In this embodiment, the topology table includes a correspondence between the identifier of the topology structure and the hierarchical information of the topology structure, and according to the topology table of the configuration information, the hierarchical information of the topology structure may be determined, where the hierarchical information includes the number of layers of the topology structure and the identifier of the test node of each layer. For example, as shown in fig. 2b, the test node identifier corresponding to the first level is 1, the test node identifiers corresponding to the second level are 2, 3, and 4, and the test node identifiers corresponding to the third level are 5 and 6, respectively, where the original data may be offline data.
The single-node table comprises the identification of each test node, the identification of the previous test node of the test node and the identification of the next test node of the test node. According to the single-node table in the configuration information, the topological order among the test nodes of the topological structure can be determined.
The node configuration table comprises the identifiers of all the test nodes and the storage addresses of the test nodes corresponding to the identifiers of all the test nodes, and the node information of the test nodes can be obtained according to the storage addresses of the test nodes. The node information may include one or more of an input data address, an output data address, a test environment, a test type, a test module identification, a product line identification where the test module is located, a test environment, and a test type.
In this embodiment, the topology sequence of each test node in the topology structure and the node information of each test node can be determined through the topology table, the single node table and the node configuration table in the configuration information. Therefore, when each test node in the topological structure is adopted to test the offline data, manual participation is not needed, the labor cost is reduced, and the test efficiency is improved.
The offline data testing method in the application supports two topological structures of a single node (namely a single testing node) and a directed acyclic graph (Directed Acyclic Graph, DAG for short). The single-node offline test mainly solves the word list test of the last kilometer on line, supports various data types and test types, performs unified configuration aiming at different product lines, and performs differentiated treatment on the rear end; the DAG topology offline test realizes the full inclusion of the offline data path by storing the DAG topology information, completes the end-to-end test of the offline data path, and can pre-discover problems.
The application supports batch offline data test, templates configuration parameters, supports custom test types, test environments and the like, automatically tests and reports back, thereby saving time and labor input; the method supports the single-node and DAG topology to execute the offline data output path, the problem finding link is preposed, more offline nodes are incorporated for monitoring, the stability and the correctness of the offline path data output are guaranteed, the current test abnormal problem is automatically recorded and counted, and the method can be used for the presentation and analysis of the follow-up test overall data.
Referring to fig. 3, fig. 3 is a block diagram of an offline data testing device according to an embodiment of the present application, as shown in fig. 3, the embodiment provides an offline data testing device 300, including:
a first obtaining module 301, configured to obtain a test request, where the test request includes an identifier of a target object;
a second obtaining module 302, configured to obtain configuration information of the target object according to the identifier of the target object, where the configuration information includes a storage address of offline data;
and a third obtaining module 303, configured to perform a test operation on the offline data according to the configuration information, so as to obtain a test result.
Further, the target object is a topological structure;
the third obtaining module 303 includes:
the determining submodule is used for determining the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes according to the configuration information;
and the first acquisition sub-module is used for sequentially executing test operation on the offline data according to the node information of each test node according to the topological sequence to obtain a test result.
Further, the configuration information further includes a topology table for determining hierarchical information of the topology structure, a single-node table for determining an order of the respective test nodes, and a node configuration table for determining node information of the respective test nodes;
the determining submodule is used for:
determining the hierarchy information of the topological structure according to the topology table of the configuration information, wherein the hierarchy information comprises the layer number of the topological structure and the test node identification of each layer;
determining the topological sequence among the test nodes corresponding to the test node identifiers according to a single-node table in the configuration information;
and determining node information of the test node corresponding to each test node identifier according to a node configuration table in the configuration information.
Further, the target object is a test node, and the configuration information further comprises a test environment and a test type;
the third obtaining module 303 includes:
the detection module is used for respectively detecting the offline data, the test environment and the test type according to the configuration information;
and the second acquisition sub-module is used for executing test operation on the offline data under the condition that the detection passes, so as to obtain a test result.
The offline data testing apparatus 300 can implement each process implemented by the electronic device in the method embodiment shown in fig. 1, and in order to avoid repetition, a description thereof will be omitted.
The offline data testing device 300 of the embodiment of the application acquires a testing request, wherein the testing request comprises the identification of a target object; acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data; and executing test operation on the offline data according to the configuration information to obtain a test result. Based on the configuration information of the target object, the offline data is tested to obtain a test result, and the whole process does not need to be manually participated, so that the labor cost is reduced, and the test efficiency is improved.
According to embodiments of the present application, the present application also provides an electronic device, a computer program product, and a readable storage medium.
As shown in fig. 4, a block diagram of an electronic device of an offline data testing method according to an embodiment of the present application is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 4, the electronic device includes: one or more processors 401, memory 402, and interfaces for connecting the components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 401 is illustrated in fig. 4.
Memory 402 is a non-transitory computer readable storage medium provided by the present application. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the offline data testing method provided by the application. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the offline data testing method provided by the present application.
The memory 402 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first acquisition module 301, the second acquisition module 302, and the third acquisition module 303 shown in fig. 3) corresponding to the offline data testing method according to the embodiment of the present application. The processor 401 executes various functional applications of the server and data processing, i.e., implements the offline data testing method in the above-described method embodiments, by running non-transitory software programs, instructions, and modules stored in the memory 402.
Memory 402 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created according to the use of the electronic device implementing the offline data testing method, and the like. In addition, memory 402 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 402 may optionally include memory remotely located with respect to processor 401, which may be connected via a network to an electronic device implementing an offline data testing method. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device implementing the offline data testing method may further include: an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 may be connected by a bus or otherwise, for example in fig. 4.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device implementing the offline data testing method, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, etc. input devices. The output device 404 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme provided by the embodiment of the application, the following beneficial effects can be obtained:
acquiring a test request, wherein the test request comprises an identification of a target object; acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data; and executing test operation on the offline data according to the configuration information to obtain a test result. Based on the configuration information of the target object, the offline data is tested to obtain a test result, and the whole process does not need to be manually participated, so that the labor cost is reduced, and the test efficiency is improved.
By setting configuration information for a single test node and executing test operation on offline data through the test node according to the configuration information, a tester only needs to set the configuration information of the test node before testing, manual participation is not needed in the subsequent whole test process, labor cost is reduced, and test efficiency is improved.
The target object is a topological structure, and when the offline data is subjected to test operation according to the configuration information to obtain a test result, the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes are determined according to the configuration information; and according to the topological sequence, testing operation is sequentially carried out on the offline data according to the node information of each testing node, and a testing result is obtained. The method realizes the execution of the off-line data output path based on the topological structure, can pre-set the problem finding link, adopts more test nodes to participate in monitoring, and ensures the stability and the correctness of off-line data output.
The topology sequence of each test node in the topology structure and the node information of each test node can be determined through the topology table, the single node table and the node configuration table in the configuration information. Therefore, when each test node in the topological structure is adopted to test the offline data, manual participation is not needed, the labor cost is reduced, and the test efficiency is improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.
Claims (6)
1. An offline data testing method, comprising:
acquiring a test request, wherein the test request comprises an identification of a target object;
acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data;
according to the configuration information, performing test operation on the offline data to obtain a test result;
the target object is a topological structure;
and executing test operation on the offline data according to the configuration information to obtain a test result, wherein the test result comprises the following steps:
determining the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes according to the configuration information;
according to the topological sequence, testing operation is sequentially carried out on the offline data according to node information of each testing node, and a testing result is obtained;
the configuration information further includes a topology table for determining hierarchical information of the topology structure, a single-node table for determining an order of the respective test nodes, and a node configuration table for determining node information of the respective test nodes;
the step of determining the topological order among the test nodes of the topological structure and the node information of the test nodes according to the configuration information comprises the following steps:
determining the hierarchy information of the topological structure according to the topology table of the configuration information, wherein the hierarchy information comprises the layer number of the topological structure and the test node identification of each layer;
determining the topological sequence among the test nodes corresponding to each test node identifier according to the single node table in the configuration information;
and determining node information of the test node corresponding to each test node identifier according to a node configuration table in the configuration information.
2. The offline data testing method according to claim 1, wherein the target object is a test node, and the configuration information further includes a test environment and a test type;
according to the configuration information, executing test operation on the offline data to obtain a test result, including:
detecting the offline data, the test environment and the test type according to configuration information;
and under the condition that the detection is passed, executing test operation on the offline data to obtain a test result.
3. An offline data testing apparatus, comprising:
the first acquisition module is used for acquiring a test request, wherein the test request comprises the identification of the target object;
the second acquisition module is used for acquiring configuration information of the target object according to the identification of the target object, wherein the configuration information comprises a storage address of offline data;
the third acquisition module is used for executing test operation on the offline data according to the configuration information to obtain a test result;
the target object is a topological structure;
the third acquisition module includes:
the determining submodule is used for determining the topological sequence among all the test nodes of the topological structure and the node information of all the test nodes according to the configuration information;
the first acquisition sub-module is used for sequentially executing test operation on the offline data according to the node information of each test node according to the topological sequence to obtain a test result;
the configuration information further includes a topology table for determining hierarchical information of the topology structure, a single-node table for determining an order of the respective test nodes, and a node configuration table for determining node information of the respective test nodes;
the determining submodule is used for:
determining the hierarchy information of the topological structure according to the topology table of the configuration information, wherein the hierarchy information comprises the layer number of the topological structure and the test node identification of each layer;
determining the topological sequence among the test nodes corresponding to each test node identifier according to the single node table in the configuration information;
and determining node information of the test node corresponding to each test node identifier according to a node configuration table in the configuration information.
4. The offline data testing device according to claim 3, wherein the target object is a test node, and the configuration information further includes a test environment and a test type;
the third acquisition module includes:
the detection module is used for respectively detecting the offline data, the test environment and the test type according to the configuration information;
and the second acquisition sub-module is used for executing test operation on the offline data under the condition that the detection passes, so as to obtain a test result.
5. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of claim 1 or 2.
6. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of claim 1 or 2.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010165443.1A CN113391962B (en) | 2020-03-11 | 2020-03-11 | Offline data testing method, offline data testing device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010165443.1A CN113391962B (en) | 2020-03-11 | 2020-03-11 | Offline data testing method, offline data testing device and electronic equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN113391962A CN113391962A (en) | 2021-09-14 |
| CN113391962B true CN113391962B (en) | 2023-08-15 |
Family
ID=77615546
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010165443.1A Active CN113391962B (en) | 2020-03-11 | 2020-03-11 | Offline data testing method, offline data testing device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113391962B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114185790B (en) * | 2021-12-13 | 2025-09-26 | 中国农业银行股份有限公司 | A testing method, device, equipment and storage medium |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6625124B1 (en) * | 2000-03-03 | 2003-09-23 | Luminous Networks, Inc. | Automatic reconfiguration of short addresses for devices in a network due to change in network topology |
| CN101119239A (en) * | 2007-07-24 | 2008-02-06 | 中兴通讯股份有限公司 | Off-lining test execution constructing method and apparatus |
| CN101299685A (en) * | 2008-03-18 | 2008-11-05 | 华为技术有限公司 | Method and system for testing switching network as well as test initiation module |
| CN101615159A (en) * | 2009-07-31 | 2009-12-30 | 中兴通讯股份有限公司 | Off-line test system and local data management method thereof and corresponding device thereof |
| US10248522B1 (en) * | 2016-08-02 | 2019-04-02 | Rockwell Collins, Inc. | System and method for automatic feedback/monitoring of avionics robustness/cybersecurity testing |
| CN109871312A (en) * | 2017-12-05 | 2019-06-11 | 航天信息股份有限公司 | A kind of interface test method, device, equipment and readable storage medium storing program for executing |
| CN109977005A (en) * | 2019-02-13 | 2019-07-05 | 网易(杭州)网络有限公司 | End-to-end test method, medium, device and calculating equipment |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9185156B2 (en) * | 2012-11-13 | 2015-11-10 | Google Inc. | Network-independent programming model for online processing in distributed systems |
| EP3037906A1 (en) * | 2014-12-23 | 2016-06-29 | Televic Rail NV | Device and method for distributed diagnostics analysis |
-
2020
- 2020-03-11 CN CN202010165443.1A patent/CN113391962B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6625124B1 (en) * | 2000-03-03 | 2003-09-23 | Luminous Networks, Inc. | Automatic reconfiguration of short addresses for devices in a network due to change in network topology |
| CN101119239A (en) * | 2007-07-24 | 2008-02-06 | 中兴通讯股份有限公司 | Off-lining test execution constructing method and apparatus |
| CN101299685A (en) * | 2008-03-18 | 2008-11-05 | 华为技术有限公司 | Method and system for testing switching network as well as test initiation module |
| CN101615159A (en) * | 2009-07-31 | 2009-12-30 | 中兴通讯股份有限公司 | Off-line test system and local data management method thereof and corresponding device thereof |
| US10248522B1 (en) * | 2016-08-02 | 2019-04-02 | Rockwell Collins, Inc. | System and method for automatic feedback/monitoring of avionics robustness/cybersecurity testing |
| CN109871312A (en) * | 2017-12-05 | 2019-06-11 | 航天信息股份有限公司 | A kind of interface test method, device, equipment and readable storage medium storing program for executing |
| CN109977005A (en) * | 2019-02-13 | 2019-07-05 | 网易(杭州)网络有限公司 | End-to-end test method, medium, device and calculating equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113391962A (en) | 2021-09-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111984476B (en) | Test method and device | |
| CN110765024B (en) | Simulation test method, simulation test device, electronic equipment and computer readable storage medium | |
| CN111784663B (en) | Method and device for detecting parts, electronic equipment and storage medium | |
| EP4075283A1 (en) | Method and apparatus for continuous integration testing | |
| CN111752843A (en) | Method, device, electronic equipment and readable storage medium for determining influence surface | |
| CN112561332B (en) | Model management method, device, electronic equipment, storage medium and program product | |
| CN106354629A (en) | Construction method of iOS system mobile application automatic test system based on multiple stages of servers | |
| CN115480746A (en) | Method, device, equipment and medium for generating execution file of data processing task | |
| CN112667795B (en) | Dialogue tree construction method and device, dialogue tree operation method, device and system | |
| CN113391962B (en) | Offline data testing method, offline data testing device and electronic equipment | |
| CN110825951B (en) | Webpage processing method and device and electronic equipment | |
| CN112346947A (en) | Performance detection method and device, electronic equipment and computer readable medium | |
| CN111049690B (en) | Equipment fault monitoring and processing method, device, equipment and storage medium | |
| CN110555486B (en) | Model structure delay prediction method and device and electronic equipment | |
| CN111538656A (en) | Monitoring method, device, equipment and storage medium for gradient inspection | |
| CN106815150B (en) | Server-side interface test system and method | |
| CN112446574B (en) | Product evaluation method, device, electronic equipment and storage medium | |
| CN112491858B (en) | Method, device, equipment and storage medium for detecting abnormal information | |
| CN112532483A (en) | Test method, test device, electronic equipment and storage medium | |
| CN112527635B (en) | Fault injection method and device, electronic equipment and storage medium | |
| CN116975081A (en) | Log diagnosis set updating method, device, equipment and storage medium | |
| CN111694686B (en) | A processing method, device, electronic equipment and storage medium for abnormal service | |
| CN112270414A (en) | Operator monitoring method, device, electronic device and storage medium | |
| CN113220560B (en) | Code testing method and device, electronic equipment and storage medium | |
| CN111930748A (en) | Data tracking method, device, equipment and storage medium for streaming computing system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |