CN112579474A - Software test requirement extraction system and test requirement extraction method thereof - Google Patents

Software test requirement extraction system and test requirement extraction method thereof Download PDF

Info

Publication number
CN112579474A
CN112579474A CN202011630770.6A CN202011630770A CN112579474A CN 112579474 A CN112579474 A CN 112579474A CN 202011630770 A CN202011630770 A CN 202011630770A CN 112579474 A CN112579474 A CN 112579474A
Authority
CN
China
Prior art keywords
test
module
extraction
file
content
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.)
Pending
Application number
CN202011630770.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.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN202011630770.6A priority Critical patent/CN112579474A/en
Publication of CN112579474A publication Critical patent/CN112579474A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

A software test requirement extraction system comprises an input module, a format conversion module, an identification module, an extraction module, an analysis module, a test module and a matching module; the input module is used for selecting a test basis file to be tested and transmitting the test basis file to the format conversion module; the format conversion module changes the content format of the test basis file into a paragraph format, and transmits the converted test basis file to the identification module; the identification module reads the requirement information in the test basis file and delivers the requirement information to the extraction module for classification and extraction of the information, and the extraction module extracts the information into a fixed format file; the analysis module logically judges the content to be tested in the demand extraction file and deletes other content; the test module selects a corresponding test program according to the content to be tested, the test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the demand extraction file and generates a test information table.

Description

