CN105871660B - A kind of quality determining method and equipment - Google Patents
A kind of quality determining method and equipment Download PDFInfo
- Publication number
- CN105871660B CN105871660B CN201610390882.6A CN201610390882A CN105871660B CN 105871660 B CN105871660 B CN 105871660B CN 201610390882 A CN201610390882 A CN 201610390882A CN 105871660 B CN105871660 B CN 105871660B
- Authority
- CN
- China
- Prior art keywords
- node
- data
- response data
- response
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of quality determining methods, applied to service equipment, the service equipment is arranged in a network between first node and second node, this method comprises: recording the request data received from first node, and the first response data returned from second node;The request data that the slave first node that playback is recorded receives receives the second response data returned from second node to second node;First response data and the second response data are compared, unmatched data are handled.The invention also discloses a kind of service equipments.Error in data can automatically detect using the present invention, greatly improve the detection limit of data.
Description
Technical field
The present invention relates to computer communication network technical field, in particular to a kind of quality determining method and equipment.
Background technique
It include in Software Industry in manufacturing industry, quality is one of important measurement standard of product.Quality detection work covering
Each link in process of producing product.It needs to carry out an acceptance inspection to the process and output of each link.
In the prior art, a kind of common quality determining method is to construct input data manually, manually perform operation, right
As a result visual inspection is carried out.Briefly, it exactly is manually entered detection data in terminal, while also needed in server end check day
Will checks read data-base content in database side.
It can be seen that existing quality determining method manual operation investment is excessive, detection data is limited.
Summary of the invention
The purpose of the present invention is to provide a kind of quality determining method and equipment, can automatically detect error in data, significantly
Improve the detection limit of data.
For achieving the above object, the present invention provides a kind of quality determining methods, are applied to service equipment, the service
Equipment is arranged in a network between first node and second node, this method comprises:
Record the request data received from first node, and the first response data returned from second node;
The request data that the slave first node that playback is recorded receives is received and is returned from second node to second node
The second response data;
First response data and the second response data are compared, unmatched data are handled.
For achieving the above object, the present invention also provides a kind of service equipment, which is arranged in a network
Between first node and second node, comprising:
Recording elements, for recording the request data received from first node, and first returned from second node
Response data;
Playback unit for playing back request data that the slave first node recorded receives to second node, and receives
The second response data returned from second node;
Comparison unit carries out unmatched data for comparing the first response data and the second response data
Processing.
In conclusion quality determining method provided in an embodiment of the present invention, first node and second node in a network
Between service equipment is set, the service equipment have the function of record, playback and correlation data, if open, can record, return
It puts and compares, do not increase the additional workload of tester, detection is comprehensively accurate.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of quality determining method provided in an embodiment of the present invention.
Fig. 2 is the structural schematic diagram for the service equipment that deployment in a network has recording, playback and comparing function.
Fig. 3 is the structural schematic diagram of the service equipment provided in an embodiment of the present invention corresponding to above-mentioned quality determining method.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, right hereinafter, referring to the drawings and the embodiments,
Scheme of the present invention is described in further detail.
Quality determining method provided by the invention, setting service is set between first node and second node in a network
Standby, which has the function of recording, playback and correlation data, can will be matched due to node in node configuration variation
Setting wrong data caused by variation detected.The present invention provides a kind of quality determining methods of almost cost free, as long as opening
It opens, it can recording and playback comparison.The additional workload of tester is not increased.Detection effect is good.
Specifically, the invention discloses a kind of quality determining methods, are applied to service equipment, which is arranged in net
In network between first node and second node, flow diagram as shown in Figure 1, this method comprises:
The request data that step 11, recording are received from first node, and the first number of responses returned from second node
According to.
Wherein, the request data that the slave first node of the recording receives is saved in the first specified path;
The first response data that the slave second node of the recording returns is saved in the second specified path.
In this step, the request data that first node is sent is received in service equipment designated port, and by the number of request
According to being forwarded to second node;The first response data that second node returns is forwarded to first node.
The request data that the slave first node that step 12, playback are recorded receives is received to second node from second
The second response data that node returns.
The step specifically:
S121, the request data that the slave first node recorded receives is read according to the first specified path information;
S122, the request data of reading is sent to second node;
S123, the second response data for being returned from second node of preservation to third specified path.
Step 13 compares the first response data and the second response data, handles unmatched data.
This method further comprises: recording the starting and dwell time of recording;And the IP of first node and second node
Address and port numbers;And record when first node and second node version information.
This method further comprises: recording the starting and dwell time of playback;And first node and the second section when playback
The version information of point;And versions of data when playback.
Further, this method further include: in node configuration variation, play back what the slave first node recorded received
Request data receives the third response data returned from second node to second node;Second response data and third are rung
It answers data to compare, unmatched data is handled.
It is of the invention to clearly illustrate, concrete scene is set forth below and is described in detail.
Fig. 2 is the structural schematic diagram for the service equipment that deployment in a network has recording, playback and comparing function.Service is set
Standby to be deployed between terminal and server, at this point, terminal is as first node, server is as second node.Service is set
Standby to be deployed between server and database, at this point, server is as first node, database is as second node.
In the present invention, the deployment way of network changes, the configuration variation of node and the version variation of node etc., all
It may cause response data variation, the comparison by service equipment to response data, so that it may determine that response data whether there is
Problem, to complete quality testing.
In the embodiment of the present invention, it is assumed that server version becomes server_ver2 from server_ver1.Service equipment portion
Administration is between terminal and server.
Terminal 1 sends to service equipment and requests, and the remaining inventory information of certain commodity is inquired in request.
Service equipment receives the request in 9090 ports, and forwards the request to server.
After server receives the request, database is inquired with version server_ver1, by the remaining inventory of certain commodity
10 return to service equipment.
The remaining inventory 10 of certain commodity is returned to terminal 1 in 9090 ports by service equipment.
1) the recording service for starting service equipment, monitors 9090 ports, and the request that service equipment sends terminal 1 is recorded
System, can be saved, such as be saved in file data_time_ver1_Request_list-1 in the form of file.Clothes
Business equipment records the remaining inventory 10 for certain commodity that server returns, and is saved in file data_time_ver1_
Response.Data content in file data_time_ver1_Response is as the first response data.
2) assume online new server software version server_ver2.The request content of recording is in new version server_
It is played back in ver2.Specifically:
Start service equipment playback service, inputs read path data_time_ver1_Request_list-1, read
Request content in data_time_ver1_Request_list-1 file;Then the remaining inventory of certain commodity will be inquired
The request content of information is sent to server;
After server receives the request, database is inquired with new version server_ver2, by the remaining inventory of certain commodity
Number 8 returns to service equipment, is saved in the file data_time_ver2_Response of service equipment.File data_
Data content in time_ver2_Response is as the second response data.
3) starting comparison service, will be in data_time_ver1_Response and data_time_ver2_Response
Data content compares, it is found that the data content in two files mismatches, certain in data_time_ver1_Response
The remaining inventory of commodity is that the remaining inventory of certain commodity in 10, data_time_ver2_Response is 8, illustrates two
The data of version are inconsistent, and the upgrading showed influences data function.Otherwise, if upgrading front and back the first response data and second
Response data is consistent, i.e. the remaining inventory of certain commodity is all 10, then illustrates data=consistent, upgrading showed of two versions
Data function is not influenced.
It should be noted that in practical applications, comparison is the packet content based on agreement, specifically between byte
Comparison, if byte is different, further determines that the difference of data content corresponding to the byte.
In addition, service equipment records recording and playback information.
Such as record the starting and dwell time of recording;
The upstream and downstream information for also recording the service equipment, IP address and port including being located at the terminal of service equipment upstream
Number, and the IP address and port numbers of the server positioned at service equipment downstream;
The version information of terminal and the version information server_ver1 of server when also record is recorded.
Service equipment also records the starting and dwell time of playback;
The version information of terminal and the version information server_ver2 of server when also record plays back;
Versions of data when also record plays back.
It should be noted that in the starting and dwell time of recording, can record it is multiple come self terminal number of request
According to and multiple response datas from server.Similarly, it in the starting of playback and dwell time, can play back multiple
Carry out the request data of self terminal, so that server carries out response processing.
Embodiment two
In the present invention, the deployment way of network changes, the configuration variation of node and the version variation of node etc., all
It may cause response data variation, therefore, before and after node configuration variation, be played back to the request data of second node, by the
After the processing of two nodes, the response data being likely to be obtained is not also identical.That is, the scheme of this implementation can be with are as follows:
Record the request data received from first node, and the first response data returned from second node;
The request data that the slave first node that playback is recorded receives is received and is returned from second node to second node
The second response data;
In node configuration variation, request data that the slave first node recorded receives is played back to second node, and
Receive the third response data returned from second node;
Second response data and third response data are compared, unmatched data are handled.
To realize the comparison between response data that playback obtains.It should be noted that the present invention can be to being recorded
The request data that receives of slave first node repeatedly played back, can be according to practical application scene by the response data of recording
The response data obtained with playback compares, and can also compare between obtained response data repeatedly playing back, and realizes
Quality testing.
Embodiment three
The present invention program supports more concurrent requests, i.e., multiple terminals send to server request simultaneously, in requested database
Content.It is requested assuming that terminal 1, terminal 2 and terminal 3 are sent to server simultaneously, the present invention is set between terminal and server
A service equipment is set, the IP address and port numbers that terminal 1, terminal 2 and terminal 3 carry itself are simultaneously to the designated ends of service equipment
Mouth 9090 sends request, and the content of recording can be saved in different files.
Based on same inventive concept, the present invention also provides a kind of service equipment, which is arranged in a network
Between first node and second node, structural schematic diagram is as shown in Figure 3, comprising:
Recording elements 301, for recording the request data received from first node, and returned from second node the
One response data;
Playback unit 302 for playing back request data that the slave first node recorded receives to second node, and connects
Receive the second response data returned from second node;
Comparison unit 303, for the first response data and the second response data to be compared, to unmatched data into
Row processing.
The playback unit 302 is also used to, and in node configuration variation, plays back what the slave first node recorded received
Request data receives the third response data returned from second node to second node;
The comparison unit 303 is also used to, and the second response data and third response data is compared, to unmatched
Data are handled.
The beneficial effects of the present invention are:
One, manpower largely has been saved, the result data of recording can carry out Version Control and preservation.It is subsequent to carry out difference
The recurrence and comparison of version
Two, because being the comparison based on protocol data packet content, the data that can not be shown in user interface (UI),
It can be verified.Compensate for the deficiency of traditional detection.
Three, a kind of detection method of almost cost free can recording and playback comparison as long as opening.Do not increase tester
The additional workload of member.Detection effect is good.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention
Within the scope of.
Claims (7)
1. a kind of quality determining method, is applied to service equipment, which is arranged first node and the second section in a network
Between point, this method comprises:
Record the request data received from first node, and the first response data returned from second node;
Request data that the slave first node recorded receives is played back to second node, and receives the returned from second node
Two response datas;
First response data and the second response data are compared, and pass through the ratio of the first response data and the second response data
To determining response data with the presence or absence of problem to realize quality testing;
In the node configuration variation of first node or second node, the number of request that the slave first node recorded receives is played back
According to giving second node, and receive the third response data that returns from second node;
Second response data and third response data are compared, and pass through the ratio of the second response data and third response data
To determining response data with the presence or absence of problem to realize quality testing.
2. the method as described in claim 1, which is characterized in that this method further comprises:
The request data that the slave first node of the recording receives is saved in the first specified path;
The first response data that the slave second node of the recording returns is saved in the second specified path.
3. method according to claim 2, which is characterized in that the request for playing back the slave first node recorded and receiving
Data are to second node, and the method for receiving the second response data returned from second node includes:
The request data that the slave first node recorded receives is read according to the first specified path information;
The request data of reading is sent to second node;
The second response data for returning from second node is saved to third specified path.
4. the method as described in claim 1, which is characterized in that receive asking for first node transmission in service equipment designated port
Data are sought, and the request data is forwarded to second node;The first response data that second node returns is forwarded to first
Node.
5. the method as described in claim 1, which is characterized in that this method further comprises: recording the starting and stopping of recording
Time;And the IP address and port numbers of first node and second node;And record when first node and second node version
This information.
6. the method as described in claim 1, which is characterized in that this method further comprises: recording the starting and stopping of playback
Time;And playback when first node and second node version information;And versions of data when playback.
7. a kind of service equipment, service equipment setting is in a network between first node and second node, comprising:
Recording elements, for recording the request data received from first node, and the first response from second node return
Data;
Playback unit for playing back request data that the slave first node recorded receives to second node, and is received from the
The second response data that two nodes return;
Comparison unit for comparing the first response data and the second response data, and passes through the first response data and the
The comparison of two response datas determines response data with the presence or absence of problem to realize quality testing;
The playback unit is also used to, in the node configuration variation of first node or second node, play back recorded from the
The request data that one node receives receives the third response data returned from second node to second node;
The comparison unit is also used to, and the second response data and third response data are compared, and passes through the second number of responses
Determine response data with the presence or absence of problem to realize quality testing according to the comparison with third response data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610390882.6A CN105871660B (en) | 2016-06-06 | 2016-06-06 | A kind of quality determining method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610390882.6A CN105871660B (en) | 2016-06-06 | 2016-06-06 | A kind of quality determining method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105871660A CN105871660A (en) | 2016-08-17 |
CN105871660B true CN105871660B (en) | 2019-07-30 |
Family
ID=56675835
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610390882.6A Active CN105871660B (en) | 2016-06-06 | 2016-06-06 | A kind of quality determining method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105871660B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040433A (en) * | 2017-05-10 | 2017-08-11 | 福建网龙计算机网络信息技术有限公司 | A kind of automated testing method and system |
CN110166511B (en) * | 2018-02-13 | 2022-07-01 | 北京嘀嘀无限科技发展有限公司 | Data processing method and system |
CN115118625B (en) * | 2018-05-11 | 2023-06-27 | 创新先进技术有限公司 | Data verification method and device |
CN111045952B (en) * | 2019-12-16 | 2023-03-28 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102915270A (en) * | 2012-09-14 | 2013-02-06 | 福建升腾资讯有限公司 | Method for recording storage I/O (input/output) requirement and verifying pressure simulation |
CN103365779A (en) * | 2013-07-09 | 2013-10-23 | 广东欧珀移动通信有限公司 | Software test method and system |
CN103580945A (en) * | 2012-08-07 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Method and device for generating testing data for complex service system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100493069C (en) * | 2004-06-30 | 2009-05-27 | 华为技术有限公司 | Method for detecting medium flow service quality |
CN100531055C (en) * | 2006-04-10 | 2009-08-19 | 华为技术有限公司 | Data synchronous system and its method |
CN104954331A (en) * | 2014-03-27 | 2015-09-30 | 杭州迪普科技有限公司 | Login authentication configuration device and method |
-
2016
- 2016-06-06 CN CN201610390882.6A patent/CN105871660B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103580945A (en) * | 2012-08-07 | 2014-02-12 | 百度在线网络技术(北京)有限公司 | Method and device for generating testing data for complex service system |
CN102915270A (en) * | 2012-09-14 | 2013-02-06 | 福建升腾资讯有限公司 | Method for recording storage I/O (input/output) requirement and verifying pressure simulation |
CN103365779A (en) * | 2013-07-09 | 2013-10-23 | 广东欧珀移动通信有限公司 | Software test method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105871660A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105871660B (en) | A kind of quality determining method and equipment | |
CN112559361A (en) | Flow playback method, device, equipment and computer readable medium | |
CN110851308A (en) | Test method, test device, electronic equipment and storage medium | |
CN109495306A (en) | A kind of expansion method and equipment of business network | |
US20070097872A1 (en) | Network connection apparatus testing method | |
CN108199921A (en) | The method, apparatus and storage medium of a kind of simulation test | |
CN112948271B (en) | Code testing method, device, equipment and storage medium | |
CN112190951B (en) | Method, device, equipment and storage medium for migrating operation data | |
CN111045942A (en) | Application testing method, system, storage medium and electronic equipment | |
CN110503982A (en) | A kind of method and relevant apparatus of voice quality detection | |
CN112202633B (en) | Block chain network testing method and device, electronic equipment and readable storage medium | |
CN112448757A (en) | Port occupation testing method and system, user terminal, background system and medium | |
CN112506771A (en) | Message comparison method and device | |
CN114064475A (en) | Cloud native application testing method, device, equipment and storage medium | |
CN101510172B (en) | Test system and method | |
CN110190980B (en) | System and method for supporting plug-in access to different blockchain alliance chain networks | |
CN110245065B (en) | Method and device for automatic test | |
CN115086214B (en) | System and method for detecting set, electronic equipment and storage medium | |
CN112948195B (en) | Interface testing method, device, electronic equipment and storage medium | |
CN110611678B (en) | Method for identifying message and access network equipment | |
CN109194541B (en) | Network testing method and system | |
KR102079785B1 (en) | computer system test method and apparatus | |
CN107689880B (en) | Method and device for tracking information | |
CN112100064A (en) | Software purchasing method, authentication node and purchaser node based on block chain | |
CN111901583A (en) | HDMI signal detection method and device and HDMI signal attenuator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |