CN103810085A - Method and device for performing module testing through data comparison - Google Patents

Method and device for performing module testing through data comparison Download PDF

Info

Publication number
CN103810085A
CN103810085A CN201210442406.6A CN201210442406A CN103810085A CN 103810085 A CN103810085 A CN 103810085A CN 201210442406 A CN201210442406 A CN 201210442406A CN 103810085 A CN103810085 A CN 103810085A
Authority
CN
China
Prior art keywords
data
module
return
base modules
return data
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
CN201210442406.6A
Other languages
Chinese (zh)
Other versions
CN103810085B (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210442406.6A priority Critical patent/CN103810085B/en
Publication of CN103810085A publication Critical patent/CN103810085A/en
Application granted granted Critical
Publication of CN103810085B publication Critical patent/CN103810085B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a method and a device for performing module testing through data comparison. The module testing method comprises the following steps of A, respectively sending more than one piece of sample data to a tested module and a standard module; B, determining first paired data from go-path data output by the tested module and the standard module, comparing the first paired data to output a first comparison log and forwarding go-path data output by the tested module and the standard module to a downstream module; C, determining second paired data from return-path data output by the downstream module, unifying the second paired data into return-path data with the same content and respectively returning the return-path data with the same content to the tested module and the standard module; D, comparing return-path data of the tested module with return-path data of the standard module so as to output a second comparison log. Through the above manner, the error troubleshooting efficiency during module testing can be improved.

Description

A kind of method and device that carries out module testing by comparing
[technical field]
The present invention relates to data processing technique, particularly a kind of method and device that carries out module testing by comparing.
[background technology]
The exploitation of software systems is progressive processes, and module or a system that exploitation completes may be found new problem in user uses, thereby needs to improve or upgrading.
After module upgrade, need to test the module after upgrading by a large amount of test datas, just can guarantee that the module after upgrading can correctly and stably be moved due function.
Separately the test module after upgrading is tested, need a large amount of test result of artificial judgment whether normal, not only inefficiency, and in the time that tester finds data exception, because the location of code error is very difficult, therefore need a lot of time could determine the abnormal reason producing.Visible, adopt in this way upgrading module is tested, low to wrong investigation efficiency.
[summary of the invention]
Technical matters to be solved by this invention is to provide a kind of device that carries out module testing by comparing, the mistake investigation efficiency when improving module testing.
The present invention is that the technical scheme that technical solution problem adopts is to provide a kind of device that carries out module testing by comparing, comprise: data transmission unit, for the sample data of one or more is sent to respectively to tested module and base modules, wherein said tested module and described base modules are processed described sample data respectively, and output separately go number of passes certificate; The first comparing unit, determines the first paired data for the number of passes certificate of going from described tested module and the output of described base modules, and described the first paired data is compared to export the first comparison daily record; Retransmission unit, for the number of passes certificate of going of described tested module and the output of described base modules is forwarded to downstream module, wherein said downstream module goes number of passes according to processing to what receive, and exports return data; Unified unit, for determining the second paired data from the return data of described downstream module output, be the identical return data of content by described the second paired data unification, and return data identical described content are back to respectively to described tested module and described base modules, wherein said tested module and described base modules are processed respectively the identical return data of described content, and output return data separately; The second comparing unit, compares daily record for the return data of the return data of described tested module and described base modules are compared to export second.
The preferred embodiment one of according to the present invention, described sample data comprises unique identification, and obtained by same sample data processing go number of passes according to and return data in all comprise the unique identification of described same sample data.
The preferred embodiment one of according to the present invention, the transmitting time stamp that described unique identification is described sample data.
The preferred embodiment one of according to the present invention, described the first contrast unit comprises: first extracts subelement, be used for removing journey extracting data unique identification from each of described tested module and the output of described base modules, using described unique identification and reception, this goes the index value of number of passes certificate to be kept in journey index database as this after going port numbers of number of passes certificate to merge; Determine subelement, for using described go two index values that journey index database mates respectively the corresponding number of passes that goes according to as the first paired data, and trigger comparer unit and carry out; Comparer unit, for comparing to export the first comparison daily record to described the first paired data.
The preferred embodiment one of according to the present invention, described unified unit comprises: second extracts subelement, for each the return extracting data unique identification from described downstream module output, after merging, described unique identification and the port numbers that receives these return data be kept in return index database as the index value of these return data; Return to subelement, distinguish corresponding return data as the second paired data for two index values that described return index database is mated, and the return data content receiving after in described the second paired data is copied as to the return data content first receiving, and the second paired data that content is unified is back to respectively described tested module and described base modules.
The present invention also provides a kind of method of carrying out module testing by comparing, comprise: the sample data of one or more is sent to respectively tested module and base modules by A., wherein said tested module and described base modules are processed described sample data respectively, and output separately go number of passes certificate; B. from the output of described tested module and described base modules go number of passes according to determine the first paired data, and described the first paired data is compared to export the first comparison daily record, and, the number of passes certificate of going of described tested module and the output of described base modules is forwarded to downstream module, wherein said downstream module goes number of passes according to processing to what receive, and exports return data; C. from the return data of downstream module output, determine the second paired data, be the identical return data of content by described the second paired data unification, and return data identical described content are back to respectively to described tested module and described base modules, wherein said tested module and described base modules are processed respectively the identical return data of described content, and output return data separately; D. the return data of the return data of described tested module and described base modules are compared to export the second comparison daily record.
The preferred embodiment one of according to the present invention, described sample data comprises unique identification, and obtained by same sample data processing go number of passes according to and return data in all comprise the unique identification of described same sample data.
The preferred embodiment one of according to the present invention, the transmitting time stamp that described unique identification is described sample data.
The preferred embodiment one of according to the present invention, comprise from the step of removing definite the first paired data number of passes certificate of described tested module and the output of described base modules: each from described tested module and described base modules is removed journey extracting data unique identification, using described unique identification and reception, this goes the index value of number of passes certificate to be kept in journey index database as this after going port numbers of number of passes certificate to merge; Using described go two index values mating in journey index database respectively the corresponding number of passes that goes according to as the first paired data.
The preferred embodiment one of according to the present invention, described step C comprises: from each return extracting data unique identification of described downstream module output, after described unique identification and the port numbers that receives these return data merge, be kept in return index database as the index value of these return data; Using return data corresponding two index values difference of mating in described return index database as the second paired data, and the return data content receiving after in described the second paired data is copied as to the return data content first receiving, and the second paired data that content is unified is back to respectively described tested module and described base modules.
As can be seen from the above technical solutions, the present invention is except can recording and compare the return data of tested module or base modules, any one data stream that can also call before downstream module tested module and base modules records and compares, therefore, two comparison daily records of exporting by the present invention, tester can be well from data difference the code to tested module position, thereby the mistake investigation efficiency while improving module testing.
[accompanying drawing explanation]
Fig. 1 is the structural representation block diagram that carries out the embodiment of the device of module testing in the present invention by comparing;
Fig. 2 is the structural representation block diagram of the embodiment of the first comparing unit 201 in the present invention;
Fig. 3 is the structural representation block diagram of the embodiment of unified unit 203 in the present invention;
Fig. 4 is the schematic flow sheet that carries out the embodiment of the method for module testing in the present invention by comparing.
[embodiment]
In order to make the object, technical solutions and advantages of the present invention clearer, describe the present invention below in conjunction with the drawings and specific embodiments.
The present invention compares the mistake that may exist the module after upgrading by the data that the resume module after the data that obtain of resume module before upgrading and upgrading is obtained and investigates, therefore in the following description, module before upgrading is called as base modules, and the module after upgrading is called as tested module.
Please refer to Fig. 1, Fig. 1 is the structural representation block diagram that carries out the embodiment of the device of module testing in the present invention by comparing.As shown in Figure 1, this device comprises: initial testing module 100 and channel module 200.Wherein initial testing module 100 comprises data transmission unit 101 and the second comparing unit 102, and channel module 200 comprises the first comparing unit 201, retransmission unit 202 and unified unit 203.
Wherein, data transmission unit 101, for being sent to respectively tested module and base modules by the sample data of one or more.Article one, sample data is that tested module and base modules complete the needed primitive of data processing one time.The function of for example tested module and base modules is that the page is classified, and it completes the URL address that needed primitive of data processing is the page, URL address that sample data is exactly a page.
Every sample data that data transmission unit 101 sends includes unique mark, and this mark can be encapsulated in the packet header of packet.For example, in the Article 1 sample data that data transmission unit 101 sends, comprise numeral 1, comprise numeral 2 in Article 2 sample data, numeral 1 is exactly the unique identification of Article 1 sample data, and numeral 2 is exactly the unique identification of Article 2 sample data.As a kind of embodiment, data transmission unit 101, in the time sending each sample data, can stab the unique identification as this sample data using the transmitting time of each sample data.For example data transmission unit 101 is in the time sending Article 1 sample data, be encapsulated in the packet header of its packet using the transmitting time stamp of Article 1 sample data as this sample data unique identification, while sending Article 2 sample data, be encapsulated in the packet header of its packet using the transmitting time stamp of Article 2 sample data as the unique identification of this sample data, by that analogy.In the present invention, obtained by identical sample data go number of passes according to or return data, all comprise the unique identification of these same sample data.Go follow-up being introduced of implication of number of passes certificate or return data.
Tested module and base modules are processed the sample data receiving respectively, and output separately go number of passes certificate.What tested module and base modules were exported goes number of passes certificate, is the input data that downstream module is processed.
Please refer to false code piece (1) below:
Figure BDA00002371546800051
Suppose that above-mentioned modules A is tested module or base modules, module B just belongs to downstream module, and wherein x is the sample data for modules A processing, y, z be exactly modules A output go number of passes certificate.
In the present invention, what tested module and base modules were exported goes number of passes certificate, can be tackled by channel module 200, the first comparing unit 201 in channel module 200, determine the first paired data for the number of passes certificate of going from tested module and base modules output, and the first paired data is compared to export the first comparison daily record.Retransmission unit 202 in channel module 200, for being forwarded to downstream module by the number of passes certificate of going of tested module and base modules output.
First the realization of the first comparing unit 201 is introduced below.
Please refer to Fig. 2, Fig. 2 is the structural representation block diagram of the embodiment of the first comparing unit 201 in the present invention.As shown in Figure 2, in the present embodiment, the first comparing unit 201 comprises the first extraction unit 2011, determines subelement 2012 and comparing unit 2013.
Wherein, the first extraction unit 2011, be used for removing journey extracting data unique identification from each of tested module and base modules output, and this goes the index value of number of passes certificate to be kept in journey index database as this after going port numbers of number of passes certificate to merge using this unique identification and reception.Particularly, the first extraction unit 2011, first some ports of preset monitored, when the port of monitoring receives after number of passes certificate, what just receive from this removes journey extracting data unique identification, and goes the receiving port number of number of passes certificate to merge into this index value that goes number of passes certificate with this to be kept in journey index database.For example, in false code (1), tested module and base modules are respectively x1, x2 according to the sample data of time sequencing processing, the number of passes certificate of going of wherein exporting after tested module processing x1 is that y1(is tested), z1(is tested), it is y1(benchmark that base modules is processed the number of passes certificate of going of exporting after x1), z1(benchmark), it is that y2(is tested that tested module is processed the number of passes certificate of going of exporting after x2), z2(is tested), it is y2(benchmark that base modules is processed the number of passes certificate of going of exporting after x2), z2(benchmark).The first extraction unit 2011 is monitored predefined port, the entry port that goes the data of y attribute in number of passes certificate that for example presets tested module output is 100, the entry port of the data of z attribute is 200, the entry port that goes the data of y attribute in number of passes certificate of base modules output is 300, the entry port of the data of z attribute is 400, y1(is tested), y2(is tested) entry port be 100, z1(is tested), z2(is tested) entry port be 200, y1(benchmark), y2(benchmark) entry port be 300, z1(benchmark), z2(benchmark) entry port be 400.
The unique identification of supposing sample data x1 is a, and the unique identification of x2 is b, and y1(is tested), z1(is tested), y1(benchmark), z1(benchmark) also all comprise mark a, y2(is tested), z2(is tested), y2(benchmark), z2(benchmark) also all comprise mark b.As can be seen here, by unique identification and port numbers, can determine unique number of passes certificate of going.
Determine subelement 2012, for using two index values that go journey index database to mate respectively the corresponding number of passes that goes according to as the first paired data, and trigger comparer unit 2013 and carry out.Particularly, determine subelement 2012, index value in journey index database is removed in inquiry, to determine whether to exist two index values of coupling, in the time there is two index values of coupling, just using these two index values respectively correspondence go number of passes according to as the first paired data.Determining whether index value mates, is first to determine whether port numbers mates, and is then to determine whether unique identification mates.For example, in above-mentioned example, port numbers 100 is mated with 300, and port numbers 200 is mated with 400, can determine thus, and the index value that mark a and port numbers 100 form, a mates with the index value that port 300 forms with mark.
Comparer unit 2013, for comparing to export the first comparison daily record to the first paired data.
Above-mentioned explanation is introduced the realization of the first comparing unit 201.
The first comparing unit 201 receive the output of tested module and base modules go number of passes according to after, can go number of passes according to sending to retransmission unit 202 by what receive, will remove number of passes according to being forwarded to the IP that the IP(setting in advance is downstream module by retransmission unit 202) and port.
Downstream module goes number of passes according to exporting return data after processing to what receive.The return data of downstream module output are that tested module and base modules are called the return data that downstream module obtains.Take false code piece (1) as example, downstream module B goes number of passes according to after processing to what receive, the corresponding m of the return data of output.
In the present invention, the return data of downstream module output are also tackled by channel module 200.Unified unit 203 in channel module 200, for determining the second paired data from the return data of downstream module output, be the identical return data of content by the second paired data unification, and return data identical content are back to respectively to tested module and base modules.
Below the realization of unified unit 203 is introduced.
Please refer to Fig. 3, Fig. 3 is the structural representation block diagram of the embodiment of unified unit 203 in the present invention.As shown in Figure 3, unifying unit 203 comprises: second extracts subelement 2031 and return to subelement 2032.
Wherein second extract subelement 2031, for each the return extracting data unique identification from downstream module output, after this unique identification and the port numbers that receives these return data merge, be kept in return index database as the index value of these return data.Still with in false code (1), tested module and base modules are respectively that x1, x2 are example according to the sample data of time sequencing processing, for x1, the return data of returning to tested module that obtain through downstream module are that m1(is tested), the return data of returning to base modules that obtain through downstream module are m1(benchmark), for x2, the return data of returning to tested module that obtain through downstream module are that m2(is tested), the return data of returning to base modules that obtain through downstream module are m2(benchmark).Second extracts subelement 2031, and to extract m1(tested), m1(benchmark), m2(is tested), m2(benchmark) the mode of index value be similar with the first extraction subelement 2011.
Return to subelement 2032, distinguish corresponding return data as the second paired data for two index values that return index database is mated, and the return data content receiving after in the second paired data is copied as to the return data content first receiving, and the second paired data that content is unified is back to respectively tested module and base modules.Return to subelement 2032 and determine that according to index value the mode of the second paired data and definite subelement 2012 are similar.Particularly, returning to subelement 2032 can be for every return data that receive, inquiry return index database, if there is no match index in this index database, illustrate that these return data are the first return data in the second paired data, retain this return data content, and these return data are turned back to corresponding tested module or base modules according to its upstream end slogan, if have match index in this index database, illustrate that these return data are the rear return data in the second paired data, by this return data content copy as retain above first return data content, and the return data after copying are turned back to corresponding tested module or base modules according to upstream end slogan.
Above-mentioned explanation is introduced the realization of unified unit 203.
Tested module and base modules are obtaining after the unified return data of content, can process the identical return data of content respectively, and output return data separately.Take false code piece (1) as example, with introduce above similarly, the return data of the corresponding tested module output of x1 are that n1(is tested), the return data of corresponding base modules output are n1(benchmark), the return data of the corresponding tested module output of x2 are that n2(is tested), the return data of corresponding base modules output are n2(benchmark).
Now, the second comparing unit 102 in initial testing module 100, for the return data of the return data of tested module and base modules are compared, daily record is compared in output second.Tested by above-mentioned n1() and n1(benchmark) compare, n2(is tested) and n2(benchmark) compare.
Above, the realization of device of the present invention has been carried out to complete introduction.
Can find out by above-mentioned explanation, device of the present invention can carry out very detailed record to data stream.By the first comparison daily record, can find out whether tested module and base modules, calling before downstream module, there will be the output of otherness, by the second comparison daily record, can find out that tested module and base modules return for identical downstream, whether there will be returning of otherness.Two comparison daily records that obtain by device of the present invention, tester is easy to, according to the data difference of record, the code of tested module be positioned to the code defect that may exist to eliminate tested module.By device of the present invention, can effectively reduce tester and carry out the time that wrong investigation spends, improve the efficiency of module testing.
Please refer to Fig. 4, Fig. 4 is the schematic flow sheet that carries out the embodiment of the method for module testing in the present invention by comparing.As shown in Figure 4, the method comprises:
Step S301: the sample data of one or more is sent to respectively to tested module and base modules, and wherein tested module and base modules are processed sample data respectively, and output separately go number of passes certificate.
Article one, sample data is that tested module and base modules complete the needed primitive of data processing one time.The function of for example tested module and base modules is that the page is classified, and it completes the URL address that needed primitive of data processing is the page, URL address that sample data is exactly a page.In the present invention, sample data comprises unique identification, and the unique identification that goes all to comprise in number of passes certificate and return data these same sample data being obtained by same sample data processing.In one embodiment, the transmitting time stamp that the unique identification of above-mentioned sample data is this sample data.
Step S302: from definite first paired data number of passes certificate that goes of tested module and base modules output, and the first paired data is compared to export the first comparison daily record, and, the number of passes certificate of going of tested module and base modules output is forwarded to downstream module, wherein downstream module goes number of passes according to processing to what receive, and exports return data.
Wherein particularly, comprise from the step mode of removing definite the first paired data number of passes certificate of tested module and base modules output:
Step S3021: each from tested module and base modules is removed journey extracting data unique identification, using this unique identification and reception, this goes the index value of number of passes certificate to be kept in journey index database as this after going port numbers of number of passes certificate to merge.Take false code piece (1) as example, tested module and base modules are respectively x1, x2 according to the sample data of time sequencing processing, the number of passes certificate of going of wherein exporting after tested module processing x1 is that y1(is tested), z1(is tested), it is y1(benchmark that base modules is processed the number of passes certificate of going of exporting after x1), z1(benchmark), it is that y2(is tested that tested module is processed the number of passes certificate of going of exporting after x2), z2(is tested), it is y2(benchmark that base modules is processed the number of passes certificate of going of exporting after x2), z2(benchmark).In step S3021, first monitor predefined port, the entry port that goes the data of y attribute in number of passes certificate that for example presets tested module output is 100, the entry port of the data of z attribute is 200, the entry port that goes the data of y attribute in number of passes certificate of base modules output is 300, the entry port of the data of z attribute is 400, y1(is tested), y2(is tested) entry port be 100, z1(is tested), z2(is tested) entry port be 200, y1(benchmark), y2(benchmark) entry port be 300, z1(benchmark), z2(benchmark) entry port be 400.The unique identification of supposing sample data x1 is a, and the unique identification of x2 is b, and y1(is tested), z1(is tested), y1(benchmark), z1(benchmark) also all comprise mark a, y2(is tested), z2(is tested), y2(benchmark), z2(benchmark) also all comprise mark b.As can be seen here, by unique identification and port numbers, can determine unique number of passes certificate of going.
Step S3022: two index values that mate in removing journey index database respectively the corresponding number of passes that goes according to as the first paired data.Particularly, in step S3022, can inquire about the index value in journey index database, to determine whether to exist two index values of coupling, in the time there is two index values of coupling, just using these two index values respectively correspondence go number of passes according to as the first paired data.Determining whether index value mates, is first to determine whether port numbers mates, and is then to determine whether unique identification mates.For example, in above-mentioned example, port numbers 100 is mated with 300, and port numbers 200 is mated with 400, can determine thus, and the index value that mark a and port numbers 100 form, a mates with the index value that port 300 forms with mark.
Step S303: determine the second paired data from the return data of downstream module, be the identical return data of content by the second paired data unification, and return data identical content are back to respectively to tested module and base modules, wherein tested module and base modules are processed respectively the identical return data of content, and output return data separately.
Particularly, step S303 comprises:
Step S3031: from each return extracting data unique identification of downstream module output, be kept in return index database as the index value of these return data after this unique identification and the port numbers that receives these return data merge.Still with in false code (1), tested module and base modules are respectively that x1, x2 are example according to the sample data of time sequencing processing, for x1, the return data of returning to tested module that obtain through downstream module are that m1(is tested), the return data of returning to base modules that obtain through downstream module are m1(benchmark), for x2, the return data of returning to tested module that obtain through downstream module are that m2(is tested), the return data of returning to base modules that obtain through downstream module are m2(benchmark).It is tested that step S3031 extracts m1(), m1(benchmark), m2(is tested), m2(benchmark) mode and the step S3021 of index value be similar.
Step S3032: using return data corresponding two index values difference of mating in return index database as the second paired data, and the return data content receiving after in the second paired data is copied as to the return data content first receiving, and the second paired data that content is unified is back to respectively tested module and base modules.Particularly, in step S3032, can be for every return data that receive, inquiry return index database, if there is no match index in this index database, illustrate that these return data are the first return data in the second paired data, retain this return data content, and these return data are turned back to corresponding tested module or base modules according to its upstream end slogan, if have match index in this index database, illustrate that these return data are the rear return data in the second paired data, by this return data content copy as retain above first return data content, and the return data after copying are turned back to corresponding tested module or base modules according to upstream end slogan.
Step S304: the return data of the return data of tested module and base modules are compared to export the second comparison daily record.Take false code piece (1) as example, with introduce above similarly, the return data of the corresponding tested module output of x1 are that n1(is tested), the return data of corresponding base modules output are n1(benchmark), the return data of the corresponding tested module output of x2 are that n2(is tested), the return data of corresponding base modules output are n2(benchmark).Particularly, in step S304, can n1(is tested) and n1(benchmark) compare, n2(is tested) and n2(benchmark) compare.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (10)

1. a device that carries out module testing by comparing, comprising:
Data transmission unit, for the sample data of one or more is sent to respectively to tested module and base modules, wherein said tested module and described base modules are processed described sample data respectively, and output separately go number of passes certificate;
The first comparing unit, determines the first paired data for the number of passes certificate of going from described tested module and the output of described base modules, and described the first paired data is compared to export the first comparison daily record;
Retransmission unit, for the number of passes certificate of going of described tested module and the output of described base modules is forwarded to downstream module, wherein said downstream module goes number of passes according to processing to what receive, and exports return data;
Unified unit, for determining the second paired data from the return data of described downstream module output, be the identical return data of content by described the second paired data unification, and return data identical described content are back to respectively to described tested module and described base modules, wherein said tested module and described base modules are processed respectively the identical return data of described content, and output return data separately;
The second comparing unit, compares daily record for the return data of the return data of described tested module and described base modules are compared to export second.
2. device according to claim 1, is characterized in that, described sample data comprises unique identification, and the unique identification that goes all to comprise in number of passes certificate and return data described same sample data being obtained by same sample data processing.
3. device according to claim 2, is characterized in that, the transmitting time stamp that described unique identification is described sample data.
4. device according to claim 2, is characterized in that, described the first contrast unit comprises:
First extracts subelement, be used for removing journey extracting data unique identification from each of described tested module and the output of described base modules, using described unique identification and reception, this goes the index value of number of passes certificate to be kept in journey index database as this after going port numbers of number of passes certificate to merge;
Determine subelement, for using described go two index values that journey index database mates respectively the corresponding number of passes that goes according to as the first paired data, and trigger comparer unit and carry out;
Comparer unit, for comparing to export the first comparison daily record to described the first paired data.
5. device according to claim 2, is characterized in that, described unified unit comprises:
Second extracts subelement, for each the return extracting data unique identification from described downstream module output, after described unique identification and the port numbers that receives these return data merge, is kept in return index database as the index value of these return data;
Return to subelement, distinguish corresponding return data as the second paired data for two index values that described return index database is mated, and the return data content receiving after in described the second paired data is copied as to the return data content first receiving, and the second paired data that content is unified is back to respectively described tested module and described base modules.
6. a method of carrying out module testing by comparing, comprising:
A. the sample data of one or more is sent to respectively to tested module and base modules, wherein said tested module and described base modules are processed described sample data respectively, and output separately go number of passes certificate;
B. from the output of described tested module and described base modules go number of passes according to determine the first paired data, and described the first paired data is compared to export the first comparison daily record, and, the number of passes certificate of going of described tested module and the output of described base modules is forwarded to downstream module, wherein said downstream module goes number of passes according to processing to what receive, and exports return data;
C. from the return data of downstream module output, determine the second paired data, be the identical return data of content by described the second paired data unification, and return data identical described content are back to respectively to described tested module and described base modules, wherein said tested module and described base modules are processed respectively the identical return data of described content, and output return data separately;
D. the return data of the return data of described tested module and described base modules are compared to export the second comparison daily record.
7. method according to claim 6, is characterized in that, described sample data comprises unique identification, and the unique identification that goes all to comprise in number of passes certificate and return data described same sample data being obtained by same sample data processing.
8. method according to claim 7, is characterized in that, the transmitting time stamp that described unique identification is described sample data.
9. method according to claim 7, is characterized in that, comprises from the step of removing definite the first paired data number of passes certificate of described tested module and the output of described base modules:
Each from described tested module and described base modules is removed journey extracting data unique identification, and using described unique identification and reception, this goes the index value of number of passes certificate to be kept in journey index database as this after going port numbers of number of passes certificate to merge;
Using described go two index values mating in journey index database respectively the corresponding number of passes that goes according to as the first paired data.
10. method according to claim 7, is characterized in that, described step C comprises:
From each return extracting data unique identification of described downstream module output, after merging, described unique identification and the port numbers that receives these return data be kept in return index database as the index value of these return data;
Using return data corresponding two index values difference of mating in described return index database as the second paired data, and the return data content receiving after in described the second paired data is copied as to the return data content first receiving, and the second paired data that content is unified is back to respectively described tested module and described base modules.
CN201210442406.6A 2012-11-08 2012-11-08 A kind of method and device that module testing is carried out by comparing Active CN103810085B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210442406.6A CN103810085B (en) 2012-11-08 2012-11-08 A kind of method and device that module testing is carried out by comparing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210442406.6A CN103810085B (en) 2012-11-08 2012-11-08 A kind of method and device that module testing is carried out by comparing

Publications (2)

Publication Number Publication Date
CN103810085A true CN103810085A (en) 2014-05-21
CN103810085B CN103810085B (en) 2018-01-05

Family

ID=50706885

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210442406.6A Active CN103810085B (en) 2012-11-08 2012-11-08 A kind of method and device that module testing is carried out by comparing

Country Status (1)

Country Link
CN (1) CN103810085B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750612A (en) * 2015-03-31 2015-07-01 腾讯科技(深圳)有限公司 File operation testing method and device
CN107430590A (en) * 2015-01-12 2017-12-01 安提特软件有限责任公司 Data compare
CN109254917A (en) * 2018-08-31 2019-01-22 百度在线网络技术(北京)有限公司 Method and apparatus for test data flow system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656891A (en) * 2009-08-27 2010-02-24 北京中盾安全技术开发公司 Intelligent video monitoring system and performance test method of algorithm thereof
CN102082707A (en) * 2010-12-24 2011-06-01 汉柏科技有限公司 Parallel processing performance test method for multinuclear firewall
CN102523052A (en) * 2011-12-01 2012-06-27 无锡中星微电子有限公司 Testing method and testing device
US20120293379A1 (en) * 2011-05-19 2012-11-22 Nickel Joshua G Testing system with electrically coupled and wirelessly coupled probes

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656891A (en) * 2009-08-27 2010-02-24 北京中盾安全技术开发公司 Intelligent video monitoring system and performance test method of algorithm thereof
CN102082707A (en) * 2010-12-24 2011-06-01 汉柏科技有限公司 Parallel processing performance test method for multinuclear firewall
US20120293379A1 (en) * 2011-05-19 2012-11-22 Nickel Joshua G Testing system with electrically coupled and wirelessly coupled probes
CN102523052A (en) * 2011-12-01 2012-06-27 无锡中星微电子有限公司 Testing method and testing device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶永鑫 等: "实时嵌入式产品的测试***设计", 《单片机与嵌入式***应用》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107430590A (en) * 2015-01-12 2017-12-01 安提特软件有限责任公司 Data compare
US10719482B2 (en) 2015-01-12 2020-07-21 Micro Focus Llc Data comparison
CN104750612A (en) * 2015-03-31 2015-07-01 腾讯科技(深圳)有限公司 File operation testing method and device
CN104750612B (en) * 2015-03-31 2018-03-27 腾讯科技(深圳)有限公司 Method of testing and device are carried out to file operation
CN109254917A (en) * 2018-08-31 2019-01-22 百度在线网络技术(北京)有限公司 Method and apparatus for test data flow system

Also Published As

Publication number Publication date
CN103810085B (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN102831052B (en) Test exemple automation generating apparatus and method
CN103095475B (en) The method for inspecting and system of multimode communication device
WO2009093226A3 (en) A method and apparatus for fingerprinting systems and operating systems in a network
CN101561806B (en) Information extraction and audit method of DB2 database operation, device and system thereof
CN105389314A (en) Log file query system and query method
CN104767736A (en) Method for separating unknown single protocol data stream into different types of data frames
CN103810085A (en) Method and device for performing module testing through data comparison
CN110830500B (en) Network attack tracking method and device, electronic equipment and readable storage medium
KR101191832B1 (en) Database Replication Method And System Using Analyzing Network Packets
CN112416557B (en) Method and device for determining call relation, storage medium and electronic device
CN103577318A (en) Code detection method and device
CN112182065A (en) Asset management system and method based on automatic acquisition and multi-source import
CN104598221A (en) RTU parameter setting method
WO2016202085A1 (en) Method and device for drawing planisphere of optical module, and virtual vector analyzer
CN101183994A (en) Network communication data flow information statistic system and method
CN103095513A (en) Simulation testing device and method of Encryption equipment
CN116032581A (en) Network equipment security management method and electronic equipment
CN110569172B (en) Performance monitoring system of service level
CN112825506B (en) Flow mirror image detection method and device
CN113986758A (en) Regression testing method and device, electronic equipment and computer readable medium
CN106408792B (en) Data processing method and device
CN106469168A (en) The method and device that in data integrated system, diversiform data is processed
CN115134172B (en) Automatic configuration system and method for transparent encryption and decryption of terminal file
CN101262379B (en) A real time validation system and method for interface packets
CN117376022B (en) Anomaly detection system for detecting unknown network attack based on deep learning

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant