CN109697166A - A kind of test data preparation method and relevant apparatus - Google Patents

A kind of test data preparation method and relevant apparatus Download PDF

Info

Publication number
CN109697166A
CN109697166A CN201811604919.6A CN201811604919A CN109697166A CN 109697166 A CN109697166 A CN 109697166A CN 201811604919 A CN201811604919 A CN 201811604919A CN 109697166 A CN109697166 A CN 109697166A
Authority
CN
China
Prior art keywords
data
reported
test
node data
node
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.)
Granted
Application number
CN201811604919.6A
Other languages
Chinese (zh)
Other versions
CN109697166B (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

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

Abstract

The invention discloses a kind of test data preparation methods, corresponding start node data are generated according to testing requirement first, and start node data are performed corresponding processing using nodes's data reporting format to obtain node data to be reported, to allow test system to be measured directly to complete performance test according to node data to be reported, for system performance testing to be tested data without using normal work node truthful data, test macro can be treated and complete test, so as to which the cost of test process is effectively reduced, avoid the influence to the node of normal work, keep test process simpler, it is convenient.Present invention also provides a kind of test data preparation system, device and computer readable storage mediums, and above-mentioned technical effect equally may be implemented.

Description

A kind of test data preparation method and relevant apparatus
Technical field
The present invention relates to performance test field more particularly to a kind of test data preparation method, device, system and computers Readable storage medium storing program for executing.
Background technique
Computer equipment needs to handle a large amount of data at present, it is therefore desirable to have good data and calculate and statistics energy Power, therefore test is carried out to the correlated performance of computer equipment and is very important.
For needing to bear for the calculating of million gridblocks data and the scheduling system of statistical power, if testing its performance Data, it is necessary first to have million gridblocks information reporting to scheduling system, then complete test further according to the data reported.
But make the node reported data of million ranks just at work, carry out the performance of test dispatching system, will increase Exploitation and operation cost, and will affect the test result of the business and scheduling system in each node normal work, generation Valence is higher.
Therefore, how performance test is simply and easily completed, is those skilled in the art's urgent problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide a kind of test data preparation method, device, system and computer-readable deposit Storage media, to solve the problems, such as how simply and easily to complete performance test.
To achieve the above object, a kind of test data preparation method provided by the invention, which comprises
Start node data corresponding with the testing requirement are generated according to testing requirement;
The start node data are handled to obtain using nodes's data reporting format and are met on the node data Report the node data to be reported of format;
The node data to be reported is sent to test system to be measured so that test system to be measured using receive it is described to Report node data test performance.
It is optionally, described that the node data to be reported is sent to test system to be measured, comprising:
Report frequency that the node data to be reported is sent to test system to be measured according to default.
Optionally, it is described the start node data are handled to obtain using nodes's data reporting format meet it is described Before the node data to be reported of nodes's data reporting format, further includes:
The start node data are split to obtain the first segmentation result of the first predetermined number;
Each first segmentation result is sent to different node data generation modules to be reported;
Then it is described the start node data are handled to obtain using nodes's data reporting format meet the node Data report the node data to be reported of format, comprising:
Using the node data generation module to be reported for each receiving first segmentation result, to each described first Segmentation result is handled according to the nodes's data reporting format, obtains meeting the node to be reported that the node reports format Data.
Optionally, the node data to be reported is sent to before test system to be measured, further includes:
The node data to be reported is split to obtain the second segmentation result of the second predetermined number;
Each second segmentation result is sent to different reporting modules;
It is then described that the node data to be reported is sent to test system to be measured, comprising:
Each second segmentation result is sent to using the reporting module for each receiving second segmentation result Test system to be measured.
Optionally, required band data when second segmentation result is sent is less than the bandwidth of the reporting module It can data.
To achieve the above object, the application also provides a kind of test data preparation device, described device include memory and Processor is stored with the test data preparation routine that can be run on the processor, the test data on the memory Preparation routine performs the steps of when being executed by the processor
Start node data corresponding with the testing requirement are generated according to testing requirement;
The start node data are handled to obtain using nodes's data reporting format and are met on the node data Report the node data to be reported of format;
The node data to be reported is sent to test system to be measured so that test system to be measured using receive it is described to Report node data test performance.
Optionally, it is also realized when the test data preparation routine is executed by the processor:
Report frequency that the node data to be reported is sent to test system to be measured according to default.
Optionally, it is also realized when the test data preparation routine is executed by the processor:
The start node data are split to obtain the first segmentation result of the first predetermined number;
Each first segmentation result is sent to different node data generation modules to be reported;
Using each receiving the node data generation module to be reported of first segmentation result to each described first Segmentation result is handled to obtain the node to be reported for meeting the node and reporting format according to the nodes's data reporting format Data.
To achieve the above object, the application also provides a kind of test data preparation system, the system comprises:
Start node data generation module, for generating start node corresponding with the testing requirement according to testing requirement Data;
Processing module meets institute for being handled to obtain to the start node data using nodes's data reporting format State the node data to be reported of nodes's data reporting format;
Sending module, for the node data to be reported to be sent to test system to be measured, so that test system to be measured utilizes The node data test performance to be reported received.
To achieve the above object, the application also provides a kind of computer readable storage medium, the computer-readable storage Test data preparation routine is stored on medium, the test data preparation routine can be executed by one or more processors, with Realize test data preparation method as mentioned.
To achieve the above object, the present invention further provides a kind of computer program products, including computer instruction, work as institute When stating computer instruction and running on computers, the computer is allowed to execute aforementioned disclosed test data preparation side Method.
It can be seen that a kind of test data preparation method provided by the present application, generates according to testing requirement corresponding first Start node data, and start node data are performed corresponding processing using nodes's data reporting format to obtain node to be reported Data are used for systematicness to be tested so that test system to be measured be allow directly to complete performance test according to node data to be reported The data that can be tested can treat test macro and complete test without using the truthful data of the node of normal work, so as to The cost of test process is effectively reduced, the influence to the node of normal work is avoided, keeps test process simpler, conveniently.
Detailed description of the invention
Fig. 1 is the flow diagram of one embodiment of the invention;
Fig. 2 is the flow diagram of another embodiment of the present invention;
Fig. 3 is the flow diagram of another embodiment of the present invention;
Fig. 4 is the schematic diagram of internal structure for the test data preparation device that one embodiment of the invention discloses;
Fig. 5 is the structural schematic diagram for the test data preparation system that one embodiment of the invention discloses.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce The other step or units of product or equipment inherently.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot It is interpreted as its relative importance of indication or suggestion or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment Art scheme can be combined with each other, but must be based on can be realized by those of ordinary skill in the art, when technical solution Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims Protection scope within.
Whether the calculating of million gridblocks data can be born to scheduling system at present and when statistical power is tested, required Environmental testing on line is carried out, that is, needs really to be used for oneself using the node of the normal use of million number of levelss The data of test dispatching system performance are reported to scheduling system, and then make scheduling system to complete the test of itself, but due to It has been related to a large amount of node just at work in test process, therefore has will increase exploitation and operation cost, and influence to save The regular traffic of point, testing cost are higher.And the present invention provides a kind of test data preparation methods, are able to solve the prior art The high problem of middle performance testing cost.
The present invention provides a kind of test data preparation method.
Referring to Fig.1, Fig. 1 is the flow diagram of one embodiment of the invention.
In one embodiment, this method comprises:
S101 generates start node data corresponding with the testing requirement according to testing requirement.
In the present solution, can generate the start node data as test case first, start node data are not true The data of physical node, but the node data generated according to testing requirement.
Testing requirement can limit number of nodes, node region, node operator, nodename, node ID etc., utilize survey Examination demand generates all nodes for meeting the demand.
Specifically, the form of start node data can be tabular form, in this step, generate one according to testing requirement Part includes the configured list of all nodal informations for meeting testing requirement.
The start node data are handled to obtain and meet the number of nodes by S102 using nodes's data reporting format According to the node data to be reported for reporting format.
Specifically, the data of test system to be measured are reported to be usually constructed with some formats, therefore, in the present solution, needing needle It treats test macro and determines corresponding nodes's data reporting format, the start node data conversion Cheng Yujie that will be determined in S101 Point data reports the corresponding format of format, to obtain node data to be reported, node data to be reported is to be tested due to meeting The format of system, therefore test system to be measured can be transmitted directly to and be tested for the property.
The node data to be reported is sent to test system to be measured by S103, so that test system to be measured utilization received The node data test performance to be reported.
Specifically, node data to be reported is sent to test system to be measured, test system to be measured is needed according to what is received Node data is reported to be tested for the property, to obtain the performance test results.
It is described that the node data to be reported is sent to test system to be measured as a preferred embodiment, comprising:
Report frequency that the node data to be reported is sent to test system to be measured according to default.
It should be noted that on traditional line in test process, the node in each work upload oneself data to When test macro, the frequency for uploading data is in a frequency range, in order to which test data is namely to upper in this programme Node data more true and accurate is reported, presets report frequency determines according to actual conditions, reports frequency will be to be reported using default Node data is sent in test system to be measured.
It can be seen that a kind of test data preparation method provided by the present application, generates according to testing requirement corresponding first Start node data, and start node data are performed corresponding processing using nodes's data reporting format to obtain node to be reported Data are used for systematicness to be tested so that test system to be measured be allow directly to complete performance test according to node data to be reported The data that can be tested can treat test macro and complete test without using the truthful data of the node of normal work, so as to The cost of test process is effectively reduced, the influence to the node of normal work is avoided, keeps test process simpler, conveniently.
A kind of specific test data preparation method provided by the embodiments of the present application is introduced below, it is described below A kind of specific test data preparation method can be cross-referenced with above-described embodiment.
Referring to fig. 2, a kind of specific test data preparation method provided by the embodiments of the present application, specifically includes:
S201 generates start node data corresponding with the testing requirement according to testing requirement.
The start node data are split to obtain the first segmentation result of the first predetermined number by S202.
It should be noted that during being converted to start node data according to nodes's data reporting format, such as The data volume that fruit needs to format is excessive, then can seriously occupy the resource of the node formatted, so as to The normal use of the node is influenced, therefore, in order to avoid this situation, in the present solution, can be with extending transversely multiple The data for needing to format operation are distributed to multiple nodes and converted by the node for formatting, from It and work normally each node can also.
Specifically, it is necessary first to start node data are split, that is to say, original start node data are divided into More parts, obtain the first segmentation result of the first predetermined number, it should be noted that the first predetermined number carries out format as needed The start node total amount of data of conversion and the data-handling capacity for the node for formatting operation are determined, in this programme In be not specifically limited.
Each first segmentation result is sent to different node data generation modules to be reported by S203.
In the present solution, including the node data generation module to be reported of at least the first predetermined number, between each module Computing resource does not share, it can thus be understood that each module is an individual calculate node.
It, can be by each after being split to obtain the first segmentation result of the first predetermined number by start node data One segmentation result is separately sent to different node data generation modules to be reported, receives each module only to oneself First segmentation result, that is, part start node data format processing.
S204, using the node data generation module to be reported for each receiving first segmentation result, to each institute The first segmentation result is stated to be handled according to the nodes's data reporting format, obtain meeting the node report format to upper Report node data.
Specifically, the first segmentation result that the module of the first segmentation result only receives oneself is each received, also It is that part start node data format processing, so as to effectively avoid the node formatted that from consuming greatly Computing resource is measured, to avoid influencing the normal use of the node.
The node data to be reported is sent to test system to be measured by S205, so that test system to be measured utilization received The node data test performance to be reported.
A kind of specific test data preparation method provided by the embodiments of the present application is introduced below, it is described below A kind of test data preparation method can be cross-referenced with any of the above-described embodiment.
Referring to Fig. 3, a kind of specific test data preparation method provided by the embodiments of the present application is specifically included:
S301 generates start node data corresponding with the testing requirement according to testing requirement.
The start node data are handled to obtain and meet the number of nodes by S302 using nodes's data reporting format According to the node data to be reported for reporting format.
The node data to be reported is split to obtain the second segmentation result of the second predetermined number by S303.
It should be noted that when the quantity of node data to be reported is very big, it will be to the section for sending the data The bandwidth of point causes stress, it is thus possible to will cause the case where significant delays even send failure, in order to avoid such situation Occur, in the present solution, can will need to carry out with multiple reporting modules for being used to send node data to be reported extending transversely The node data to be reported reported is distributed to multiple reporting modules and is reported, thus the bandwidth pressure for bearing each node In the normal range, the normal use of node where sending effect and reporting module is not influenced.
It should be noted that resource occupying situation is independent of each other between each reporting module, i.e., each reporting module The data volume size of transmission does not impact the bandwidth pressure of other reporting modules, thus can with when the deployment of each reporting module In an independent node.
Specifically, in the present solution, be split first to node data to be reported, the second of the second predetermined number is obtained Segmentation result.It should be noted that required band data when the second segmentation result is sent is less than the band of the reporting module Wide feature data.The band that second predetermined number is able to bear according to the total amount of data and each reporting module of node data to be reported Wide pressure is determined, and is not specifically limited in this programme.
It should be noted that the present embodiment and above-described embodiment can be in conjunction with implementations.Specifically, firstly, using each connecing The node data generation module to be reported for receiving first segmentation result, to each first segmentation result according to the section Point data reports format to be handled, and obtains meeting the node data to be reported that the node reports format;Then, using each Generation module when node data to be reported is split to obtain the second predetermined number to the node data to be reported in this module Second segmentation result.
Each second segmentation result is sent to different reporting modules by S304.
Specifically, it sends each second segmentation result in different reporting modules
S305 is sent out each second segmentation result using the reporting module for each receiving second segmentation result It send to test system to be measured.
Specifically, after sending different reporting modules for each second segmentation result, i.e., is received using each The part that the reporting module of two segmentation results receives oneself node data to be reported is sent to test macro, to make each The data volume that sending node is sent is in the bandwidth pressure tolerance range of oneself, when there is a large amount of node datas to be reported, Serious bandwidth pressure will not be caused, to some node so as to avoid sending situations such as postponing or sending failure.
Further, the present embodiment also discloses a kind of test data preparation device.
It is the schematic diagram of internal structure for the test data preparation device that one embodiment of the invention discloses referring to Fig. 4, Fig. 4.Fig. 4 In, test data preparation device 1 includes memory 11 and processor 12, and being stored on the memory 11 can be in the processor The test data preparation routine run on 12 realizes such as lower section when the test data preparation routine is executed by the processor 12 Method:
Start node data corresponding with the testing requirement are generated according to testing requirement;Utilize nodes's data reporting format The start node data are handled to obtain the node data to be reported for meeting the nodes's data reporting format;It will be described Node data to be reported is sent to test system to be measured, so that test system to be measured is surveyed using the node data to be reported received Try performance.
It can be seen that a kind of test data preparation device provided by the present application, generates according to testing requirement corresponding first Start node data, and start node data are performed corresponding processing using nodes's data reporting format to obtain node to be reported Data are used for systematicness to be tested so that test system to be measured be allow directly to complete performance test according to node data to be reported The data that can be tested can treat test macro and complete test without using the truthful data of the node of normal work, so as to The cost of test process is effectively reduced, the influence to the node of normal work is avoided, keeps test process simpler, conveniently.
It when the test data preparation routine is executed by the processor 12, specifically may be implemented: reporting frequency according to default The node data to be reported is sent to test system to be measured by rate.
It when the test data preparation routine is executed by the processor 12, can also realize: by the start node number According to being split to obtain the first segmentation result of the first predetermined number;By each first segmentation result be sent to it is different to Report node data generation module;Using the node data generation module to be reported for each receiving first segmentation result, Each first segmentation result is handled according to the nodes's data reporting format, obtains meeting the node and reports lattice The node data to be reported of formula.
It when the test data preparation routine is executed by the processor 12, specifically may be implemented: by the section to be reported Point data is split to obtain the second segmentation result of the second predetermined number;Each second segmentation result is sent to difference Reporting module;Each second segmentation result is sent using the reporting module for each receiving second segmentation result To test system to be measured.
Wherein, required band data when second segmentation result is sent is less than the bandwidth performance of the reporting module Data.
In the present embodiment, the test data preparation device 1 can be PC (Personal Computer, personal electricity Brain), it is also possible to smart phone, tablet computer, palm PC, portable computer.
Further, referring to Fig. 4, the test data preparation device 1 can also include bus 13, wherein the storage Device 11 and the processor 12 are connected by the bus 13.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory, Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11 It can be the internal storage unit of test data preparation device 1 in some embodiments, such as the test data preparation device 1 Hard disk.Memory 11 is also possible to the External memory equipment of test data preparation device 1 in further embodiments, such as tests The plug-in type hard disk being equipped on data preparation device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include test The internal storage unit of data preparation device 1 also includes External memory equipment.Memory 11 can be not only used for storage and be installed on Application software and Various types of data, such as the code of test data preparation routine of test data preparation device 1 etc., can be also used for Temporarily store the data that has exported or will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11 Code or processing data, such as execute test data preparation routine etc..
Bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA) Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 4 only with one slightly Line indicates, it is not intended that an only bus or a type of bus.
Further, test data preparation device 1 can also include network interface 14, and network interface 14 optionally can wrap Wireline interface and/or wireless interface (such as WI-FI interface, blue tooth interface) are included, commonly used in the test data preparation device 1 Communication connection is established between other electronic equipments.
Optionally, which can also include user interface 15, and user interface 15 may include display Device (Display), input unit such as keyboard (Keyboard), optional user interface can also include that the wired of standard connects Mouth, wireless interface.Optionally, in some embodiments, display can be light-emitting diode display, liquid crystal display, touch control type LCD Display and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, it shows Device can also it is appropriate be known as display screen or display unit, for be shown in the information handled in test data preparation device 1 with And for showing visual user interface.
Fig. 4 illustrates only the test data preparation device 1 with component 11-15, it will be appreciated by those skilled in the art that It is that the structure shown in Fig. 4 does not constitute the restriction to test data preparation device 1, may include less or more than illustrating Component, perhaps combine certain components or different component layouts.
Further, the present embodiment also discloses a kind of test data preparation system.
It is the test data preparation system structural schematic diagram that one embodiment of the invention discloses referring to Fig. 5, Fig. 5.
In Fig. 5, the test data preparation system, comprising:
Start node data generation module 401, it is corresponding with the testing requirement initial for being generated according to testing requirement Node data.
Processing module 402 is accorded with for being handled using nodes's data reporting format the start node data Close the node data to be reported of the nodes's data reporting format.
Sending module 403, for the node data to be reported to be sent to test system to be measured, so that test system to be measured is sharp With the node data test performance to be reported received.
It can be seen that a kind of test data preparation system provided by the present application, generates according to testing requirement corresponding first Start node data, and start node data are performed corresponding processing using nodes's data reporting format to obtain node to be reported Data are used for systematicness to be tested so that test system to be measured be allow directly to complete performance test according to node data to be reported The data that can be tested can treat test macro and complete test without using the truthful data of the node of normal work, so as to The cost of test process is effectively reduced, the influence to the node of normal work is avoided, keeps test process simpler, conveniently.
In the present embodiment, the sending module 403 specifically can be used for reporting frequency by the section to be reported according to default Point data is sent to test system to be measured.
Further, the test data preparation system can also include:
First segmentation module obtains the first segmentation of the first predetermined number for being split the start node data As a result;
First segmentation result sending module, for each first segmentation result to be sent to different nodes to be reported Data generation module;
Then the processing module 402 is specifically used for utilizing the number of nodes to be reported for each receiving first segmentation result According to generation module, each first segmentation result is handled according to the nodes's data reporting format, obtains meeting institute State the node data to be reported that node reports format.
Further, the test data preparation system can also include:
Second segmentation module, obtains second point of the second predetermined number for the node data to be reported to be split Cut result;
Second segmentation result sending module, for each second segmentation result to be sent to different reporting modules;
Sending module 403 is specifically used for will be each described using the reporting module for each receiving second segmentation result Second segmentation result is sent to test system to be measured.
Optionally, required band data when second segmentation result is sent is less than the bandwidth of the reporting module It can data.
Further, the present embodiment also discloses a kind of computer readable storage medium, the computer-readable storage medium Test data preparation routine is stored in matter, the test data preparation routine can be executed by one or more processors, with reality Existing following method:
Start node data corresponding with the testing requirement are generated according to testing requirement;Utilize nodes's data reporting format The start node data are handled to obtain the node data to be reported for meeting the nodes's data reporting format;It will be described Node data to be reported is sent to test system to be measured, so that test system to be measured is surveyed using the node data to be reported received Try performance.
It can be seen that a kind of computer readable storage medium provided by the present application, generates according to testing requirement correspond to first Start node data, and start node data are performed corresponding processing using nodes's data reporting format to obtain section to be reported Point data is used for test system to be measured so that test system to be measured be allow directly to complete performance test according to node data to be reported The data of performance test can treat test macro and complete test without using the truthful data of the node of normal work, thus The cost that test process can be effectively reduced avoids the influence to the node of normal work, keeps test process simpler, square Just.
It when the test data preparation routine is executed by one or more processors, specifically may be implemented: on default Report frequency that the node data to be reported is sent to test system to be measured.
It when the test data preparation routine is executed by one or more processors, specifically may be implemented: will be described initial Node data is split to obtain the first segmentation result of the first predetermined number;Each first segmentation result is sent to not Same node data generation module to be reported;It is generated using the node data to be reported for each receiving first segmentation result Module handles each first segmentation result according to the nodes's data reporting format, obtains meeting the node Report the node data to be reported of format.
It when the test data preparation routine is executed by one or more processors, specifically may be implemented: will be described to upper Report node data is split to obtain the second segmentation result of the second predetermined number;Each second segmentation result is sent to Different reporting modules;Using each receiving the reporting module of second segmentation result for each second segmentation result It is sent to test system to be measured.
Wherein, required band data when second segmentation result is sent is less than the bandwidth performance of the reporting module Data.
Further, the present invention also provides a kind of computer program products, including computer instruction, when the computer refers to When order is run on computers, the computer is allowed to execute following methods step:
Start node data corresponding with the testing requirement are generated according to testing requirement;Utilize nodes's data reporting format The start node data are handled to obtain the node data to be reported for meeting the nodes's data reporting format;It will be described Node data to be reported is sent to test system to be measured, so that test system to be measured is surveyed using the node data to be reported received Try performance.
It can be seen that a kind of computer program product provided by the present application, generates according to testing requirement corresponding first first Beginning node data, and start node data are performed corresponding processing using nodes's data reporting format to obtain number of nodes to be reported According to allow test system to be measured directly to complete performance test according to node data to be reported, for system performance to be tested The data of test can treat test macro and complete test without using the truthful data of the node of normal work, so as to The cost of test process is effectively reduced, avoids the influence to the node of normal work, keeps test process simpler, conveniently.
In the present embodiment, when the computer instruction is run on computers, so that the computer can specifically be held Row following steps: report frequency that the node data to be reported is sent to test system to be measured according to default.
In the present embodiment, when the computer instruction is run on computers, so that the computer can specifically be held Row following steps: the start node data are split to obtain the first segmentation result of the first predetermined number;By each institute It states the first segmentation result and is sent to different node data generation modules to be reported;It is tied using first segmentation is each received The node data generation module to be reported of fruit carries out each first segmentation result according to the nodes's data reporting format Processing, obtains meeting the node data to be reported that the node reports format.
In the present embodiment, when the computer instruction is run on computers, so that the computer can specifically be held Row following steps: the node data to be reported is split to obtain the second segmentation result of the second predetermined number;It will be each Second segmentation result is sent to different reporting modules;Utilize the reporting module for each receiving second segmentation result Each second segmentation result is sent to test system to be measured.
Wherein, required band data when second segmentation result is sent is less than the bandwidth performance of the reporting module Data.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
The computer program product includes one or more computer instructions.Load and execute on computers the meter When calculation machine program instruction, entirely or partly generate according to process or function described in the embodiment of the present invention.The computer can To be general purpose computer, special purpose computer, computer network or other programmable devices.The computer instruction can be deposited Storage in a computer-readable storage medium, or from a computer readable storage medium to another computer readable storage medium Transmission, for example, the computer instruction can pass through wired (example from a web-site, computer, server or data center Such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave) mode to another website Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit Any usable medium of storage either includes that the data storages such as one or more usable mediums integrated server, data center are set It is standby.The usable medium can be magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or partly lead Body medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element Or there is also other identical elements in method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of test data preparation method, which is characterized in that the described method includes:
Start node data corresponding with the testing requirement are generated according to testing requirement;
The start node data are handled to obtain using nodes's data reporting format and meet the nodes's data reporting lattice The node data to be reported of formula;
The node data to be reported is sent to test system to be measured, so that test system to be measured is described to be reported using receiving Node data test performance.
2. the method according to claim 1, wherein it is described the node data to be reported is sent to it is to be tested System, comprising:
Report frequency that the node data to be reported is sent to test system to be measured according to default.
3. the method according to claim 1, wherein described utilize nodes's data reporting format to the initial section Point data is handled to obtain before the node data to be reported for meeting the nodes's data reporting format, further includes:
The start node data are split to obtain the first segmentation result of the first predetermined number;
Each first segmentation result is sent to different node data generation modules to be reported;
Then it is described the start node data are handled to obtain using nodes's data reporting format meet the node data Report the node data to be reported of format, comprising:
Using the node data generation module to be reported for each receiving first segmentation result, to each first segmentation As a result it is handled according to the nodes's data reporting format, obtains meeting the number of nodes to be reported that the node reports format According to.
4. the method according to claim 1, wherein the node data to be reported is sent to test system to be measured Before, further includes:
The node data to be reported is split to obtain the second segmentation result of the second predetermined number;
Each second segmentation result is sent to different reporting modules;
It is then described that the node data to be reported is sent to test system to be measured, comprising:
It is to be measured using each receiving the reporting module of second segmentation result for each second segmentation result and being sent to Test system.
5. according to the method described in claim 4, it is characterized in that, required bandwidth number when second segmentation result is sent According to the bandwidth performance data for being less than the reporting module.
6. a kind of test data preparation device, which is characterized in that described device includes memory and processor, on the memory It is stored with the test data preparation routine that can be run on the processor, the test data preparation routine is by the processor It is performed the steps of when execution
Start node data corresponding with the testing requirement are generated according to testing requirement;
The start node data are handled to obtain using nodes's data reporting format and meet the nodes's data reporting lattice The node data to be reported of formula;
The node data to be reported is sent to test system to be measured, so that test system to be measured is described to be reported using receiving Node data test performance.
7. device according to claim 6, which is characterized in that the test data preparation routine is executed by the processor When also realize:
Report frequency that the node data to be reported is sent to test system to be measured according to default.
8. device according to claim 6, which is characterized in that the test data preparation routine is executed by the processor When also realize:
The start node data are split to obtain the first segmentation result of the first predetermined number;
Each first segmentation result is sent to different node data generation modules to be reported;
Divided using the node data generation module to be reported for each receiving first segmentation result to each described first As a result it is handled to obtain the node data to be reported for meeting the node and reporting format according to the nodes's data reporting format.
9. a kind of test data preparation system, which is characterized in that the system comprises:
Start node data generation module, for generating start node number corresponding with the testing requirement according to testing requirement According to;
Processing module meets the section for being handled to obtain to the start node data using nodes's data reporting format Point data reports the node data to be reported of format;
Sending module, for the node data to be reported to be sent to test system to be measured, so that test system to be measured utilizes reception The node data test performance to be reported arrived.
10. a kind of computer readable storage medium, which is characterized in that be stored with test number on the computer readable storage medium According to preparation routine, the test data preparation routine can be executed by one or more processors, to realize such as claim 1 to 5 Described in any item test data preparation methods.
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 true CN109697166A (en) 2019-04-30
CN109697166B 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)

