CN109902012A - A kind of automation generates the method and device of server test report - Google Patents

A kind of automation generates the method and device of server test report Download PDF

Info

Publication number
CN109902012A
CN109902012A CN201910151416.6A CN201910151416A CN109902012A CN 109902012 A CN109902012 A CN 109902012A CN 201910151416 A CN201910151416 A CN 201910151416A CN 109902012 A CN109902012 A CN 109902012A
Authority
CN
China
Prior art keywords
test
report
module
template
information
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.)
Withdrawn
Application number
CN201910151416.6A
Other languages
Chinese (zh)
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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent 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 Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910151416.6A priority Critical patent/CN109902012A/en
Publication of CN109902012A publication Critical patent/CN109902012A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of method and device of automation generation server test report, includes the following steps: to obtain test item data;Define the store path of report template;The test item data that will acquire export to report template and obtain current operator's authority information;Judge the permission authority information whether operator's authority information is and sets;If so, executing step: examining report template whether there is;If it is not, output prompt: not having export current project test report permission, terminate.The present invention provides a kind of methods that automation generates test report, after the completion of project testing, system can be derived automatically from the test report of this project, guarantee the accuracy of test report data, save the time of QA Manager's hand-coding test report, human cost has been saved, the testing efficiency of QA Manager is improved.

Description