Software test requirement extraction system and test requirement extraction method thereof
Technical Field
The invention belongs to the technical field of software testing, and particularly relates to a software testing requirement extraction system and a testing requirement extraction method thereof.
Background
The software test is based on test requirements, such as software task books, software requirement specification descriptions, software design descriptions, software interface communication protocols and other files, and testers can decompose the test requirements from the files and then design test cases according to the test requirements. Due to the complexity of the tested software system, a tester usually needs to expend great energy to analyze files, sort out test requirements and manually input the test requirements into a test document, so that the software testing efficiency is seriously reduced.
Disclosure of Invention
In order to solve the above problems, the present invention provides a software test requirement extraction system and a test requirement extraction method thereof, which accelerate the extraction of file information and the efficiency of software test, and the following details are provided
A software test requirement extraction system comprises an input module, a format conversion module, an identification module, an extraction module, an analysis module, a test module and a matching module; the input module is used for selecting a test basis file to be tested and transmitting the test basis file to the format conversion module; the format conversion module changes the content format of the test basis file into a paragraph format, and transmits the converted test basis file to the identification module; the identification module reads the demand information in the test basis file and delivers the demand information to the extraction module for classified extraction of the information, and the extraction module extracts the information into a fixed format file; the analysis module logically judges the content to be tested in the requirement extraction file and deletes other content; the test module selects a corresponding test program according to the content to be tested, the test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the required extraction file and generates a test information table.
Preferably, the test type is one of a function test, a performance test, an interface test, a boundary test, a margin test, an intensity test, a safety test, a recovery test, a data processing test, a capacity test, a logic test, a code walk-through, a code review and a human-computer interaction interface test.
Preferably, the test types are any two or more of a function test, a performance test, an interface test, a boundary test, a margin test, an intensity test, a safety test, a recovery test, a data processing test, a capacity test, a logic test, a code walk-through, a code review and a human-computer interaction interface test.
Preferably, the requirement information identified by the identification module is one of a title and whether the requirement is a valid test requirement.
Preferably, the requirement information identified by the identification module further includes a chapter number and paragraph content.
Preferably, the analysis module analyzes the content in the requirement extraction file line by line, and the logic judges that the content in the effective test requirement is one of yes, no, and title content.
Preferably, the extraction module is attached with a progress bar for displaying the extraction progress.
Preferably, the test information table includes a requirement description, a test type, a test item content description, and a test policy content description.
A test requirement extraction method of a software test requirement extraction system comprises the software test requirement extraction system, and the operation steps comprise:
the S1 input module selects the test basis file to be tested and transmits the test basis file to the format conversion module;
s2, the format conversion module changes the content format of the test basis file into paragraph format and transmits the converted test basis file to the identification module;
s3, the identification module reads the demand information in the test basis file and delivers the demand information to the extraction module for information classification and extraction, and the extraction module extracts the information into a fixed format file;
s4, the analysis module logically judges the content to be tested in the requirement extraction file and deletes other content;
s5, configuring a test device for the content to be tested;
s6 activating the test module according to the test equipment, the test module selecting the corresponding test program according to the content to be tested and the test equipment;
s7 starting a test program;
and the S8 test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the requirement extraction file and generates a test information table.
Has the advantages that: the software test requirement extraction system can automatically analyze and process files according to test basis files, integrates and extracts requirement information through the input module, the format conversion module, the identification module, the extraction module, the analysis module, the test module and the matching module, reduces managers for file analysis of testers, comprehensively combs test requirements, does not need to manually input the test requirements into test files, and improves software test efficiency.
Drawings
FIG. 1 is a block diagram illustrating a file format of a test compliance file after passing through an extraction module according to an embodiment of the present invention;
FIG. 2 is a table of test information according to one embodiment of the present invention;
FIG. 3 is a flowchart illustrating the operation of one embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is noted that the terms first, second, third, etc. are used herein to describe various components or features, but these components or features are not limited by these terms. These terms are only used to distinguish one element or part from another element or part. Terms such as "first," "second," and other numerical terms when used herein do not imply a sequence or order unless clearly indicated by the context. For convenience of description, spatially relative terms such as "inner", "outer", "upper", "lower", "left", "right", "upper", "left", "right", and the like are used herein to describe the orientation relation of the components or parts in the present embodiment, but these spatially relative terms do not limit the orientation of the technical features in practical use.
As shown in fig. 1-3, a software testing requirement extraction system includes an input module, a format conversion module, an identification module, an extraction module, an analysis module, a testing module, and a matching module; the input module is used for selecting a test basis file to be tested and transmitting the test basis file to the format conversion module; the format conversion module changes the content format of the test basis file into a paragraph format, and transmits the converted test basis file to the identification module; the identification module reads the demand information in the test basis file and delivers the demand information to the extraction module for classified extraction of the information, and the extraction module extracts the information into a fixed format file; the analysis module logically judges the content to be tested in the requirement extraction file and deletes other content; the test module selects a corresponding test program according to the content to be tested, the test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the required extraction file and generates a test information table.
The system of the invention is specifically as follows: the input module, the format conversion module, the identification module, the extraction module, the analysis module, the test module and the matching module are sequentially connected, and a test basis file is sequentially processed by each module in the sequence. The test basis file is a word document and comprises test contents such as function requirements, performance requirements, interface requirements and the like. The content of the test basis file can be set by the person in the art according to the requirement. Then the input module is used as the input port of the system of the invention, the test reference file is transmitted to the format conversion module for format change, if the characters in the original file exist in a table form or in various forms of other process texts or in other formats, the format conversion module directly converts the test reference file into a paragraph text. Then the recognition module recognizes according to the content of chapters, paragraphs and the like in the test basis file and transmits the recognized result to the extraction module, the extraction module runs a program to classify, count and integrate the content into a fixed format file according to related content, equipment matching is carried out according to the requirement of the fixed format file, then the test module is started, the required test type is selected for testing, and then the matching module carries out category matching on the test result and the fixed format file and then outputs a test information table. The fixed format file is the demand extraction file.
The software test requirement extraction system can automatically analyze and process files according to test basis files, integrates and extracts requirement information through the input module, the format conversion module, the identification module, the extraction module, the analysis module, the test module and the matching module, reduces managers for file analysis of testers, comprehensively combs test requirements, does not need to manually input the test requirements into test files, and improves software test efficiency.
In a preferred embodiment, the test type is one of a function test, a performance test, an interface test, a boundary test, a margin test, a strength test, a security test, a recovery test, a data processing test, a capacity test, a logic test, a code walkthrough, a code review, and a human-computer interaction interface test.
In a preferred embodiment, the test types are any two or more of a function test, a performance test, an interface test, a boundary test, a margin test, a strength test, a security test, a recovery test, a data processing test, a capacity test, a logic test, a code walkthrough, a code review, and a human-computer interaction interface test.
In a preferred embodiment, the requirement information identified by the identification module is one of a title and whether the requirement is a valid test requirement.
In a preferred embodiment, the requirement information identified by the identification module further includes a chapter number and paragraph contents.
In a preferred embodiment, the analysis module analyzes the content in the requirement extraction file line by line, and the logic determines that the content in the effective test requirement is one of "yes" or "no" or "title content only".
In a preferred embodiment, the extraction module is attached with a progress bar for displaying the extraction progress.
In a preferred embodiment, the test information table includes a requirement description, a test type, a test item content description, and a test strategy content description.
A test requirement extraction method of a software test requirement extraction system comprises the software test requirement extraction system, and the operation steps comprise:
the S1 input module selects the test basis file to be tested and transmits the test basis file to the format conversion module;
s2, the format conversion module changes the content format of the test basis file into paragraph format and transmits the converted test basis file to the identification module;
s3, the identification module reads the demand information in the test basis file and delivers the demand information to the extraction module for information classification and extraction, and the extraction module extracts the information into a fixed format file;
s4, the analysis module logically judges the content to be tested in the requirement extraction file and deletes other content;
s5, configuring a test device for the content to be tested;
s6 activating the test module according to the test equipment, the test module selecting the corresponding test program according to the content to be tested and the test equipment;
s7 starting a test program;
and the S8 test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the requirement extraction file and generates a test information table.
The above embodiments are not limited to the technical solutions of the embodiments themselves, and the embodiments may be combined with each other into a new embodiment. The above embodiments are only for illustrating the technical solutions of the present invention and are not limited thereto, and any modification or equivalent replacement without departing from the spirit and scope of the present invention should be covered within the technical solutions of the present invention.

