CN103440197B - A kind of method automatically generating difference test report based on contrast test - Google Patents
A kind of method automatically generating difference test report based on contrast test Download PDFInfo
- Publication number
- CN103440197B CN103440197B CN201310372951.7A CN201310372951A CN103440197B CN 103440197 B CN103440197 B CN 103440197B CN 201310372951 A CN201310372951 A CN 201310372951A CN 103440197 B CN103440197 B CN 103440197B
- Authority
- CN
- China
- Prior art keywords
- unit
- data
- test
- 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.)
- Expired - Fee Related
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention discloses a kind of method automatically generating difference test report based on contrast test, the test data that the method is generated by process contrast test, record discrepant test result, to the test result of difference, represent the otherness between its multiple task with the form of figure, form, word.The last difference test report automatically generating word and pdf two kinds of forms.The test report form variation generated, is convenient to compiling and reads.Test report, in order to embody otherness, have employed the form of figure, form, word, represents the difference between multiple test assignment by various ways.
Description
Technical field
The present invention relates to a kind of method of automatic generation difference test report, particularly relate to the data of a kind of process and analysis contrast test, generate the method for the difference test report having contrast histogram, form, explanatory note.
Background technology
Current test report mainly relies on tester to analyze data, manually writes test report.Along with the increase day by day of testing and analysis data, what only rely on the generation of the manpower analysis and test report that complete test data to become is very unreasonable, so the automatic generation of test report has also been trend of the times.
The technology had at present is the test report to a Self-adaptive full dose mostly.So in fact still need tester to contrast repeatedly test report, difference is wherein processed, manually generates difference test report.So the advantage that 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 automatically generating difference test report based on contrast test is provided.
The object of the invention is to be achieved through the following technical solutions: a kind of method automatically generating difference test report based on contrast test, the method comprises the steps:
(1) many groups test data that need generate document is imported;
(2) configuration needs the unit hierarchical relationship carrying out contrast difference;
(3) to the data that step 1 imports, require to carry out variance analysis according to the level of step 2, for the difference of the multiple test assignment test result of each unit, generate corresponding histogram; This step is realized by following sub-step:
(3.1) carry out pre-service according to user configured unit hierarchical relationship to the data that user imports, generate the multilevel hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, stores the mark of corresponding unit in Hash table.
(3.2) discrepant data on a unit are extracted.
(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) under the figure of generation being saved in corresponding file.
(4) picture produced according to data and the step 3 of step 1 reception generates difference test report, and this step is realized by following sub-step:
(4.1) according to user configured unit hierarchical relationship, pre-service is carried out to the data that user imports.Generate the multilevel hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, stores the mark of corresponding unit in Hash table.
(4.2) discrepant data on a unit are extracted.
(4.3) variance data is written in xml file.
(4.4) in the histogram path write xml corresponding variance data generated.
(4.5) utilize python to call report that pythonwin and reportlab built-in function generates word and pdf form respectively.
Compared with background technology, the beneficial effect that the present invention has is: the present invention can automatic analysis test data, generates the test report of the difference embodied between different test assignment, and the test report form variation of generation, is convenient to compiling and reads.Test report, in order to embody otherness, have employed the form of figure, form, word, represents the difference between multiple test assignment by various ways.
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 difference test report automatically to comprise the steps:
1, many groups test data that need generate document is imported;
Described test data will comprise the data of at least 2 similar test assignments.
The multiple test assignment of described test test case used is same set of test case.
The data layout of described importing is text formatting txt, every line item data, a minimum unit in this data corresponding unit hierarchical relationship.The sequence consensus that order and minimum unit in unit hierarchical relationship occur successively.
2, configuration needs the unit hierarchical relationship carrying out contrast difference;
It is as follows that unit hierarchical relationship builds rule:
A, minimum unit are single test case;
B, the multiple minimum unit of permission definition are a unit.
C, the multiple 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, to the data that step 1 imports, require to carry out variance analysis according to the level of step 2.For the difference of each unit (can be multi-level) multiple test assignment test result, generate corresponding histogram;
As shown in Figure 2, this step is realized by following sub-step:
3.1, carry out pre-service according to user configured unit hierarchical relationship to the data that user imports, generate the multilevel hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, stores the mark of corresponding unit in Hash table.
3.2, discrepant data on a unit are extracted.
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, under the figure of generation being saved in corresponding file.
4, the picture produced according to data and the step 3 of step 1 reception generates 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 is realized by following sub-step:
4.1, according to user configured unit hierarchical relationship, pre-service is carried out to the data that user imports.Generate the multilevel hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, stores the mark of corresponding unit in Hash table.
4.2, discrepant data on a unit are extracted.
4.3, variance data is written in xml file.
4.4, in the histogram path write xml corresponding variance data generated.
4.5, utilize python to call report that pythonwin and reportlab built-in function generates word and pdf form respectively.
Claims (3)
1. automatically generate a method for difference test report based on contrast test, it is characterized in that, the method comprises the steps:
(1) many groups test data that need generate document is imported;
(2) configuration needs the unit hierarchical relationship carrying out contrast difference;
(3) to the data that step (1) imports, require to carry out variance analysis according to the level of step (2), utilize the difference of the test result of each unit under multiple test assignment to generate corresponding histogram; This step is realized by following sub-step:
(3.1) carry out pre-service according to user configured unit hierarchical relationship to the data that user imports, generate the multilevel hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, stores the mark of corresponding unit in Hash table;
(3.2) discrepant data on a unit are extracted;
(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) under the figure of generation being saved in corresponding file;
(4) picture that the data received according to step (1) and step (3) produce generates difference test report, and this step is realized by following sub-step:
(4.1) according to user configured unit hierarchical relationship, pre-service is carried out to the data that user imports; Generate the multilevel hash table corresponding with hierarchical relationship, the one deck in every one deck Hash table corresponding unit hierarchical relationship, stores the mark of corresponding unit in Hash table;
(4.2) discrepant data on a unit are extracted;
(4.3) variance data is written in xml file;
(4.4) in the histogram path write xml corresponding variance data generated;
(4.5) utilize python to call report that pythonwin and reportlab built-in function generates word and pdf form respectively.
2. automatically generate the method for difference test report according to claim 1 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, every line item data, a minimum unit in this data corresponding unit hierarchical relationship; The sequence consensus that order and minimum unit in unit hierarchical relationship occur successively.
3. automatically generate the method for difference test report according to claim 1 based on contrast test, it is characterized in that, in described step (2), it is as follows that unit hierarchical relationship builds rule:
A () minimum unit is single test case;
B () allows the multiple minimum unit of definition to be a unit;
C () allows the multiple unit of definition to be a unit;
D () allows the weight of each unit of definition;
E unit hierarchical relationship that () configures is preserved with the form of xml file.
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 CN103440197A (en) | 2013-12-11 |
CN103440197B true 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 (2)
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 |
CN106653092A (en) * | 2017-01-05 | 2017-05-10 | 上海剑桥科技股份有限公司 | Processing method and processing system of DDR (Double Data Rate) test waveform data file |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN108446394B (en) * | 2018-03-26 | 2021-02-19 | 网易(杭州)网络有限公司 | File difference comparison method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2393902A1 (en) * | 2002-07-16 | 2004-01-16 | Cognos Incorporated | Automated usability testing system and method |
-
2013
- 2013-08-25 CN CN201310372951.7A patent/CN103440197B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 (2)
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 |
CN106653092A (en) * | 2017-01-05 | 2017-05-10 | 上海剑桥科技股份有限公司 | Processing method and processing system of DDR (Double Data Rate) test waveform data file |
Also Published As
Publication number | Publication date |
---|---|
CN103440197A (en) | 2013-12-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
MY195917A (en) | Blockchain-Based Data Processing Method And Device | |
CN103440197B (en) | A kind of method automatically generating difference test report based on contrast test | |
SG11201903367WA (en) | Contract generation method and apparatus, server and storage medium | |
CN103838672A (en) | Automated testing method and device for all-purpose financial statements | |
CN102665231B (en) | Method of automatically generating parameter configuration file for LTE (Long Term Evolution) system | |
CN104866498A (en) | Information processing method and device | |
CN103927338A (en) | Log information storage processing method and log information storage processing device | |
CN105335310A (en) | Interface defining method, and data transmission method and apparatus | |
CN104572781A (en) | Method and device for generating transaction log | |
CN104021219A (en) | Method and device for generating data template | |
CN105046289A (en) | Text field type identification method and text field type identification system | |
CN104503955A (en) | Method for generating personalized excel form | |
CN103425490B (en) | Based on the management method running object data in crm system | |
CN104375814A (en) | Generation method and device of an interface document | |
GB2565482A (en) | Attribute matching | |
US10462236B2 (en) | Coordinating metgadata | |
CN105718429B (en) | The method and device of inspection report generation | |
IN2013MU03265A (en) | ||
CN102662962A (en) | Dynamic display method based on webpage elements | |
GB2562910A (en) | Automatic execution of objects in a user interface | |
CN103577573A (en) | Intelligent document engine technology for generating dynamic complicated tables on basis of Word 2007/Open XML | |
CN107391377B (en) | Method for testing software integration based on combined flow chart | |
CN110489247A (en) | A kind of real-time integrated approach of data and device | |
IN2015DE00970A (en) | ||
CN106909570B (en) | Data conversion method and device |
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 |
Granted publication date: 20160413 Termination date: 20170825 |
|
CF01 | Termination of patent right due to non-payment of annual fee |