A kind of automation generates the method and device of server test report
Technical field
The invention belongs to server automated the field of test technology, and in particular to a kind of automation generation server test report The method and device of announcement.
Background technique
With the high speed development of server industries, more and more clients are stronger using computing capability in every field Server runs the core application of oneself.In order to meet the client of highly-parallel and high performance demands, capabilities service is being raised While device, general quality, the reliability and stability for focusing on product.A variety of tests are carried out for the various configurations of server, There are many kinds of the testing tool of automation is current, but for the test team of people more than one, used if summarizing each automation The not no good scheme of implementing result of example, and history execute can not programming count, after the completion of server test, in order to discovery Problem and defect are analyzed, correct existing quality problems offer foundation while laying base for the examination and delivery of server Plinth, QA Manager need to arrange the test report of server by hand, but arrange test report by hand and take considerable time, and exist True problem that test result is not statistical uncertainty.
Summary of the invention
After the completion of server test, asked to be analyzed discovery and defect, corrected existing quality Topic provides according to while being that the examination of server and delivery lay the foundation, and QA Manager need to arrange the test report of server by hand It accuses, but arranges test report by hand and take considerable time, and there is a problem of that test result is not statistical uncertainty true, the present invention provides A kind of automation generates the method and device of server test report.
The technical scheme is that
In a first aspect, the present invention provides a kind of method that automation generates server test report, include the following steps:
Obtain test item data;
Define the store path of report template;
The test item data that will acquire export to report template.
Further, for the identical test report of format for exporting the test of same type, report template is defined Store path includes: before
Examining report template whether there is, if so, executing step: defining the store path of report template;
If it is not, creating report template according to the type of the test item data of acquisition.
Further, test item data are obtained, are specifically included:
Obtain project stage title;
According to the configured list under the incoming condition acquisition stage.
Further, it according in the configured list under the incoming condition acquisition stage, specifically includes:
Obtain configuration information list;Wherein, configuration Assembly Listing or stage configured list including setting;
Obtain configuration use-case list;
Use-case aggregate data, pass amount data, fail amount data under the acquisition stage;
Acquisition stage or the lower test details cake chart of configuration combination.
Further, the test item data that will acquire export to report template, comprising:
Test details cake chart, configuration information list, configuration use-case details list are exported into report template.
Further, test item data are obtained, later further include:
Obtain current operator's authority information;
Judge the permission authority information whether operator's authority information is and sets;
If so, executing step: examining report template whether there is;
If it is not, output prompt: not having export current project test report permission, terminate.
In order to be protected to test data, it is provided with operating right, needs to test operating right when being operated Card, prevents test data from leaking.
Further, this method further includes:
Obtain the corresponding test log of test case of test crash;
Test log is analyzed to extract failure information keyword and search for the failure information keyword with extraction in the database Matched match information;
It searches the corresponding test errors of the match information extracted and analyzes conclusion;
The corresponding test errors analysis conclusion of test crash is exported into report template.In order to enable test report to play more Big effect is further enriched the content of test report, that is, error checking log is shown in test report Corresponding error analysis conclusion facilitates tester to save the working time, improves working efficiency.
Second aspect, technical solution of the present invention provide a kind of device of automation generation server test report, comprising: inspection Survey module, template creation module, template path definition module, data acquisition module and export module;
Detection module whether there is for examining report template;
Template path definition module, for defining the store path of report template;
Data acquisition module, for obtaining test item data;
Template creation module, for test item data in the absence of detection module examining report template according to acquisition Type create report template;
Export module, the test item data for will acquire export to report template.
Further, in order to be protected to test data, it is provided with operating right, is needed when being operated to operating rights Limit is verified, and prevents test data from leaking.The device further include: authority acquiring module, judgment module, permission memory module and Output module;
Permission memory module, for storing the authority information for allowing to operate of setting;
Authority acquiring module, for obtaining current operator's authority information;
The authority information for allowing to operate stored in judgment module, authority information for will acquire and permission memory module Whether the operator's authority information for carrying out matching judgment acquisition is the stored authority information for allowing to operate;
Output module, if the authority information for judgment module judgement to obtain is not stored permission authority information, Output prompt: do not have export current project test report permission.
Further, in order to enable test report to play bigger effect, the content of test report is carried out further It is abundant, that is, the corresponding error analysis conclusion of error checking log is shown in test report, facilitate tester to save work Make the time, improves working efficiency.The device further include: test log obtains module, match information obtains module, test errors point Analyse conclusion searching module;
Test log obtains module, the corresponding test log of test case for obtaining test crash;
Match information obtain module, for analyze test log extract failure information keyword and in the database search and The match information of the failure information Keywords matching of extraction;
Test errors analyze conclusion searching module, for searching the corresponding test errors analysis knot of match information extracted By;
Export module is also used to the corresponding test errors analysis conclusion of test crash exporting to report template.
As can be seen from the above technical solutions, the invention has the following advantages that the present invention provides a kind of automation generations The method of test report, after the completion of project testing, system can be derived automatically from the test report of this project, guarantee test report data Accuracy, save the time of QA Manager's hand-coding test report, saved human cost, improve QA Manager's Testing efficiency.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention have substantive distinguishing features outstanding and it is significant ground it is progressive, implementation Beneficial effect be also obvious.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic flow chart of the method for one embodiment of the invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
The Key Term occurred in the present invention is explained below.
Embodiment one
As shown in Figure 1, the present invention provides a kind of method that automation generates server test report, include the following steps:
S1: test item data are obtained;
In this step, it should be noted that obtain test item data and specifically include: obtaining project stage title, specifically It is as follows: String projectName=projectAndRoundBiz.getNameById (projectIdStr);
String phaseName=projectAndRoundBiz.getNameById (phaseIdStr);
According to the configured list under the incoming condition acquisition stage, including:
Obtain configuration information list;Wherein, configuration Assembly Listing or stage configured list including setting;
Obtain configuration use-case list;
Use-case aggregate data, pass amount data, fail amount data under the acquisition stage;Acquisition stage or the lower test of configuration combination Details cake chart.It is implemented as follows:
S2: current operator's authority information is obtained;In order to be protected to test data, it is provided with operating right, is carried out It needs to verify operating right when operation, prevents test data from leaking;
S3: judging the permission authority information whether the operator's authority information obtained is and sets, if so, executing step S4;If it is not, executing step S8;
S4: examining report template whether there is, if so, executing step S6;If it is not, executing step S5;
It should be noted that the identical test report of format of the test output in order to make same type, needs to detect report Slide former whether there is, and need to be implemented the creation that step S5 carries out report template in case of absence;
S5: report template is created according to the type of the test item data of acquisition;
S6: the store path of report template is defined;
String tamplateName="/home/wordtemplate/report_templet.docx ";
S7: the test item data that will acquire export to report template, execute step S9;It is that will test in detail in this step Feelings cake chart, configuration information list, configuration use-case details list export to report template.
S8: output prompt: do not have export current project test report permission, execute step S9;
S9: terminate.
Embodiment two
S1: test item data are obtained;
In this step, it should be noted that obtain test item data and specifically include: obtaining project stage title, specifically It is as follows:
String projectName=projectAndRoundBiz.getNameById (projectIdStr);
String phaseName=projectAndRoundBiz.getNameById (phaseIdStr);
According to the configured list under the incoming condition acquisition stage, including:
Obtain configuration information list;Wherein, configuration Assembly Listing or stage configured list including setting;
Obtain configuration use-case list;
Use-case aggregate data, pass amount data, fail amount data under the acquisition stage;
Acquisition stage or the lower test details cake chart of configuration combination.
S2: current operator's authority information is obtained;In order to be protected to test data, it is provided with operating right, is carried out It needs to verify operating right when operation, prevents test data from leaking;
S3: judging the permission authority information whether the operator's authority information obtained is and sets, if so, executing step S4;If it is not, executing step S11;
S4: examining report template whether there is, if so, executing step S6;If it is not, executing step S5;
It should be noted that the identical test report of format of the test output in order to make same type, needs to detect report Slide former whether there is, and need to be implemented the creation that step S5 carries out report template in case of absence;
S5: report template is created according to the type of the test item data of acquisition;
S6: the store path of report template is defined;
String tamplateName="/home/wordtemplate/report_templet.docx ";
S7: the corresponding test log of test case of test crash is obtained;
S8: analysis test log extracts failure information keyword and searches in the database crucial with the failure information of extraction The matched match information of word;
S9: the corresponding test errors analysis conclusion of match information of extraction is searched;
S10: the corresponding test errors analysis conclusion of the test item data and test crash that will acquire exports to report mould Plate, execute step S12: herein, be will test details cake chart, configuration information list, configure the list of use-case details export to Report template, while the corresponding test errors analysis conclusion of test crash is also exported into report template;
Step S7-S10, will be in test report it should be noted that in order to enable test report to play bigger effect Appearance is further enriched, that is, the corresponding error analysis conclusion of error checking log is shown in test report, convenient Tester saves the working time, improves working efficiency.
S11: output prompt: do not have export current project test report permission, execute step S12;
S12: terminate.
Embodiment three
Technical solution of the present invention provides a kind of device of automation generation server test report, comprising: detection module, mould Plate creation module, template path definition module, data acquisition module and export module;
Detection module whether there is for examining report template;
Template path definition module, for defining the store path of report template;
Data acquisition module, for obtaining test item data;
Template creation module, for test item data in the absence of detection module examining report template according to acquisition Type create report template;
Export module, the test item data for will acquire export to report template.
In order to be protected to test data, it is provided with operating right, needs to test operating right when being operated Card, prevents test data from leaking.The device further include: authority acquiring module, judgment module, permission memory module and output mould Block;
Permission memory module, for storing the authority information for allowing to operate of setting;
Authority acquiring module, for obtaining current operator's authority information;
The authority information for allowing to operate stored in judgment module, authority information for will acquire and permission memory module Whether the operator's authority information for carrying out matching judgment acquisition is the stored authority information for allowing to operate;
Output module, if the authority information for judgment module judgement to obtain is not stored permission authority information, Output prompt: do not have export current project test report permission.
In order to enable test report to play bigger effect, the content of test report is further enriched, also It is to show the corresponding error analysis conclusion of error checking log in test report, facilitates tester to save the working time, mention High working efficiency.The device further include: test log obtains module, match information obtains module, test errors analysis conclusion is looked into Look for module;
Test log obtains module, the corresponding test log of test case for obtaining test crash;
Match information obtain module, for analyze test log extract failure information keyword and in the database search and The match information of the failure information Keywords matching of extraction;
Test errors analyze conclusion searching module, for searching the corresponding test errors analysis knot of match information extracted By;
Export module is also used to the corresponding test errors analysis conclusion of test crash exporting to report template.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer It is included within the scope of the present invention.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. a kind of method that automation generates server test report, which comprises the steps of:
Obtain test item data;
Define the store path of report template;
The test item data that will acquire export to report template.
2. the method that a kind of automation according to claim 1 generates server test report, which is characterized in that definition report The store path of slide former includes: before
Examining report template whether there is, if so, executing step: defining the store path of report template;
If it is not, creating report template according to the type of the test item data of acquisition.
3. the method that a kind of automation according to claim 2 generates server test report, which is characterized in that obtain and survey Project data is tried, is specifically included:
Obtain project stage title;
According to the configured list under the incoming condition acquisition stage.
4. the method that a kind of automation according to claim 3 generates server test report, which is characterized in that according to biography Enter in the configured list under the condition acquisition stage, specifically include:
Obtain configuration information list;Wherein, configuration Assembly Listing or stage configured list including setting;
Obtain configuration use-case list;
Use-case aggregate data, pass amount data, fa i l amount data under the acquisition stage;
Acquisition stage or the lower test details cake chart of configuration combination.
5. the method that a kind of automation according to claim 4 generates server test report, which is characterized in that will acquire Test item data export to report template, comprising:
Test details cake chart, configuration information list, configuration use-case details list are exported into report template.
6. the method that a kind of automation according to claim 2 generates server test report, which is characterized in that obtain and survey Project data is tried, later further include:
Obtain current operator's authority information;
Judge the permission authority information whether operator's authority information is and sets;
If so, executing step: examining report template whether there is;
If it is not, output prompt: not having export current project test report permission, terminate.
7. the method that a kind of automation according to claim 4 generates server test report, which is characterized in that this method Further include:
Obtain the corresponding test log of test case of test crash;
Test log is analyzed to extract failure information keyword and search for the failure information Keywords matching with extraction in the database Match information;
It searches the corresponding test errors of the match information extracted and analyzes conclusion;
The corresponding test errors analysis conclusion of test crash is exported into report template.
8. the device that a kind of automation generates server test report characterized by comprising detection module, template create mould Block, template path definition module, data acquisition module and export module;
Detection module whether there is for examining report template;
Template path definition module, for defining the store path of report template;
Data acquisition module, for obtaining test item data;
Template creation module, in the absence of detection module examining report template according to the class of the test item data of acquisition Type creates report template;
Export module, the test item data for will acquire export to report template.
9. the device that a kind of automation according to claim 8 generates server test report, which is characterized in that the device Further include: authority acquiring module, judgment module, permission memory module and output module;
Permission memory module, for storing the authority information for allowing to operate of setting;
Authority acquiring module, for obtaining current operator's authority information;
The authority information for allowing to operate stored in judgment module, authority information for will acquire and permission memory module carries out Whether operator's authority information that matching judgment obtains is the stored authority information for allowing to operate;
Output module, if the authority information for judgment module judgement to obtain is not stored permission authority information, output Prompt: do not have export current project test report permission.
10. the device that a kind of automation according to claim 9 generates server test report, which is characterized in that the dress It sets further include: test log obtains module, match information obtains module, test errors analyze conclusion searching module;
Test log obtains module, the corresponding test log of test case for obtaining test crash;
Match information obtains module, extracts failure information keyword and in the database search and extraction for analyzing test log Failure information Keywords matching match information;
Test errors analyze conclusion searching module, for searching the corresponding test errors analysis conclusion of match information extracted;
Export module is also used to the corresponding test errors analysis conclusion of test crash exporting to report template.
CN201910151416.6A 2019-02-28 2019-02-28 A kind of automation generates the method and device of server test report Withdrawn CN109902012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910151416.6A CN109902012A (en) 2019-02-28 2019-02-28 A kind of automation generates the method and device of server test report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910151416.6A CN109902012A (en) 2019-02-28 2019-02-28 A kind of automation generates the method and device of server test report