Claims (9)

1. A software test requirement extraction system is characterized by comprising an input module, a format conversion module, an identification module, an extraction module, an analysis module, a test module and a matching module;
the input module is used for selecting a test basis file to be tested and transmitting the test basis file to the format conversion module;
the format conversion module changes the content format of the test basis file into a paragraph format, and transmits the converted test basis file to the identification module;
the identification module reads the demand information in the test basis file and delivers the demand information to the extraction module for classified extraction of the information, and the extraction module extracts the information into a fixed format file;
the analysis module logically judges the content to be tested in the requirement extraction file and deletes other content;
the test module selects a corresponding test program according to the content to be tested, the test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the required extraction file and generates a test information table.
2. The software testing requirement extraction system of claim 1, wherein the testing type is one of a function test, a performance test, an interface test, a boundary test, a margin test, an intensity test, a security test, a recovery test, a data processing test, a capacity test, a logic test, a code walk-through, a code review, a human-machine interaction interface test.
3. The software test requirement extraction system of claim 1, wherein the test types are any two or more of a function test, a performance test, an interface test, a boundary test, a margin test, an intensity test, a security test, a recovery test, a data processing test, a capacity test, a logic test, a code walk-through, a code review, and a human-computer interaction interface test.
4. The software testing requirement extraction system of claim 1, wherein the requirement information identified by the identification module is one of a title and whether the requirement is a valid testing requirement.
5. The software testing requirement extraction system of claim 4, wherein the requirement information identified by the identification module further comprises a chapter number and paragraph contents.
6. The software testing requirement extraction system of claim 1, wherein the analysis module analyzes the content in the requirement extraction file line by line, and the logic determines that the content in the valid testing requirement is one of yes, no, or title only.
7. The software testing requirement extraction system of claim 1, wherein the extraction module is accompanied by a progress bar showing the progress of extraction.
8. The software testing requirement extraction system of claim 1, wherein the test information table comprises a requirement description, a test type, a test item content description, and a test policy content description.
9. A test requirement extraction method for a software test requirement extraction system, comprising the software test requirement extraction system of any one of claims 1 to 8, the operation steps comprising:
the S1 input module selects the test basis file to be tested and transmits the test basis file to the format conversion module;
s2, the format conversion module changes the content format of the test basis file into paragraph format and transmits the converted test basis file to the identification module;
s3, the identification module reads the demand information in the test basis file and delivers the demand information to the extraction module for information classification and extraction, and the extraction module extracts the information into a fixed format file;
s4, the analysis module logically judges the content to be tested in the requirement extraction file and deletes other content;
s5, configuring a test device for the content to be tested;
s6 activating the test module according to the test equipment, the test module selecting the corresponding test program according to the content to be tested and the test equipment;
s7 starting a test program;
and the S8 test module outputs the tested data to the matching module, and the matching module matches the output data with the content of the requirement extraction file and generates a test information table.
CN202011630770.6A 2020-12-30 2020-12-30 Software test requirement extraction system and test requirement extraction method thereof Pending CN112579474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011630770.6A CN112579474A (en) 2020-12-30 2020-12-30 Software test requirement extraction system and test requirement extraction method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011630770.6A CN112579474A (en) 2020-12-30 2020-12-30 Software test requirement extraction system and test requirement extraction method thereof

