CN105871660A - Quality detection method and equipment - Google Patents
Quality detection method and equipment Download PDFInfo
- Publication number
- CN105871660A CN105871660A CN201610390882.6A CN201610390882A CN105871660A CN 105871660 A CN105871660 A CN 105871660A CN 201610390882 A CN201610390882 A CN 201610390882A CN 105871660 A CN105871660 A CN 105871660A
- Authority
- CN
- China
- Prior art keywords
- nodal point
- data
- response data
- secondary nodal
- service equipment
- 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
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)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a quality detection method applied to service equipment. The service equipment is arranged between a first node and a second node in a network. The method comprises the steps that request data received from the first node and first response data returned from the second node are recorded; the recorded request data received from the first node is played back to the second node, and second response data returned from the second node is received; the first response data and the second response data are compared, and unmatched data is processed. The invention further discloses the service equipment. By means of the quality detection method and the service equipment, data errors can be automatically detected, and the data detection quantity is greatly increased.
Description
Technical field
The present invention relates to computer communication network technical field, particularly to a kind of quality determining method and
Equipment.
Background technology
In manufacturing industry includes Software Industry, quality is one of important criterion of product.Quality testing work
Make to cover each link in process of producing product.The process to each link and output is needed to carry out an acceptance inspection.
In prior art, a kind of common quality determining method is, manually structure inputs data, manually performs
Operation, carries out macroscopy to result.Briefly, it is simply that be manually entered detection data in terminal, also simultaneously
Need in server end audit log, at the data-base content that database side inspection is read.
As can be seen here, existing quality determining method manual operation puts into too much, and detection data are limited.
Summary of the invention
It is an object of the invention to provide a kind of quality determining method and equipment, it is possible to automatic data-detection is wrong
By mistake, it is greatly improved the detection limit of data.
For achieving the above object, the invention provides a kind of quality determining method, the service of being applied to sets
Standby, this service equipment arranges in a network between primary nodal point and secondary nodal point, and the method includes:
Record the request data received from primary nodal point, and the first number of responses returned from secondary nodal point
According to;
The request data received from primary nodal point that playback is recorded is to secondary nodal point, and receives from second
The second response data that node returns;
First response data and the second response data are contrasted, unmatched data are processed.
For achieving the above object, present invention also offers a kind of service equipment, this service equipment is arranged
In a network between primary nodal point and secondary nodal point, including:
Recording elements, for recording the request data received from primary nodal point, and returns from secondary nodal point
The first response data returned;
Playback unit, the request data received from primary nodal point recorded for playback to secondary nodal point,
And receive the second response data returned from secondary nodal point;
Contrast unit, for contrasting the first response data and the second response data, to unmatched
Data process.
In sum, the embodiment of the present invention provide quality determining method, primary nodal point in a network and
Arranging service equipment between secondary nodal point, this service equipment has recording, playback and the function of correction data,
As long as opening, can record, play back and contrasting, not increase the additional workload of tester, detection is complete
Face is accurate.
Accompanying drawing explanation
The schematic flow sheet of a kind of quality determining method that Fig. 1 provides for the embodiment of the present invention.
Fig. 2 is the structural representation disposing the service equipment with recording, playback and comparing function in a network
Figure.
The structure of the service equipment corresponding to above-mentioned quality determining method that Fig. 3 provides for the embodiment of the present invention
Schematic diagram.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, develop simultaneously referring to the drawings
Embodiment, is described in further detail scheme of the present invention.
The quality determining method that the present invention provides, is arranged between primary nodal point and secondary nodal point in a network
Service equipment, this service equipment has recording, playback and the function of correction data, it is possible to configure at node
During change, the wrong data caused due to node configuration variation is detected.The invention provides one
Almost without the quality determining method of cost, as long as opening, can record and playing back contrast.Do not increase test
The additional workload of personnel.Detection results is good.
Specifically, the invention discloses a kind of quality determining method, be applied to service equipment, this service sets
Standby arranging in a network between primary nodal point and secondary nodal point, its schematic flow sheet is as it is shown in figure 1, the party
Method includes:
Step 11, record the request data that receives from primary nodal point, and the returned from secondary nodal point
One response data.
Wherein, the request data received from primary nodal point of described recording is saved in the first specified path;
First response data from secondary nodal point return of described recording is saved in the second specified path.
In this step, receive, at service equipment designated port, the request data that primary nodal point sends, and by institute
State request data and be forwarded to secondary nodal point;The first response data that secondary nodal point returns is forwarded to first segment
Point.
The request data received from primary nodal point that step 12, playback are recorded is to secondary nodal point, and connects
Receive the second response data returned from secondary nodal point.
This step particularly as follows:
S121, the number of request received from primary nodal point recorded according to the first specified path information reading
According to;
S122, the request data of reading is sent to secondary nodal point;
S123, preserve from secondary nodal point return the second response data to the 3rd specified path.
Step 13, the first response data and the second response data are contrasted, unmatched data are entered
Row processes.
The method farther includes: the initial and dwell time that record is recorded;And primary nodal point and second
The IP address of node and port numbers;And primary nodal point and the version information of secondary nodal point when recording.
The method farther includes: the initial and dwell time of record playback;And primary nodal point during playback
Version information with secondary nodal point;And versions of data during playback.
Further, the method also includes: when node configuration variation, playback recorded from first segment
The request data that point receives is to secondary nodal point, and receives the 3rd response data returned from secondary nodal point;
Second response data and the 3rd response data are contrasted, unmatched data are processed.
For understanding the explanation present invention, concrete scene is set forth below and is described in detail.
Fig. 2 is the structural representation disposing the service equipment with recording, playback and comparing function in a network
Figure.Service equipment can be deployed between terminal and server, and now, terminal is as primary nodal point, clothes
Business device is as secondary nodal point.Service equipment can also be deployed between server and data base, now, and clothes
Business device is as primary nodal point, and data base is as secondary nodal point.
In the present invention, the deployment way change of network, the configuration variation of node, and the version change of node
Change etc., response data all may be caused to change, by the service equipment contrast to response data, so that it may
To determine whether response data has problems, thus difficulty action accomplishment detection.
In the embodiment of the present invention, it is assumed that server version is become server_ver2 from server_ver1.Service
Deployed with devices is between terminal and server.
Terminal 1 sends request, residue stock's number information of requesting query commodity to service equipment.
Service equipment receives this request at 9090 ports, and forwards the request to server.
After server receives this request, inquire about data base with version server_ver1, remaining certain commodity
Remaining stock's number 10 returns to service equipment.
Residue stock's number 10 of certain commodity is returned to terminal 1 at 9090 ports by service equipment.
1) starting the recording service of service equipment, monitor 9090 ports, terminal 1 is sent by service equipment
Request record, can preserve with file form, such as, be saved in file
data_time_ver1_Request_list-1.The service equipment residue stock to certain commodity that server returns
Several 10 record, and are saved in file data_time_ver1_Response.File
Data content in data_time_ver1_Response is as the first response data.
2) the server software version server_ver2 reaching the standard grade new is assumed.The request content recorded is in redaction
Server_ver2 plays back.Particularly as follows:
Start service equipment playback service, input read path data_time_ver1_Request_list-1,
Read the request content in data_time_ver1_Request_list-1 file;Then certain commodity will be inquired about
Residue stock's number information request content be sent to server;
After server receives this request, inquire about data base with redaction server_ver2, by certain commodity
Residue stock's number 8 returns to service equipment, is saved in the file data_time_ver2_ of service equipment
Response.Data content in file data_time_ver2_Response is as the second response data.
3) contrast service is started, by data_time_ver1_Response and data_time_ver2_
Data content in Response contrasts, and finds that the data content in two files does not mates,
In data_time_ver1_Response, residue stock's number of certain commodity is 10, data_time_ver2_
In Response, residue stock's number of certain commodity is 8, illustrates that the data of two versions are inconsistent, represents
Upgrading has influence on data function.Otherwise, if the first response data and the second response data one before and after Sheng Ji
Cause, i.e. residue stock's number of certain commodity is all 10, then the data of two versions of explanation=consistent, represents
Upgrading does not have influence on data function.
It should be noted that in actual applications, contrast is packet content based on agreement, specifically
It is the contrast between byte, if byte is different, further determines that the data content corresponding to this byte not
With.
It addition, service equipment carries out record to recording and playback information.
Initial and the dwell time that such as record is recorded;
Also record the upstream and downstream information of this service equipment, including the IP ground of the terminal being positioned at service equipment upstream
Location and port numbers, and it is positioned at IP address and the port numbers of the server in service equipment downstream;
Also record version information and the version information server_ver1 of server of terminal when recording.
Service equipment also records the initial of playback and dwell time;
Also record version information and the version information server_ver2 of server of terminal when playing back;
Also versions of data during record playback.
It should be noted that in the middle of the initial and dwell time recorded, can record multiple come self terminal
Request data, and multiple response data from server.In like manner, in the initial of playback and stopping
In the middle of time, can play back multiple come self terminal request data, carry out response process for server.
Embodiment two
In the present invention, the deployment way change of network, the configuration variation of node, and the version change of node
Change etc., response data all may be caused to change, therefore, before and after node configuration variation, be played back to the
The request data of two nodes, after the process of secondary nodal point, the response data being likely to be obtained also differs.
It is to say, the scheme of this enforcement can be:
Record the request data received from primary nodal point, and the first number of responses returned from secondary nodal point
According to;
The request data received from primary nodal point that playback is recorded is to secondary nodal point, and receives from second
The second response data that node returns;
When node configuration variation, the request data received from primary nodal point that playback is recorded is to second
Node, and receive the 3rd response data returned from secondary nodal point;
Second response data and the 3rd response data are contrasted, unmatched data are processed.
Thus realize playing back the contrast between the response data obtained.It should be noted that the present invention is permissible
The request data received from primary nodal point recorded repeatedly is played back, can apply according to reality
The response data that the response data of recording and playback obtain is contrasted by scene, it is also possible to repeatedly playing back
Contrast between the response data obtained, it is achieved quality testing.
Embodiment three
The present invention program supports many concurrent requests, and the most multiple terminals send request, request to server simultaneously
Content in data base.Assume that terminal 1, terminal 2 and terminal 3 send request to server simultaneously, this
Invention arranges a service equipment between terminal and server, and terminal 1, terminal 2 and terminal 3 are carried certainly
The IP address of body and port numbers send request to the designated port 9090 of service equipment simultaneously, recording interior
Appearance can be saved in different files.
Based on same inventive concept, present invention also offers a kind of service equipment, this service equipment is arranged
In a network between primary nodal point and secondary nodal point, structural representation is as it is shown on figure 3, include:
Recording elements 301, for recording the request data received from primary nodal point, and from second section
The first response data that point returns;
Playback unit 302, the request data received from primary nodal point recorded for playback is to second
Node, and receive the second response data returned from secondary nodal point;
Contrast unit 303, for contrasting the first response data and the second response data, to not
The data joined process.
Described playback unit 302 is additionally operable to, when node configuration variation, playback recorded from first segment
The request data that point receives is to secondary nodal point, and receives the 3rd response data returned from secondary nodal point;
Described contrast unit 303 is additionally operable to, and the second response data and the 3rd response data is contrasted,
Unmatched data are processed.
The beneficial effects of the present invention is:
One, substantial amounts of manpower of having saved, the result data of recording can carry out Version Control and preservation.Follow-up
Recurrence and the contrast of different editions can be carried out
Two, because being contrast based on protocol data bag content, so cannot show in user interface (UI)
The data shown, it is also possible to verify.Compensate for the deficiency of traditional detection.
Three, a kind of detection method almost without cost, as long as opening, can record and playing back contrast.No
Increase the additional workload of tester.Detection results is good.
The above, only presently preferred embodiments of the present invention, it is not intended to limit the protection of the present invention
Scope.All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement made
Deng, should be included within the scope of the present invention.
Claims (9)
1. a quality determining method, is applied to service equipment, and this service equipment arranges in a network first
Between node and secondary nodal point, the method includes:
Record the request data received from primary nodal point, and the first number of responses returned from secondary nodal point
According to;
The request data received from primary nodal point that playback is recorded is to secondary nodal point, and receives from second
The second response data that node returns;
First response data and the second response data are contrasted, unmatched data are processed.
2. the method for claim 1, it is characterised in that the method farther includes:
The request data received from primary nodal point of described recording is saved in the first specified path;
First response data from secondary nodal point return of described recording is saved in the second specified path.
3. method as claimed in claim 2, it is characterised in that described playback recorded from first segment
The request data that receives of point is to secondary nodal point, and receives the second response data of returning from secondary nodal point
Method includes:
The request data received from primary nodal point recorded is read according to the first specified path information;
The request data of reading is sent to secondary nodal point;
Preserve from the second response data of secondary nodal point return to the 3rd specified path.
4. the method for claim 1, it is characterised in that receive the at service equipment designated port
The request data that one node sends, and described request data is forwarded to secondary nodal point;Secondary nodal point is returned
The first response data returned is forwarded to primary nodal point.
5. the method for claim 1, it is characterised in that the method farther includes: record record
Initial and the dwell time of system;And the IP address of primary nodal point and secondary nodal point and port numbers;And record
Primary nodal point and the version information of secondary nodal point time processed.
6. the method for claim 1, it is characterised in that the method farther includes: record back
Initial and the dwell time put;And primary nodal point and the version information of secondary nodal point during playback;And return
Versions of data when putting.
7. the method for claim 1, it is characterised in that the method also includes: configure at node
During change, the request data received from primary nodal point that playback is recorded to secondary nodal point, and receive from
The 3rd response data that secondary nodal point returns;Second response data and the 3rd response data are contrasted,
Unmatched data are processed.
8. a service equipment, this service equipment arranges in a network between primary nodal point and secondary nodal point,
Including:
Recording elements, for recording the request data received from primary nodal point, and returns from secondary nodal point
The first response data returned;
Playback unit, the request data received from primary nodal point recorded for playback to secondary nodal point,
And receive the second response data returned from secondary nodal point;
Contrast unit, for contrasting the first response data and the second response data, to unmatched
Data process.
9. service equipment as claimed in claim 8, it is characterised in that
Described playback unit is additionally operable to, and when node configuration variation, what playback was recorded connects from primary nodal point
The request data received is to secondary nodal point, and receives the 3rd response data returned from secondary nodal point;
Described contrast unit is additionally operable to, and the second response data and the 3rd response data is contrasted, to not
The data of coupling process.
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 true CN105871660A (en) | 2016-08-17 |
CN105871660B 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) |
Cited By (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 |
CN108650150A (en) * | 2018-05-11 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of data verification method and device |
CN110166511A (en) * | 2018-02-13 | 2019-08-23 | 北京嘀嘀无限科技发展有限公司 | Data processing method and system |
CN111045952A (en) * | 2019-12-16 | 2020-04-21 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716945A (en) * | 2004-06-30 | 2006-01-04 | 华为技术有限公司 | Method for detecting medium flow service quality |
US20090271653A1 (en) * | 2006-04-10 | 2009-10-29 | Huawei Technologies Co., Ltd. | Method and system for data synchronization |
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 |
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 (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1716945A (en) * | 2004-06-30 | 2006-01-04 | 华为技术有限公司 | Method for detecting medium flow service quality |
US20090271653A1 (en) * | 2006-04-10 | 2009-10-29 | Huawei Technologies Co., Ltd. | Method and system for data synchronization |
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 |
CN104954331A (en) * | 2014-03-27 | 2015-09-30 | 杭州迪普科技有限公司 | Login authentication configuration device and method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040433A (en) * | 2017-05-10 | 2017-08-11 | 福建网龙计算机网络信息技术有限公司 | A kind of automated testing method and system |
CN110166511A (en) * | 2018-02-13 | 2019-08-23 | 北京嘀嘀无限科技发展有限公司 | Data processing method and system |
CN108650150A (en) * | 2018-05-11 | 2018-10-12 | 阿里巴巴集团控股有限公司 | A kind of data verification method and device |
CN108650150B (en) * | 2018-05-11 | 2022-07-05 | 创新先进技术有限公司 | Data verification method and device |
CN111045952A (en) * | 2019-12-16 | 2020-04-21 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
CN111045952B (en) * | 2019-12-16 | 2023-03-28 | 广州品唯软件有限公司 | Software testing method, flow playback device, terminal equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105871660B (en) | 2019-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108762803B (en) | Configuration management method, device, terminal equipment and storage medium | |
CN111045756B (en) | Method, apparatus, computing device and medium for generating interface service | |
CN112559361A (en) | Flow playback method, device, equipment and computer readable medium | |
CN105871660A (en) | Quality detection method and equipment | |
KR20200089749A (en) | Blockchain-based data verification method and apparatus, and electronic device | |
WO2021135809A1 (en) | Testing method, device, terminal apparatus, and storage medium | |
CN110851308A (en) | Test method, test device, electronic equipment and storage medium | |
CN109656806A (en) | A kind of the playback test method and device of interface data | |
CN111177003A (en) | Test method, device, system, electronic equipment and storage medium | |
CN108170447A (en) | The on-line automatic method for burn-recording of chip and system | |
US20140278244A1 (en) | System and method for providing user guidance for electronic device processing | |
CN110196800B (en) | Distributed transaction testing method, device and system | |
CN112202633B (en) | Block chain network testing method and device, electronic equipment and readable storage medium | |
CN106557419B (en) | Program testing method and device | |
CN101510172B (en) | Test system and method | |
CN114625645A (en) | Service testing method and device, electronic equipment and readable storage medium | |
CN114116801A (en) | Data list checking method and device | |
CN114064475A (en) | Cloud native application testing method, device, equipment and storage medium | |
CN110058995B (en) | Database testing method and system capable of avoiding interference of database types | |
CN113132522A (en) | Test method, device, server and medium | |
CN112651716A (en) | Data processing method, device and storage medium | |
CN114691473A (en) | Test method, test device and electronic equipment | |
CN112905437A (en) | Method and device for testing case and storage medium | |
CN115408298A (en) | Test method, device and system | |
CN110879779A (en) | Joint debugging test method and system |
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 |