CN103440197A - Automatic difference test report generating method based on comparison test - Google Patents

Automatic difference test report generating method based on comparison test Download PDF

Info

Publication number
CN103440197A
CN103440197A CN2013103729517A CN201310372951A CN103440197A CN 103440197 A CN103440197 A CN 103440197A CN 2013103729517 A CN2013103729517 A CN 2013103729517A CN 201310372951 A CN201310372951 A CN 201310372951A CN 103440197 A CN103440197 A CN 103440197A
Authority
CN
China
Prior art keywords
unit
test
data
hierarchical relationship
difference
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
CN2013103729517A
Other languages
Chinese (zh)
Other versions
CN103440197B (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201310372951.7A priority Critical patent/CN103440197B/en
Publication of CN103440197A publication Critical patent/CN103440197A/en
Application granted granted Critical
Publication of CN103440197B publication Critical patent/CN103440197B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an automatic difference test report generating method based on a comparison test. According to the method, test data generated through the comparison test are processed; different test results are recorded; differences between tasks of the different test results are shown in the forms of pictures, tables and characters regarding to the different test results; a difference test report of a word format and a difference test report of a pdf format are finally and automatically generated. Being diverse in format, the generated test reports can be conveniently compiled and read. In order to show the differences, the differences between the test tasks are shown by the test reports in the diverse forms of the pictures, the tables and the characters.

Description

A kind of method that automatically generates the difference test report based on contrast test
Technical field
The present invention relates to a kind of method of automatic generation difference test report, relate in particular to a kind of data of processing and analyzing contrast test, generate the method for the difference test report that contrast histogram, form, explanatory note are arranged.
Background technology
Test report is mainly to rely on the tester to analyze data at present, manually writes test report.Along with the increase day by day of testing and analysis data, it is very unreasonable that the generation that only relies on manpower to complete the analysis of test data and test report has become, so the automatic generation of test report has been also trend of the times.
The technology had at present is to once testing the test report that generates full dose mostly.So in fact still need the tester to contrast repeatedly test report, difference is wherein processed, manually generate the difference test report.So the advantage that the full dose test report embodies in the test of contrast test is not very remarkable.
Summary of the invention
The object of the invention is to for the deficiencies in the prior art, a kind of method that automatically generates the difference test report based on contrast test is provided.
The objective of the invention is to be achieved through the following technical solutions: a kind of method that automatically generates the difference test report based on contrast test, the method comprises the steps:
(1) import the many groups test data that needs to generate document;
(2) the unit hierarchical relationship that configuration need to be carried out the difference contrast;
(3) data that step 1 imported, require to carry out variance analysis according to the level of step 2, for the difference of a plurality of test assignment test results of each unit, generates corresponding histogram; This step realizes by following sub-step:
(3.1) data that according to user configured unit hierarchical relationship, the user imported are carried out pre-service, generate the multistage Hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, the mark of storage corresponding unit in Hash table.
(3.2) extract discrepant data on a unit.
(3.3) utilization variance data call jfreechart generates histogram.
(3.4) if also have variance data, carry out step 3.2, otherwise carry out step 3.5.
(3.5) figure of generation is saved under corresponding file.
(4) picture that the data that receive according to step 1 and step 3 produce generates the difference test report, and this step realizes by following sub-step:
(4.1) data that according to user configured unit hierarchical relationship, the user imported are carried out pre-service.Generate the multistage Hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, the mark of storage corresponding unit in Hash table.
(4.2) extract discrepant data on a unit.
(4.3) variance data is written in the xml file.
(4.4) the histogram path corresponding variance data generated writes in xml.
(4.5) utilize python to call the report that pythonwin and reportlab built-in function generate respectively word and pdf form.
With background technology, compare, the beneficial effect that the present invention has is: the present invention can the automatic analysis test data, generates the test report that embodies the difference between different test assignments, and the test report form variation of generation is convenient to compiling and reads.Test report is in order to embody otherness, adopted the form of figure, form, word, by various ways, represents the difference between a plurality of test assignments.
The accompanying drawing explanation
Fig. 1 is realization flow figure of the present invention;
Fig. 2 generates the schematic diagram of multi-level histogram automatically;
Fig. 3 generates the schematic diagram of document automatically.
Embodiment
As shown in Figure 1, the present invention is based on the method that contrast test generates the difference test report automatically comprises the steps:
1, import the many groups test data that needs to generate document;
Described test data will comprise the data of at least 2 similar test assignments.
A plurality of test assignments of described test test case used is same set of test case.
The data layout of described importing is text formatting txt, data of every line item, a minimum unit in this data corresponding unit hierarchical relationship.The sequence consensus that occurs successively of minimum unit in order and unit hierarchical relationship.
2, the unit hierarchical relationship that configuration need to be carried out the difference contrast;
It is as follows that the unit hierarchical relationship builds rule:
A, minimum unit are single test case;
B, a plurality of minimum units of permission definition are a unit.
C, a plurality of unit of permission definition are a unit.
The weight of d, each unit of permission definition.
The unit hierarchical relationship of e, configuration is preserved with the form of xml file.
3, the data that step 1 imported, require to carry out variance analysis according to the level of step 2.Difference for a plurality of test assignment test results of each unit (can be multi-level), generate corresponding histogram;
As shown in Figure 2, this step realizes by following sub-step:
3.1, the data that the user imported according to user configured unit hierarchical relationship carry out pre-service, generate the multistage Hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, store the mark of corresponding unit in Hash table.
3.2, extract discrepant data on a unit.
3.3, utilization variance data call jfreechart generates histogram.
If, 3.4 also have variance data, carry out step 3.2, otherwise carry out step 3.5.
3.5, the figure of generation is saved under corresponding file.
4, the picture that the data that receive according to step 1 and step 3 produce generates the difference test report.
The difference test report generated can be the document of multiple format, and concrete form is as follows:
A, word form (supporting word2003, word2007, word2010).
B, pdf form.
As shown in Figure 3, this step realizes by following sub-step:
4.1, the data that the user imported according to user configured unit hierarchical relationship carry out pre-service.Generate the multistage Hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, the mark of storage corresponding unit in Hash table.
4.2, extract discrepant data on a unit.
4.3, variance data is written in the xml file.
4.4, histogram path that corresponding variance data is generated writes in xml.
4.5, utilize python to call the report that pythonwin and reportlab built-in function generate respectively word and pdf form.

Claims (4)

1. a method that automatically generates the difference test report based on contrast test, is characterized in that, the method comprises the steps:
(1) import the many groups test data that needs to generate document;
(2) the unit hierarchical relationship that configuration need to be carried out the difference contrast;
(3) data that step 1 imported, require to carry out variance analysis according to the level of step 2, for the difference of a plurality of test assignment test results of each unit, generates corresponding histogram; This step realizes by following sub-step:
(3.1) data that according to user configured unit hierarchical relationship, the user imported are carried out pre-service, generate the multistage Hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, the mark of storage corresponding unit in Hash table;
(3.2) extract discrepant data on a unit;
(3.3) utilization variance data call jfreechart generates histogram;
(3.4) if also have variance data, carry out step 3.2, otherwise carry out step 3.5;
(3.5) figure of generation is saved under corresponding file;
(4) picture that the data that receive according to step 1 and step 3 produce generates the difference test report, and this step realizes by following sub-step:
(4.1) data that according to user configured unit hierarchical relationship, the user imported are carried out pre-service; Generate the multistage Hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, the mark of storage corresponding unit in Hash table;
(4.2) extract discrepant data on a unit;
(4.3) variance data is written in the xml file;
(4.4) the histogram path corresponding variance data generated writes in xml;
(4.5) utilize python to call the report that pythonwin and reportlab built-in function generate respectively word and pdf form.
2. automatically generate according to claim 1 the method for difference test report based on contrast test, it is characterized in that, in described step 1, described test data will comprise the data of at least 2 similar test assignments; The data layout of described importing is text formatting txt, data of every line item, a minimum unit in this data corresponding unit hierarchical relationship; The sequence consensus that occurs successively of minimum unit in order and unit hierarchical relationship.
3. automatically generate according to claim 1 the method for difference test report based on contrast test, it is characterized in that, in described step 2, it is as follows that the unit hierarchical relationship builds rule:
(a) minimum unit is single test case;
(b) allowing a plurality of minimum units of definition is a unit;
(c) allowing a plurality of unit of definition is a unit;
(d) allow the weight of each unit of definition;
(e) the unit hierarchical relationship of configuration is preserved with the form of xml file.
4. automatically generate according to claim 1 the method for difference test report based on contrast test, it is characterized in that, in described step 4, the form of the difference test report of generation is word form or pdf form.
CN201310372951.7A 2013-08-25 2013-08-25 A kind of method automatically generating difference test report based on contrast test Expired - Fee Related CN103440197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310372951.7A CN103440197B (en) 2013-08-25 2013-08-25 A kind of method automatically generating difference test report based on contrast test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310372951.7A CN103440197B (en) 2013-08-25 2013-08-25 A kind of method automatically generating difference test report based on contrast test

Publications (2)

Publication Number Publication Date
CN103440197A true CN103440197A (en) 2013-12-11
CN103440197B CN103440197B (en) 2016-04-13

Family

ID=49693888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310372951.7A Expired - Fee Related CN103440197B (en) 2013-08-25 2013-08-25 A kind of method automatically generating difference test report based on contrast test

Country Status (1)

Country Link
CN (1) CN103440197B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516809A (en) * 2013-09-26 2015-04-15 方正宽带网络服务股份有限公司 Automated testing system and method
CN106653092A (en) * 2017-01-05 2017-05-10 上海剑桥科技股份有限公司 Processing method and processing system of DDR (Double Data Rate) test waveform data file
CN106815100A (en) * 2015-11-27 2017-06-09 北京国双科技有限公司 Interface test method and device
CN108446394A (en) * 2018-03-26 2018-08-24 网易(杭州)网络有限公司 The control methods of file difference and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055692A (en) * 2016-06-12 2016-10-26 上海爱数信息技术股份有限公司 Automatic testing method and system for comparison files or folders

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015867A1 (en) * 2002-07-16 2004-01-22 Macko John Steven Travis Automated usability testing system and method
CN201402459Y (en) * 2008-12-25 2010-02-10 深圳市同洲电子股份有限公司 Test case management device
CN101727389A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015867A1 (en) * 2002-07-16 2004-01-22 Macko John Steven Travis Automated usability testing system and method
CN201402459Y (en) * 2008-12-25 2010-02-10 深圳市同洲电子股份有限公司 Test case management device
CN101727389A (en) * 2009-11-23 2010-06-09 中兴通讯股份有限公司 Automatic test system and method of distributed integrated service

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516809A (en) * 2013-09-26 2015-04-15 方正宽带网络服务股份有限公司 Automated testing system and method
CN104516809B (en) * 2013-09-26 2018-01-05 方正宽带网络服务股份有限公司 A kind of automatization test system and method
CN106815100A (en) * 2015-11-27 2017-06-09 北京国双科技有限公司 Interface test method and device
CN106653092A (en) * 2017-01-05 2017-05-10 上海剑桥科技股份有限公司 Processing method and processing system of DDR (Double Data Rate) test waveform data file
CN108446394A (en) * 2018-03-26 2018-08-24 网易(杭州)网络有限公司 The control methods of file difference and device
CN108446394B (en) * 2018-03-26 2021-02-19 网易(杭州)网络有限公司 File difference comparison method and device

Also Published As

Publication number Publication date
CN103440197B (en) 2016-04-13

Similar Documents

Publication Publication Date Title
CN103440197A (en) Automatic difference test report generating method based on comparison test
US20150032759A1 (en) System and method for analyzing result of clustering massive data
EP2608074A3 (en) Systems and methods for merging source records in accordance with survivorship rules
US10002142B2 (en) Method and apparatus for generating schema of non-relational database
IN2013CH06086A (en)
CN104216961A (en) Method and device for data processing
IN2013MU02918A (en)
CN109472017B (en) Method and device for obtaining relevant information of text court deeds of referee to be generated
CA3101497A1 (en) System and method for analyzing and modeling content
CN103176989A (en) Method and system used for comparing database table levels and based on data dictionary and variable rules
CN104021219A (en) Method and device for generating data template
CN106886535A (en) A kind of data pick-up method and apparatus for being adapted to multiple data sources
CN102682108A (en) Row and line mixed database storage method
CN105302730A (en) Calculation model detection method, testing server and service platform
CN104424240A (en) Multi-table correlation method and system, main service node and computing node
CN110457182A (en) A kind of load balancing cluster example operating index monitoring system
CN103902511A (en) Data conversion and amplifying display method and system for data table
CN104753741A (en) Network card test performance adjustment method and device
CN102855297B (en) A kind of method of control data transmission and connector
CN104090895B (en) Obtain the method for radix, device, server and system
CN106845787A (en) A kind of data method for automatically exchanging and device
Lee et al. Study on the Application Methods of Big Data at a Corporation-Cases of A and Y corporation Big Data System Projects
CN110019357B (en) Database query script generation method and device
CN108009787A (en) A kind of Audit data comparative analysis management system
SG11201805503TA (en) Method of inputting document information, device, server, and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160413

Termination date: 20170825