CN109697166B - Test data preparation method and related device - Google Patents

Test data preparation method and related device Download PDF

Info

Publication number
CN109697166B
CN109697166B CN201811604919.6A CN201811604919A CN109697166B CN 109697166 B CN109697166 B CN 109697166B CN 201811604919 A CN201811604919 A CN 201811604919A CN 109697166 B CN109697166 B CN 109697166B
Authority
CN
China
Prior art keywords
node data
reported
test
data
tested
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
Application number
CN201811604919.6A
Other languages
Chinese (zh)
Other versions
CN109697166A (en
Inventor
潘燕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811604919.6A priority Critical patent/CN109697166B/en
Publication of CN109697166A publication Critical patent/CN109697166A/en
Application granted granted Critical
Publication of CN109697166B publication Critical patent/CN109697166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a test data preparation method, which comprises the steps of firstly generating corresponding initial node data according to test requirements, and carrying out corresponding processing on the initial node data by utilizing a node data reporting format to obtain node data to be reported, so that a system to be tested can directly complete performance test according to the node data to be reported, and the data used for the performance test of the system to be tested can complete the test on the system to be tested without using real data of nodes which normally work, thereby effectively reducing the cost of the test process, avoiding the influence on the nodes which normally work, and enabling the test process to be simpler and more convenient. The application also provides a test data preparation system, a test data preparation device and a computer readable storage medium, and the technical effects can be achieved.

Description

Test data preparation method and related device
Technical Field
The present invention relates to the field of performance testing, and in particular, to a method, an apparatus, a system, and a computer-readable storage medium for preparing test data.
Background
At present, a computer device needs to process a large amount of data, so that good data calculation and statistical capability is needed, and therefore, it is very important to test the relevant performance of the computer device.
For a scheduling system which needs to bear the calculation and statistical capability of million node data, if the performance data of the scheduling system is tested, million node information needs to be reported to the scheduling system at first, and then the test is completed according to the reported data.
However, the performance of the scheduling system is tested by reporting data by the nodes in the working million levels, which increases the development and operation costs, and also affects the service of each node in normal working and the test result of the scheduling system, and the cost is high.
Therefore, how to simply and conveniently complete the performance test is a problem to be solved by those skilled in the art.
Disclosure of Invention
The invention mainly aims to provide a test data preparation method, a test data preparation device, a test data preparation system and a computer readable storage medium, so as to solve the problem of how to simply and conveniently complete performance test.
In order to achieve the above object, the present invention provides a method for preparing test data, the method comprising:
generating initial node data corresponding to the test requirement according to the test requirement;
processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format;
and sending the node data to be reported to a system to be tested so that the system to be tested can test the performance by using the received node data to be reported.
Optionally, the sending the node data to be reported to a system to be tested includes:
and sending the node data to be reported to a system to be tested according to a preset reporting frequency.
Optionally, before the processing the initial node data by using the node data reporting format to obtain the node data to be reported conforming to the node data reporting format, the method further includes:
segmenting the initial node data to obtain a first segmentation result with a first preset number;
sending each first segmentation result to different node data generation modules to be reported;
then, the processing the initial node data by using the node data reporting format to obtain the node data to be reported which conforms to the node data reporting format includes:
and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node reporting format.
Optionally, before sending the node data to be reported to the system to be tested, the method further includes:
dividing the node data to be reported to obtain second division results of a second preset number;
sending each second segmentation result to different reporting modules;
the sending the node data to be reported to a system to be tested includes:
and sending each second division result to a system to be tested by utilizing each reporting module receiving the second division result.
Optionally, the bandwidth performance data of the reporting module is less than the bandwidth performance data of the second partition result when the second partition result is sent.
To achieve the above object, the present application further provides a test data preparation apparatus, the apparatus including a memory and a processor, the memory having stored thereon a test data preparation program executable on the processor, the test data preparation program implementing the following steps when executed by the processor:
generating initial node data corresponding to the test requirement according to the test requirement;
processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format;
and sending the node data to be reported to a system to be tested so that the system to be tested can test the performance by using the received node data to be reported.
Optionally, the test data preparation program when executed by the processor further implements:
and sending the node data to be reported to a system to be tested according to a preset reporting frequency.
Optionally, the test data preparation program when executed by the processor further implements:
segmenting the initial node data to obtain a first segmentation result with a first preset number;
sending each first segmentation result to different node data generation modules to be reported;
and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node reporting format.
To achieve the above object, the present application also provides a test data preparation system, including:
the initial node data generation module is used for generating initial node data corresponding to the test requirement according to the test requirement;
the processing module is used for processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format;
and the sending module is used for sending the node data to be reported to a system to be tested so that the system to be tested can test the performance by using the received node data to be reported.
To achieve the above object, the present application also provides a computer-readable storage medium having a test data preparation program stored thereon, the test data preparation program being executable by one or more processors to implement the test data preparation method as described.
To achieve the above object, the present invention further provides a computer program product comprising computer instructions which, when run on a computer, make the computer perform the test data preparation method disclosed in the foregoing.
Therefore, according to the test data preparation method provided by the application, the corresponding initial node data is generated according to the test requirement, the initial node data is correspondingly processed by utilizing the node data reporting format to obtain the node data to be reported, so that the system to be tested can directly complete the performance test according to the node data to be reported, the data for testing the performance test of the system to be tested can complete the test on the system to be tested without using the real data of the normally working node, the cost of the test process can be effectively reduced, the influence on the normally working node is avoided, and the test process is simpler and more convenient.
Drawings
FIG. 1 is a schematic flow chart of an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another embodiment of the present invention;
FIG. 3 is a schematic flow chart of another embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating an internal structure of a test data preparing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a test data preparation system according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
At present, when testing whether a scheduling system can bear the calculation and statistical capacity of million-node data, online environment testing is needed, namely, millions of normally used nodes are needed to report real data for testing the performance of the scheduling system to the scheduling system, and then the scheduling system is enabled to complete the testing of the scheduling system. The invention provides a test data preparation method, which can solve the problem of high performance test cost in the prior art.
The invention provides a test data preparation method.
Referring to fig. 1, fig. 1 is a schematic flow chart according to an embodiment of the invention.
In one embodiment, the method comprises:
and S101, generating initial node data corresponding to the test requirement according to the test requirement.
In the scheme, initial node data serving as a test case is generated firstly, and the initial node data is not data of a real node but node data generated according to test requirements.
The test requirements may define the number of nodes, node areas, node operators, node names, node IDs, etc., and all nodes satisfying the requirements are generated using the test requirements.
Specifically, the form of the initial node data may be a list form, and in this step, a configuration list including all node information satisfying the test requirement is generated according to the test requirement.
And S102, processing the initial node data by utilizing a node data reporting format to obtain the node data to be reported which accords with the node data reporting format.
Specifically, data reported to the system to be tested generally has some formats, and therefore, in the present scheme, a corresponding node data reporting format needs to be determined for the system to be tested, and the initial node data determined in S101 is converted into a format corresponding to the node data reporting format, so as to obtain the node data to be reported.
S103, sending the node data to be reported to a system to be tested so that the system to be tested can test performance by using the received node data to be reported.
Specifically, the node data to be reported is sent to the system to be tested, and the system to be tested performs a performance test according to all the received node data to be reported, so as to obtain a performance test result.
As a preferred embodiment, the sending the node data to be reported to a system to be tested includes:
and sending the node data to be reported to a system to be tested according to a preset reporting frequency.
It should be noted that, in the conventional on-line testing process, when each node in operation uploads its own data to the system to be tested, the frequency of the uploaded data is within a frequency range, in order to make the test data, that is, the data of the node to be reported more real and accurate, in the present scheme, the preset reporting frequency is determined according to the actual situation, and the node data to be reported is sent to the system to be tested by using the preset reporting frequency.
Therefore, according to the test data preparation method provided by the application, the corresponding initial node data is generated according to the test requirement, the initial node data is correspondingly processed by utilizing the node data reporting format to obtain the node data to be reported, so that the system to be tested can directly complete the performance test according to the node data to be reported, the data for testing the performance test of the system to be tested can complete the test on the system to be tested without using the real data of the normally working node, the cost of the test process can be effectively reduced, the influence on the normally working node is avoided, and the test process is simpler and more convenient.
A specific test data preparation method provided in the embodiments of the present application is described below, and a specific test data preparation method described below and the embodiments described above may be referred to with each other.
Referring to fig. 2, a specific test data preparation method provided in the embodiment of the present application specifically includes:
s201, generating initial node data corresponding to the test requirement according to the test requirement.
S202, segmenting the initial node data to obtain a first segmentation result with a first preset number.
It should be noted that, in the process of converting the initial node data according to the node data reporting format, if the amount of data that needs to be subjected to format conversion is too large, the resource of the node that is subjected to format conversion is seriously occupied, so that the normal use of the node may be affected.
Specifically, the initial node data needs to be segmented, that is, the original initial node data is divided into multiple parts, so as to obtain a first segmentation result with a first preset number, where the first preset number is determined according to the total amount of the initial node data that needs to be subjected to format conversion and the data processing capability of the node that performs the format conversion operation, and is not specifically limited in this scheme.
And S203, sending each first segmentation result to different node data generation modules to be reported.
In the scheme, the method comprises at least a first preset number of node data generation modules to be reported, and computing resources are not shared among the modules, so that each module can be understood as a single computing node.
After the initial node data is divided to obtain a first preset number of first division results, each first division result can be respectively sent to different node data generation modules to be reported, so that each module only carries out format conversion processing on the first division results received by the module, namely, part of the initial node data.
And S204, processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node reporting format.
Specifically, each module receiving the first segmentation result only performs format conversion processing on the first segmentation result received by the module, that is, part of the initial node data, so that a large amount of computing resources can be effectively avoided being consumed by the node performing the format conversion, and normal use of the node is avoided being influenced.
S205, the node data to be reported is sent to a system to be tested, so that the system to be tested can test performance by using the received node data to be reported.
A specific test data preparation method provided in the embodiments of the present application is described below, and a test data preparation method described below may be referred to any of the embodiments described above.
Referring to fig. 3, a specific test data preparation method provided in the embodiment of the present application specifically includes:
s301, generating initial node data corresponding to the test requirement according to the test requirement.
S302, processing the initial node data by using a node data reporting format to obtain the node data to be reported which accords with the node data reporting format.
And S303, segmenting the node data to be reported to obtain second segmentation results with a second preset number.
It should be noted that, when the amount of the node data to be reported is very large, pressure may be applied to the bandwidth of the node used for sending the data, and therefore, a situation of serious delay or even failure in sending may be caused.
It should be noted that the occupation of network resources between each reporting module does not affect each other, that is, the size of the data volume transmitted by each reporting module does not affect the bandwidth pressure of other reporting modules, so that each reporting module can be deployed in an independent node.
Specifically, in the scheme, the node data to be reported is first segmented to obtain a second segmentation result with a second preset number. It should be noted that the bandwidth performance data of the reporting module is less than the bandwidth performance data of the second segmentation result when the second segmentation result is sent. The second preset number is determined according to the total data amount of the node data to be reported and the bandwidth pressure that each reporting module can bear, and is not specifically limited in the scheme.
It should be noted that the present embodiment and the above-described embodiments can be implemented in combination. Specifically, firstly, each to-be-reported node data generation module receiving the first segmentation result is utilized to process each first segmentation result according to the node data reporting format, so as to obtain to-be-reported node data conforming to the node reporting format; and then, by utilizing each node data to be reported time generation module, segmenting the node data to be reported in the module to obtain a second segmentation result with a second preset number.
S304, sending each second segmentation result to different reporting modules.
Specifically, each second division result is sent to a different reporting module
S305, sending each second division result to a system to be tested by using each reporting module receiving the second division result.
Specifically, after each second segmentation result is sent to a different reporting module, each reporting module receiving the second segmentation result can be used to send part of the data of the node to be reported received by the reporting module to the test system, so that the data volume sent by each sending node is within the bandwidth pressure bearing range of the sending node, and when a large amount of data of the node to be reported exists, serious bandwidth pressure cannot be caused to a certain node, and the situations of sending delay or sending failure and the like can be avoided.
Further, the embodiment also discloses a test data preparation device.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating an internal structure of a test data preparing apparatus according to an embodiment of the present invention. In fig. 4, the test data preparation apparatus 1 includes a memory 11 and a processor 12, the memory 11 stores a test data preparation program operable on the processor 12, and the test data preparation program implements the following method when executed by the processor 12:
generating initial node data corresponding to the test requirement according to the test requirement; processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format; and sending the node data to be reported to a system to be tested so that the system to be tested can test the performance by using the received node data to be reported.
Therefore, the test data preparation device provided by the application can generate corresponding initial node data according to test requirements, and correspondingly process the initial node data by using the node data reporting format to obtain the node data to be reported, so that a system to be tested can directly complete performance test according to the node data to be reported, the data for testing the performance of the system to be tested can complete the test on the system to be tested without using the real data of the normally working node, the cost of the test process can be effectively reduced, the influence on the normally working node is avoided, and the test process is simpler and more convenient.
When the test data preparation program is executed by the processor 12, the following steps may be specifically implemented: and sending the node data to be reported to a system to be tested according to a preset reporting frequency.
The test data preparation program, when executed by the processor 12, may further implement: segmenting the initial node data to obtain a first segmentation result with a first preset number; sending each first segmentation result to different node data generation modules to be reported; and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node reporting format.
When the test data preparation program is executed by the processor 12, the following steps may be specifically implemented: dividing the node data to be reported to obtain second division results of a second preset number; sending each second segmentation result to different reporting modules; and sending each second division result to a system to be tested by utilizing each reporting module receiving the second division result.
And the bandwidth performance data of the reporting module is less than the bandwidth performance data of the second segmentation result when the second segmentation result is sent.
In this embodiment, the test data preparation apparatus 1 may be a PC (Personal Computer), a smart phone, a tablet Computer, a palmtop Computer, or a portable Computer.
Further, referring to fig. 4, the test data preparing apparatus 1 may further include a bus 13, wherein the memory 11 and the processor 12 are connected through the bus 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the test data preparation apparatus 1, for example a hard disk of the test data preparation apparatus 1. The memory 11 may also be an external storage device of the test data preparation apparatus 1 in other embodiments, such as a plug-in hard disk provided on the test data preparation apparatus 1, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 11 may also include both an internal storage unit and an external storage device of the test data preparation apparatus 1. The memory 11 may be used not only to store application software installed in the test data preparation apparatus 1 and various types of data, such as a code of a test data preparation program, but also to temporarily store data that has been output or is to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip in some embodiments, and is used for executing program codes stored in the memory 11 or Processing data, such as executing a test data preparation program.
The bus 13 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
Further, the test data preparation apparatus 1 may further comprise a network interface 14, and the network interface 14 may optionally comprise a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the test data preparation apparatus 1 and other electronic devices.
Optionally, the test data preparation apparatus 1 may further comprise a user interface 15, the user interface 15 may comprise a Display (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may further comprise a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the test data preparation device 1 and for displaying a visual user interface.
While FIG. 4 shows only test data preparation apparatus 1 having components 11-15, those skilled in the art will appreciate that the configuration shown in FIG. 4 does not constitute a limitation of test data preparation apparatus 1, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
Further, the embodiment also discloses a test data preparation system.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a test data preparation system according to an embodiment of the disclosure.
In fig. 5, the test data preparation system includes:
an initial node data generating module 401, configured to generate initial node data corresponding to the test requirement according to the test requirement.
A processing module 402, configured to process the initial node data by using a node data reporting format to obtain node data to be reported, where the node data to be reported conforms to the node data reporting format.
A sending module 403, configured to send the node data to be reported to a system to be tested, so that the system to be tested tests performance by using the received node data to be reported.
Therefore, the test data preparation system provided by the application generates corresponding initial node data according to test requirements, and performs corresponding processing on the initial node data by using a node data reporting format to obtain node data to be reported, so that the system to be tested can directly complete performance test according to the node data to be reported, the data for testing the performance of the system to be tested can complete test on the system to be tested without using real data of nodes which normally work, the cost of a test process can be effectively reduced, the influence on the nodes which normally work is avoided, and the test process is simpler and more convenient.
In this embodiment, the sending module 403 may be specifically configured to send the node data to be reported to a system to be tested according to a preset reporting frequency.
Further, the test data preparation system may further include:
the first segmentation module is used for segmenting the initial node data to obtain first segmentation results of a first preset number;
the first segmentation result sending module is used for sending each first segmentation result to different node data generation modules to be reported;
the processing module 402 is specifically configured to utilize each to-be-reported node data generation module that receives the first segmentation result to process each first segmentation result according to the node data reporting format, so as to obtain to-be-reported node data that conforms to the node reporting format.
Further, the test data preparation system may further include:
the second segmentation module is used for segmenting the node data to be reported to obtain second segmentation results with a second preset number;
the second segmentation result sending module is used for sending each second segmentation result to different reporting modules;
the sending module 403 is specifically configured to send each second segmentation result to a system to be tested by using each reporting module that receives the second segmentation result.
Optionally, the bandwidth performance data of the reporting module is less than the bandwidth performance data of the second partition result when the second partition result is sent.
Further, the present embodiment also discloses a computer-readable storage medium having a test data preparation program stored thereon, the test data preparation program being executable by one or more processors to implement the method of:
generating initial node data corresponding to the test requirement according to the test requirement; processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format; and sending the node data to be reported to a system to be tested so that the system to be tested can test the performance by using the received node data to be reported.
Therefore, according to the computer-readable storage medium provided by the application, corresponding initial node data is generated according to test requirements, and the initial node data is correspondingly processed by using a node data reporting format to obtain node data to be reported, so that a system to be tested can directly complete performance test according to the node data to be reported, the data for testing the performance of the system to be tested can complete the test on the system to be tested without using real data of nodes which normally work, the cost of a test process can be effectively reduced, the influence on the nodes which normally work is avoided, and the test process is simpler and more convenient.
When executed by one or more processors, the test data preparation program may specifically implement: and sending the node data to be reported to a system to be tested according to a preset reporting frequency.
When executed by one or more processors, the test data preparation program may specifically implement: segmenting the initial node data to obtain a first segmentation result with a first preset number; sending each first segmentation result to different node data generation modules to be reported; and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node reporting format.
When executed by one or more processors, the test data preparation program may specifically implement: dividing the node data to be reported to obtain second division results of a second preset number; sending each second segmentation result to different reporting modules; and sending each second division result to a system to be tested by utilizing each reporting module receiving the second division result.
And the bandwidth performance data of the reporting module is less than the bandwidth performance data of the second segmentation result when the second segmentation result is sent.
Further, the present invention also provides a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the method steps of:
generating initial node data corresponding to the test requirement according to the test requirement; processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format; and sending the node data to be reported to a system to be tested so that the system to be tested can test the performance by using the received node data to be reported.
Therefore, according to the computer program product provided by the application, corresponding initial node data is generated according to test requirements, and the initial node data is correspondingly processed by using a node data reporting format to obtain node data to be reported, so that a system to be tested can directly complete performance test according to the node data to be reported, the data for testing the performance of the system to be tested can complete test on the system to be tested without using real data of nodes which normally work, the cost of a test process can be effectively reduced, the influence on the nodes which normally work is avoided, and the test process is simpler and more convenient.
In this embodiment, when the computer instruction runs on a computer, the computer may specifically execute the following steps: and sending the node data to be reported to a system to be tested according to a preset reporting frequency.
In this embodiment, when the computer instruction runs on a computer, the computer may specifically execute the following steps: segmenting the initial node data to obtain a first segmentation result with a first preset number; sending each first segmentation result to different node data generation modules to be reported; and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node reporting format.
In this embodiment, when the computer instruction runs on a computer, the computer may specifically execute the following steps: dividing the node data to be reported to obtain second division results of a second preset number; sending each second segmentation result to different reporting modules; and sending each second division result to a system to be tested by utilizing each reporting module receiving the second division result.
And the bandwidth performance data of the reporting module is less than the bandwidth performance data of the second segmentation result when the second segmentation result is sent.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that the above-mentioned numbers of the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method of test data preparation, the method comprising:
generating initial node data corresponding to the test requirement according to the test requirement;
processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format;
sending the node data to be reported to a scheduling system to be tested so that the scheduling system to be tested can test the performance by using the received node data to be reported;
before the processing the initial node data by using the node data reporting format to obtain the node data to be reported which conforms to the node data reporting format, the method further includes: segmenting the initial node data to obtain a first segmentation result with a first preset number; sending each first segmentation result to different node data generation modules to be reported; then, the processing the initial node data by using the node data reporting format to obtain the node data to be reported which conforms to the node data reporting format includes: and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain the to-be-reported node data conforming to the node data reporting format.
2. The method of claim 1, wherein the sending the node data to be reported to a scheduling system to be tested comprises:
and sending the node data to be reported to a scheduling system to be tested according to a preset reporting frequency.
3. The method of claim 1, wherein before sending the node data to be reported to the scheduling system to be tested, the method further comprises:
dividing the node data to be reported to obtain second division results of a second preset number;
sending each second segmentation result to different reporting modules;
the sending the node data to be reported to a scheduling system to be tested includes:
and sending each second division result to a scheduling system to be tested by utilizing each reporting module receiving the second division result.
4. The method of claim 3, wherein the bandwidth data required when the second segmentation result is sent is smaller than the bandwidth performance data of the reporting module.
5. A test data preparation apparatus, comprising a memory and a processor, the memory having stored thereon a test data preparation program executable on the processor, the test data preparation program when executed by the processor implementing the steps of:
generating initial node data corresponding to the test requirement according to the test requirement;
processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format;
sending the node data to be reported to a scheduling system to be tested so that the scheduling system to be tested can test the performance by using the received node data to be reported;
wherein the test data preparation program when executed by the processor further implements: segmenting the initial node data to obtain a first segmentation result with a first preset number; sending each first segmentation result to different node data generation modules to be reported; and processing each first segmentation result according to the node data reporting format by using each to-be-reported node data generation module receiving the first segmentation result to obtain to-be-reported node data conforming to the node data reporting format.
6. The apparatus of claim 5, wherein the test data preparation program, when executed by the processor, further implements:
and sending the node data to be reported to a scheduling system to be tested according to a preset reporting frequency.
7. A test data preparation system, the system comprising:
the initial node data generation module is used for generating initial node data corresponding to the test requirement according to the test requirement;
the processing module is used for processing the initial node data by utilizing a node data reporting format to obtain node data to be reported which accords with the node data reporting format;
the sending module is used for sending the node data to be reported to a scheduling system to be tested so that the scheduling system to be tested can test performance by using the received node data to be reported;
the test data preparation system is further used for segmenting the initial node data to obtain first segmentation results of a first preset number; sending each first segmentation result to different node data generation modules to be reported; correspondingly, the processing module is specifically configured to utilize each to-be-reported node data generation module that receives the first segmentation result to process each first segmentation result according to the node data reporting format, so as to obtain to-be-reported node data that conforms to the node data reporting format.
8. A computer-readable storage medium having stored thereon a test data preparation program executable by one or more processors to implement a test data preparation method according to any one of claims 1 to 4.
CN201811604919.6A 2018-12-26 2018-12-26 Test data preparation method and related device Active CN109697166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811604919.6A CN109697166B (en) 2018-12-26 2018-12-26 Test data preparation method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811604919.6A CN109697166B (en) 2018-12-26 2018-12-26 Test data preparation method and related device

Publications (2)

Publication Number Publication Date
CN109697166A CN109697166A (en) 2019-04-30
CN109697166B true CN109697166B (en) 2022-04-26

Family

ID=66232010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811604919.6A Active CN109697166B (en) 2018-12-26 2018-12-26 Test data preparation method and related device

Country Status (1)

Country Link
CN (1) CN109697166B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112131104A (en) * 2020-09-11 2020-12-25 北京达佳互联信息技术有限公司 Test data distribution method and device, electronic equipment and storage medium
CN113064829B (en) * 2021-04-13 2023-03-10 上海浦东发展银行股份有限公司 Test data life tree structure based on credit card core and data generation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426309A (en) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 Test case automatic generation method and apparatus
CN106101169A (en) * 2016-05-19 2016-11-09 努比亚技术有限公司 A kind of terminal and data reporting method
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN108763070A (en) * 2018-05-16 2018-11-06 北京金山云网络技术有限公司 Generation method, device and the electronic equipment of test data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346366B (en) * 2013-07-30 2017-11-24 国际商业机器公司 Extend the method and apparatus of test data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426309A (en) * 2015-11-13 2016-03-23 上海斐讯数据通信技术有限公司 Test case automatic generation method and apparatus
CN106101169A (en) * 2016-05-19 2016-11-09 努比亚技术有限公司 A kind of terminal and data reporting method
CN107894953A (en) * 2017-11-21 2018-04-10 中国银行股份有限公司 A kind of generation method and device of Bank application test data
CN108763070A (en) * 2018-05-16 2018-11-06 北京金山云网络技术有限公司 Generation method, device and the electronic equipment of test data

Also Published As

Publication number Publication date
CN109697166A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
CN108427705B (en) Electronic device, distributed system log query method and storage medium
CN108462760B (en) Electronic device, automatic cluster access domain name generation method and storage medium
EP3575975B1 (en) Method and apparatus for operating smart network interface card
US8660833B2 (en) Method, computer program product and apparatus for providing an interactive network simulator
CN102043645B (en) Plug-in loading method and device
CN110677493B (en) Service state determination method and device, computer device and storage medium
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
CN109697166B (en) Test data preparation method and related device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN112631911A (en) Automatic testing method and device, computer equipment and storage medium
CN112000911A (en) Page management method and device, electronic equipment and storage medium
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN112882833B (en) Data acquisition method and device, computer equipment and storage medium
CN109032693B (en) Method and device for loading display information, electronic equipment and readable storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN115170152A (en) Data distribution method, device, equipment and storage medium
CN111679885B (en) Method, device, medium and electronic equipment for determining virtual machine drift
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN113760768A (en) Test method, monitoring platform, electronic equipment and storage medium
CN114302207A (en) Bullet screen display method, device, system, equipment and storage medium
CN114138358A (en) Application program starting optimization method, device, equipment and storage medium
CN113485835A (en) Method, system, equipment and medium for realizing memory sharing under multiple scenes
CN106528577B (en) Method and device for setting file to be cleaned
CN110716806A (en) Edge node computing capacity determination method, electronic device, system and medium
CN112947974B (en) Desktop icon updating method, device and equipment and computer readable storage medium

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