Publications (1)

Publication Number Publication Date
CN112579474A true CN112579474A (en) 2021-03-30

Family

ID=75144529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011630770.6A Pending CN112579474A (en) 2020-12-30 2020-12-30 Software test requirement extraction system and test requirement extraction method thereof

Country Status (1)

Country Link
CN (1) CN112579474A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838672A (en) * 2014-03-04 2014-06-04 中国工商银行股份有限公司 Automated testing method and device for all-purpose financial statements
CN107832229A (en) * 2017-12-03 2018-03-23 中国直升机设计研究所 A kind of system testing case automatic generating method based on NLP
CN111176996A (en) * 2019-12-25 2020-05-19 平安普惠企业管理有限公司 Test case generation method and device, computer equipment and storage medium
CN111581090A (en) * 2020-04-30 2020-08-25 重庆富民银行股份有限公司 Automatic test case generation method and system based on NLP and RF framework

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103838672A (en) * 2014-03-04 2014-06-04 中国工商银行股份有限公司 Automated testing method and device for all-purpose financial statements
CN107832229A (en) * 2017-12-03 2018-03-23 中国直升机设计研究所 A kind of system testing case automatic generating method based on NLP
CN111176996A (en) * 2019-12-25 2020-05-19 平安普惠企业管理有限公司 Test case generation method and device, computer equipment and storage medium
CN111581090A (en) * 2020-04-30 2020-08-25 重庆富民银行股份有限公司 Automatic test case generation method and system based on NLP and RF framework

Similar Documents

Publication Publication Date Title
CN110852065B (en) Document auditing method, device, system, equipment and storage medium
US11810070B2 (en) Classifying digital documents in multi-document transactions based on embedded dates
CN110020424A (en) Extracting method, the extracting method of device and text information of contract information
US20090148048A1 (en) Information classification device, information classification method, and information classification program
CN110765889B (en) Feature extraction method, related device and storage medium for legal document
CN112527994A (en) Emotion analysis method, emotion analysis device, emotion analysis equipment and readable storage medium
CN109858626B (en) Knowledge base construction method and device
CN110765639A (en) Electrical simulation modeling method and device and readable storage medium
CN110209643A (en) A kind of data processing method and device
CN112884413A (en) Method, system, equipment and storage medium for generating bill of material
CN103577301A (en) Method and terminal for displaying progress information
CN106250518A (en) Intelligent question searching method and device
CN108876452A (en) Method and device for acquiring demand information of electricity customer and electronic equipment
CN110941702A (en) Retrieval method and device for laws and regulations and laws and readable storage medium
CN112329418A (en) Parallel approval method, equipment and computer readable storage medium
CN113450147A (en) Product matching method, device and equipment based on decision tree and storage medium
CN107239447A (en) Junk information recognition methods and device, system
CN114973290A (en) Intelligent order examination method and system based on OCR engine
CN103258021B (en) The character terminal characteristic extracting method that a kind of Behavior-based control is analyzed
US20040123237A1 (en) Example-based concept-oriented data extraction method
CN106528566A (en) Log file output method, server and client
US20060143555A1 (en) Apparatus and method for extracting information from a formatted document
CN112579474A (en) Software test requirement extraction system and test requirement extraction method thereof
CN113900629A (en) Automatic engine implementation system of computer process
CN102685347B (en) Image processing apparatus and image processing method

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