Publications (1)

Publication Number Publication Date
CN109902012A true CN109902012A (en) 2019-06-18

Family

ID=66945679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910151416.6A Withdrawn CN109902012A (en) 2019-02-28 2019-02-28 A kind of automation generates the method and device of server test report

Country Status (1)

Country Link
CN (1) CN109902012A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898359A (en) * 2020-07-15 2020-11-06 成都雨云科技有限公司 Intelligent quality detection report generation method and system
CN114268569A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Configurable network operation, maintenance, acceptance and test method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229562A (en) * 2016-03-25 2017-10-03 展讯通信(天津)有限公司 A kind of test report automatic statistical analysis method and device
CN107622014A (en) * 2017-09-22 2018-01-23 广州视源电子科技股份有限公司 Test report generation method, device, readable storage medium storing program for executing and computer equipment
CN109344060A (en) * 2018-09-20 2019-02-15 迈普通信技术股份有限公司 A kind of analysis method and device of automatic test

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107229562A (en) * 2016-03-25 2017-10-03 展讯通信(天津)有限公司 A kind of test report automatic statistical analysis method and device
CN107622014A (en) * 2017-09-22 2018-01-23 广州视源电子科技股份有限公司 Test report generation method, device, readable storage medium storing program for executing and computer equipment
CN109344060A (en) * 2018-09-20 2019-02-15 迈普通信技术股份有限公司 A kind of analysis method and device of automatic test

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111898359A (en) * 2020-07-15 2020-11-06 成都雨云科技有限公司 Intelligent quality detection report generation method and system
CN114268569A (en) * 2020-09-16 2022-04-01 中盈优创资讯科技有限公司 Configurable network operation, maintenance, acceptance and test method and device
CN114268569B (en) * 2020-09-16 2023-10-31 中盈优创资讯科技有限公司 Configurable network operation and maintenance acceptance test method and device