Cited By (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
CN113064829A (en) * 2021-04-13 2021-07-02 上海浦东发展银行股份有限公司 Test data life tree structure based on credit card core and data generation method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150039591A1 (en) * 2013-07-30 2015-02-05 International Business Machines Corporation Method and apparatus for proliferating testing data
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150039591A1 (en) * 2013-07-30 2015-02-05 International Business Machines Corporation Method and apparatus for proliferating testing data
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

Cited By (3)

* 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
CN113064829A (en) * 2021-04-13 2021-07-02 上海浦东发展银行股份有限公司 Test data life tree structure based on credit card core and data generation method
CN113064829B (en) * 2021-04-13 2023-03-10 上海浦东发展银行股份有限公司 Test data life tree structure based on credit card core and data generation method

Also Published As

Publication number Publication date
CN109697166B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN110750341B (en) Task scheduling method, device, system, terminal equipment and storage medium
US10289472B2 (en) Resource leak detection method, apparatus, and system
CN109413207A (en) A kind of file uploading method, system, device and computer readable storage medium
CN109634915A (en) File dispositions method, Cloud Server, system and storage medium
CN109918203A (en) Access server memory management optimization method, access server and communication system
CN109032828A (en) Using abnormality eliminating method and terminal
CN110247815A (en) A kind of data transmission method, device, system and computer readable storage medium
CN110493357A (en) A kind of calculation resource disposition method, system, device and computer storage medium
CN109697166A (en) A kind of test data preparation method and relevant apparatus
CN109324897A (en) Data uploading method and system, terminal and computer readable storage medium
CN109618174A (en) A kind of live data transmission method, device, system and storage medium
CN110750312A (en) Hardware resource configuration method and device, cloud side equipment and storage medium
CN114742000B (en) SoC chip verification system, method and device based on FPGA cluster
CN109408399A (en) A kind of calculation power estimation method, device, equipment and storage medium
CN109656783A (en) System platform monitoring method and device
CN108696649A (en) Image processing method, device, equipment and computer readable storage medium
CN109739712A (en) FPGA accelerator card transmission performance test method, device and equipment and medium
CN110750359B (en) Hardware resource configuration method and device, cloud side equipment and storage medium
CN112152874A (en) System and method for acquiring and analyzing application monitoring data in distributed system
CN110336888A (en) A kind of server distribution method, device, system and medium
CN109408304A (en) Block chain introduces test method, device, equipment and readable storage medium storing program for executing
CN109274534A (en) A kind of monitoring and managing method and equipment, communication system of network slice
CN115334001B (en) Data resource scheduling method and device based on priority relation
CN104065684A (en) Information processing method, electronic device and terminal device
CN110071879A (en) Method for message transmission, terminal device and 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