Similar Documents

Publication Publication Date Title
CN102122265B (en) System and method for verifying computer software test results
CN102135938B (en) Software product testing method and system
CN108959065A (en) The verification method and system of software interface test parameter
CN109902012A (en) A kind of automation generates the method and device of server test report
CN109902009A (en) A kind of method and system tested automatically under linux environment
CN109492081A (en) Text information search and information interacting method, device, equipment and storage medium
CN112069069A (en) Defect automatic positioning analysis method, device and readable storage medium
KR102099069B1 (en) Hybrid ERD Management System, and method thereof
Zhou et al. Confmapper: Automated variable finding for configuration items in source code
Wang et al. Smart contract vulnerability detection using code representation fusion
CN102681932B (en) Method for detecting processing correctness of software on abnormal input
Zun et al. Research on automated testing framework for multi-platform mobile applications
CN106445824A (en) Interface comprehensiveness management system based on character
CN115080448B (en) Method and device for automatically detecting inaccessible path of software code
CN116881512A (en) Cross-system metadata blood-edge automatic analysis method
CN113868035B (en) Automatic LTP performance test method and device
CN108228448B (en) Code tracking method and device
CN102882737A (en) Transaction language-1(TL1) command automatically testing method based on extensible markup language (XML) script
CN110008072A (en) A kind of method and device of testing hard disk performance and programming count result
CN108632263A (en) A kind of detection method of SQL injection point
CN115543847A (en) Method for automatically generating test case based on UI design draft
CN114090011A (en) Software development method convenient for developer to use
CN105227333B (en) The method and apparatus of network element device data maintenance
CN114444087A (en) Unauthorized vulnerability detection method and device, electronic equipment and storage medium
CN115237936B (en) Method, device, storage medium and equipment for detecting fields in SQL (structured query language) statement

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20190618

WW01 Invention patent application withdrawn after publication