CN106033392A - Method and device for detecting based on inspection word requirement - Google Patents

Method and device for detecting based on inspection word requirement Download PDF

Info

Publication number
CN106033392A
CN106033392A CN201510111694.0A CN201510111694A CN106033392A CN 106033392 A CN106033392 A CN 106033392A CN 201510111694 A CN201510111694 A CN 201510111694A CN 106033392 A CN106033392 A CN 106033392A
Authority
CN
China
Prior art keywords
detection
inspection
demand
word
rule
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
CN201510111694.0A
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.)
SHANGHAI AVIATION INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI AVIATION INFORMATION 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 SHANGHAI AVIATION INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI AVIATION INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510111694.0A priority Critical patent/CN106033392A/en
Publication of CN106033392A publication Critical patent/CN106033392A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a method and a device for detecting based on inspection word requirements. The method comprises: grouping inspection words according to types, to form inspection word classification, combining the inspection word classification with detection methods and comparison logic according to specifications, to form detection expressions, and the detection expressions forming detection specifications, then, based on the detection specifications, establishing a detection scheme, and finally, according to the detection scheme, automatically executing a series of mechanical detection in high repeatability on software requirements, and marking problem information corresponding to grouping identification detection specifications, to assist detection personnel to complete operation of software requirement detection. The method and the device solve defects of indistinct detection contents, slow detection speed, and non-visual problem positioning in existing software development process requirement detection. The method and the device realize technical effects of detailed and determined inspection scheme, fast inspection speed, and visual problem positioning.

Description

Based on the detection method and the device that check word demand
Technical field
The present invention relates to the technical field of computer software programs exploitation, particularly to one to soft Part exploitation demand carries out the method and device detected.
Background technology
Software requirement is the significant data in software development process, is software design, encodes, surveys The basis of a series of activities such as examination and foundation.Software requirement is complete, clear to software to be developed Clear, accurately and the description of unambiguity, generally with natural language completely, accurately, specifically retouch State the functional of software system and non-functional requirement.In existing software development process, software item In mesh, the mistake of four to sixty percent is all to produce in analysis and the acquisition stage of demand, and software item The failed main cause of mesh is exactly the of low quality of software requirement.
In civil onboard software development field, the safety criterion of authority defines in software development The software requirement of the various ranks produced in journey: by analyzing system requirements and system architecture, Generate high-rise demand;High-rise demand is developed further into one or more layers in software design procedure Follow-up low layer demand.The quality of software requirement itself is proposed target, is distinctly claimed software Demand should possess: unambiguity, verifiability, integrity, accurately and consistently property, can revise Property, traceability and upper strata demand accordance and defer to the features such as standard.Software requirement Checking one of activity indispensable as software verification process, target is to find and be reported in soft The demand mistake that may introduce in part demand process and software design procedure, and guarantee software requirement Meet these characteristic target.
The basic procedure of traditional software requirement Survey Operations has: write software requirement checklist, Content contains unambiguity, verifiability, integrity, concordance, alterability, traceable Property and upper strata demand accordance and defer to the aspects such as standard, check item is indifferent to details, Only provide the scope of examination of summary;Prepare software requirement document to be checked, software to be checked Requirement documents is typically made up of the software requirement (high-rise demand/low layer demand) of entry;Inspection The personnel that look into, according to checklist, carry out hand inspection, and record check result one by one to software requirement.
Existing requirement checking method has the disadvantage in that
1) checklist content is general.It is above-listed according to checklist that existing method generally relies on inspection personnel Every the check item gone out, carries out hand inspection to every software requirement.Therefore, in checklist only The check item of summary can be listed, such as " software high level demand is all unambiguous ", and do not enter one Step illustrates which situation is " ambiguous ", and check item quantity otherwise can be made excessive.In reality In inspection, inspection personnel's experience can only be relied on to judge.Such mode, except to inspection Outside personnel specialty competency profiling is higher, the most easily omitting some problems, impact is checked on the quality.
2) check that speed is slow.Existing method is completely dependent on whether artificial judgment every software requirement accords with Close check item content.Wherein for " unambiguity ", feature such as " verifiability ", it is desirable to soft Part demand not may occur in which " ambiguity ", " uncertain " and the word of " non-quantized ", pure people Work investigates these words for every software requirement to waste time and energy, and is also very easy to make mistakes.Meanwhile, The work of this part occupies inspection personnel's most of the time, also cause its cannot by more energy and Time is placed on other inspection aspect.
3) positioning problems is the most directly perceived.When being pinpointed the problems by certain check item, inspection personnel needs Problem of filling on the explanation hurdle of check item describes and location information, owing to these information depend on completely Describing by word, problem and desired content cannot be connected by reader intuitively.For some Repeating more problem, filling in problem description itself also can become extra work burden.
Summary of the invention
Present invention detection instrument based on the software requirement checking word, supports custom software demand Detected rule and detection scheme, and to according to the detection scheme specified, software requirement is examined Surveying, be automatically performed a series of mechanization, detection content that multiplicity is high, testing staff is complete for auxiliary Become the detection work of software requirement.A kind of detection method based on inspection word demand and device are provided, To solve to detect present in the detection of existing software development process demand, content is general, detection The shortcomings such as speed is slow, positioning problems is the most directly perceived.
For solving above-mentioned technical problem, the detection method based on inspection word demand that the present invention provides And device is achieved in that
A kind of detection device based on inspection word demand, the software in inspection software is developed needs Ask, it is characterised in that including:
Check word sort module, inspection word is grouped by type, formed and check word classification;
Detection method module, arranges the detection method of content needed for multiple detection;
Detected rule module, by the classification of described inspection word and described detection method and CL Compare Logic Combining by rule, form detection expression formula, described detection expression formula forms described detected rule;
Detection scheme module, sets up detection scheme based on described detected rule;
Demand detection performs module, automatically software requirement is performed detection according to described detection scheme, And the problem information that detected rule described in group character is corresponding is shown.
Described in described detected rule module, the detection expression formula in detected rule meets self-defined During rule, described detected rule will be triggered, and warning and prompt statement information will be shown.
Described detection scheme module support define simultaneously and safeguard different described detection schemes with For different detection scenes.
The detection of described demand performs the demand text band mark one to one of module output and typing The testing result text of note.
A kind of detection method based on inspection word demand, the software in inspection software is developed needs Ask, it is characterised in that including:
Check word classifying step, inspection word is grouped by type, formed and check word classification;
Detection method step, arranges the detection method of content needed for multiple inspection;
Detected rule step, by the classification of described inspection word and described detection method and CL Compare Logic Combine by rule, form detection expression formula, described detection expression formula form described detected rule;
Detection scheme step, sets up detection scheme based on described detected rule;
Demand detection performs step, automatically software requirement is performed detection according to described detection scheme, And the problem information that detected rule described in group character is corresponding is shown.
Described in described detected rule step, the detection expression formula in detected rule meets self-defined During rule, described detected rule will be triggered, and warning and prompt statement information will be shown.
Described detection scheme step support define simultaneously and safeguard different described detection schemes with For different detection scenes.
The detection of described demand performs the demand text band mark one to one of step output and typing The testing result text of note.
The positive effect of the present invention is:
1) detection scheme in detail and determines.Based on the software requirement detection method checking word so that Every detected rule with clearly defined objective clearly.Such as: for the detected rule of " unambiguously ", Use defined " ambiguity word " to check part of speech so that each word belonging to this part of speech by List detection range in.Clearly defined inspection target is conducive to drawing complete, consistent, repeatable Inspection result, improve software requirement quality.
2) detection speed is fast.Once defining detection scheme, inspection personnel only need to input to be detected Software requirement content, just can fully automatically complete the inspection work specified.Relative to traditional Hand inspection method, it is fast that the present invention not only detects speed, and stopped to make mistakes, omission problem Possibility.The detection work of major part mechanization it is automatically performed, it is allowed to inspection personnel will by instrument More energy and times are placed on the detection content of other none artificial judgement of establishing rules then, must rely on On.
3) positioning problems is directly perceived.Assembly of the invention, after performing testing result, uses highlighted shape Formula directly in desired content text identify problem, make each problem position can ocular and clear, And present by corresponding detected rule classification, it is simple to inspection personnel's quick positioning question.
Accompanying drawing explanation
Fig. 1 is the detection device block diagram based on inspection word demand of the present invention;
Fig. 2 is based on the detection method flow chart checking word demand.
Specific embodiment
The present invention is alleged checks that word refers to the key that judge the most problematic to software requirement Word.The detection method based on inspection word demand of present invention proposition and device are at software development process In, when carrying out software requirement detection, using Automatic Measurement Technique auxiliary user to complete some has The detection work that rule, mechanization and repeated workload are big.Support User Defined software requirement Detected rule and detection scheme, the desired content specified can be carried out according to detection scheme Detection, and produce text desired content and the testing result information of tape label.By this device, Software requirement can be carried out syntax and semantics detection, get rid of the syntax error of software requirement, two Justice, uncertain, can not quantify, the problem such as not verifiable, thus allow user by more essences Power and time are placed on other without absolute rule, it is necessary to rely on the artificial detection content understanding and judging On.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawings The present invention is described in further detail with embodiment.
Such as Fig. 1, check in word sort module 11 and will check that word is divided into different having jointly The set checking word of meaning.By defining the set of a class word, can be targetedly to software Desired content detects.Conventional inspection word is classified such as: ambiguity word, non-quantized word, the most true Determine word and demand mark word etc..User can use this module by adding, editing and delete Function, the classification of self-defined inspection word and the inspection word comprised of respectively classifying.
The built-in eight kinds of detection methods of detection method module 12, cover the required content of demand detection. These eight kinds of detection methods include:
1. beginning of the sentence.Judge to specify and check that word is whether at the beginning of the sentence of detected content;
2. title case.Judge whether the character that detected content first occurs is capitalization;
3. a tail.Judge to specify and check that word is whether at the sentence tail of detected content;
4. occurrence number.Judge to specify and check that word occurred several times in detected content;
5. all Caps.Judge to specify and check word whether all Caps in detected content;
6. statement quantity.Judge the quantity of statement in detected content;
7. statement length.Judge the character length in a statement of requirements;
8. judge the word quantity in a statement of requirements.
In detected rule module 13, detected rule is that software requirement content is carried out grammer or semanteme The set of one group of detection expression formula of detection.That is, one detected rule is expressed by some detections Formula forms, and every detection expression formula is again by checking that part of speech and detection method form.Additionally, user The interpolation of this module can be used, edit and delete function, self-defined detected rule.
Wherein detection expression formula is a mathematics comparison operation formula, is used for defining certain detection method The condition that must is fulfilled for of output valve.Detection method, inspection word classification and CL Compare Logic combine Come, form a detection expression formula.The attribute of detection expression formula includes:
1. detection method, for the detection method of this detection expression formula;
2. detection part of speech, determines according to selected detection method, detects expression formula for this Inspection word classification, wherein for " beginning of the sentence ", " sentence tail ", " occurrence number ", " all Caps " These four detection method, need to specify inspection word classification, and remaining method then need not be specified;
The most case sensitive, to the most case sensitive during inspection word coupling;
4. comparison operators, depending on selected detection method, " beginning of the sentence ", " title case ", " sentence tail ", the comparison operators of " all Caps " these four detection method be "=", user is the most optional Select;" occurrence number ", " statement quantity ", " statement length ", the inspection of " word quantity " these four The comparison operators of survey method can be "<,≤,=,>=,>";
5. fiducial value, depending on selected " detection method ", " beginning of the sentence ", " beginning of the sentence is big Write ", " sentence tail ", the fiducial value of " all Caps " these four detection method can be "Yes" or "No"; " occurrence number ", " statement quantity ", " statement length ", " word quantity " these four detection side The fiducial value of method is nonnegative integer, can be inputted by user.
Such as, a detection expression formula is used to be expressed as follows semanteme, in a statement of requirements, no Word containing ambiguity can occur.Can be defined as follows by detection expression formula:
Detection method: occurrence number;Inspection word is classified: ambiguity;The most case sensitive: no; Comparison operators: be more than;Fiducial value: 1.
In detection scheme module 14, based on defined some detected rule, can set up Detection scheme.User can use the interpolation of this module, edit and delete function, self-defined inspection Survey scheme.The present invention supports to preset and overlaps detection scheme more, and each detection scheme can comprise multiple Detected rule.Wherein, the attribute of detection scheme includes: numbering, and detection scheme numbering can not weigh Multiple, and must be with letter, numeral or underscore composition;Detection scheme title, is used for identifying inspection Survey scheme;Illustrate, for the summary content of detection scheme is described.
Demand detection performs in module 15, based on the detection scheme arranged, and can be to appointment Desired content detect according to detection scheme, and according to testing result output tape label richness Text desired content and corresponding prompt statement information.The detection of execution demand includes: select detection Scheme;The desired content that typing is to be checked, can by the way of writing or replicating stickup, The typing of " desired content " region needs the demand text of detection;Perform detection, automatically according to All desired contents are detected by the detection scheme selected;Detection terminates, after execution, and this dress Put output detections result and information respectively, for reference.
In Fig. 2, check word classifying step 21, inspection word is grouped by type, formed and check Word is classified.
Detection method step 22, contains the detection of content needed for all demands detect for built-in eight kinds Method, user is without the most self-defined new detection method.
Detected rule step 23, by the inspection word classification formed in step 21 and step 22 Detection method and CL Compare Logic combine by certain rule, form detection expression formula, and by some Detection expression formula composition detected rule.
When all detection expression formulas in a detected rule all meet, then trigger this detection Rule, and provide warning and prompt statement information.The attribute of detected rule includes: numbering, inspection Survey rule numbers is not reproducible, and must be with letter, numeral or underscore composition;Detected rule Title, for recognition detection rule;Warning scope, word or whole sentence, for definition when detection To when meeting the object of warning condition, it is to do warning label output in which way;Make mistakes classification, Grammer or semanteme, different classifications of makeing mistakes, corresponding different prompting mode;Prompt statement, when When detected rule is triggered, the prompting be given, can be by User Defined.
Detection scheme step 24, sets up detection side based on defined detected rule in step 23 Case.
Demand detection performs step 25, user specify detection scheme, and automatically according to user The detection scheme specified performs detection to software requirement.
After detection terminates, Analysis of test results step 26 is according to the Analysis of test results mark of output Note information.Specifically, such as syntax error is led to by blue underscore labelling, semantic error Cross red font labelling.Information is then the miscue information providing everywhere labelling. When user clicks on certain information, position that can be corresponding in testing result region, with height Bright yellow background color mark.To facilitate user quickly to position and clear and definite mistake.
From above example, by this device of the present invention, it is possible to achieve to software requirement Carry out semi-automation syntax and semantics inspection, get rid of the syntax error of software requirement, ambiguity, Uncertain, can not quantify, the problem such as not verifiable, overcoming existing software development process needs Seek the shortcomings such as the scope of examination is general, it is slow to check speed, positioning problems is the most directly perceived present in inspection.
Although depicting the present invention by embodiment, it will be appreciated by the skilled addressee that this Bright being not limited to above-mentioned specific embodiment, those skilled in the art can be in claim In the range of make various deformation or amendment, this has no effect on the flesh and blood of the present invention.

Claims (8)

1. a detection device based on inspection word demand, the software in inspection software is developed needs Ask, it is characterised in that including:
Check word sort module, inspection word is grouped by type, formed and check word classification;
Detection method module, arranges the detection method of content needed for multiple detection;
Detected rule module, by the classification of described inspection word and described detection method and CL Compare Logic Combine by rule, form detection expression formula, described detection expression formula composition described detection rule Then;
Detection scheme module, sets up detection scheme based on described detected rule;
Demand detection performs module, automatically software requirement is performed detection according to described detection scheme, And the problem information that detected rule described in group character is corresponding is shown.
A kind of detection device based on inspection word demand the most according to claim 1, its feature Being, the detection expression formula in detected rule described in described detected rule module meets certainly During definition rule, described detected rule will be triggered, and warning and prompt statement information will be shown.
A kind of detection device based on inspection word demand the most according to claim 1, its feature Being, described detection scheme module support defines simultaneously and safeguards different described detection sides Case uses for difference detection scene.
A kind of detection device based on inspection word demand the most according to claim 1, its feature Being, the detection of described demand performs the demand text of module output and typing one to one The testing result text of tape label.
5. a detection method based on inspection word demand, the software in inspection software is developed needs Ask, it is characterised in that including:
Check word classifying step, inspection word is grouped by type, formed and check word classification;
Detection method step, arranges the detection method of content needed for multiple inspection;
Detected rule step, by the classification of described inspection word and described detection method and CL Compare Logic Combine by rule, form detection expression formula, described detection expression formula form described detection Rule;
Detection scheme step, sets up detection scheme based on described detected rule;
Demand detection performs step, automatically software requirement is performed detection according to described detection scheme, And the problem information that detected rule described in group character is corresponding is shown.
A kind of detection method based on inspection word demand the most according to claim 5, its feature Being, the detection expression formula in detected rule described in described detected rule step meets certainly During definition rule, described detected rule will be triggered, and warning and prompt statement information will be shown.
A kind of detection method based on inspection word demand the most according to claim 5, its feature Being, described detection scheme step support defines simultaneously and safeguards different described detection sides Case uses for difference detection scene.
A kind of detection method based on inspection word demand the most according to claim 5, its feature Being, the detection of described demand performs the demand text of step output and typing one to one The testing result text of tape label.
CN201510111694.0A 2015-03-13 2015-03-13 Method and device for detecting based on inspection word requirement Pending CN106033392A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510111694.0A CN106033392A (en) 2015-03-13 2015-03-13 Method and device for detecting based on inspection word requirement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510111694.0A CN106033392A (en) 2015-03-13 2015-03-13 Method and device for detecting based on inspection word requirement

Publications (1)

Publication Number Publication Date
CN106033392A true CN106033392A (en) 2016-10-19

Family

ID=57150753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510111694.0A Pending CN106033392A (en) 2015-03-13 2015-03-13 Method and device for detecting based on inspection word requirement

Country Status (1)

Country Link
CN (1) CN106033392A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025114A (en) * 2017-04-17 2017-08-08 广州视源电子科技股份有限公司 A kind of software requirement information matches degree inspection method and system
CN107741843A (en) * 2017-10-10 2018-02-27 中国航发控制系统研究所 A kind of inspection method and check device of embedded software Specification
CN109818833A (en) * 2019-03-14 2019-05-28 北京信而泰科技股份有限公司 A kind of ethernet test system and ethernet test method
CN110442324A (en) * 2019-06-18 2019-11-12 湖南大学 A kind of software requirement text expression defect inspection method, system and computer storage medium
CN110826312A (en) * 2019-10-12 2020-02-21 湖南大学 Software requirement specification evaluation method
CN112632603A (en) * 2020-12-21 2021-04-09 京东数科海益信息科技有限公司 Method and device for managing detection information
CN113220291A (en) * 2021-04-30 2021-08-06 上海适享文化传播有限公司 High-multiplexing code implementation method called through abstract program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102819490A (en) * 2012-07-20 2012-12-12 北京邮电大学 Method and system for software testing based on given defect description information
US20130030753A1 (en) * 2011-07-29 2013-01-31 Hon Hai Precision Industry Co., Ltd. Testing system and method using same
CN103813279A (en) * 2012-11-14 2014-05-21 中国移动通信集团设计院有限公司 Junk short message detecting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130030753A1 (en) * 2011-07-29 2013-01-31 Hon Hai Precision Industry Co., Ltd. Testing system and method using same
CN102819490A (en) * 2012-07-20 2012-12-12 北京邮电大学 Method and system for software testing based on given defect description information
CN103813279A (en) * 2012-11-14 2014-05-21 中国移动通信集团设计院有限公司 Junk short message detecting method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025114A (en) * 2017-04-17 2017-08-08 广州视源电子科技股份有限公司 A kind of software requirement information matches degree inspection method and system
CN107741843A (en) * 2017-10-10 2018-02-27 中国航发控制系统研究所 A kind of inspection method and check device of embedded software Specification
CN109818833A (en) * 2019-03-14 2019-05-28 北京信而泰科技股份有限公司 A kind of ethernet test system and ethernet test method
CN109818833B (en) * 2019-03-14 2021-08-17 北京信而泰科技股份有限公司 Ethernet test system and Ethernet test method
CN110442324A (en) * 2019-06-18 2019-11-12 湖南大学 A kind of software requirement text expression defect inspection method, system and computer storage medium
CN110442324B (en) * 2019-06-18 2021-09-14 湖南大学 Software requirement text expression defect detection method, system and storage medium
CN110826312A (en) * 2019-10-12 2020-02-21 湖南大学 Software requirement specification evaluation method
CN110826312B (en) * 2019-10-12 2023-04-18 湖南大学 Software requirement specification evaluation method
CN112632603A (en) * 2020-12-21 2021-04-09 京东数科海益信息科技有限公司 Method and device for managing detection information
CN112632603B (en) * 2020-12-21 2024-04-05 京东科技信息技术有限公司 Method and device for managing detection information
CN113220291A (en) * 2021-04-30 2021-08-06 上海适享文化传播有限公司 High-multiplexing code implementation method called through abstract program

Similar Documents

Publication Publication Date Title
CN106033392A (en) Method and device for detecting based on inspection word requirement
Lami et al. An automatic tool for the analysis of natural language requirements
CN103019937B (en) A kind of human-machine interaction interface traverse test method
CN103336760B (en) A kind of method and device based on reverse-engineering automatic generating software document
CN104699611B (en) A kind of defect information extracting method that pattern is changed based on open source software defect code
CN109783079A (en) A kind of code annotation generation method based on program analysis and Recognition with Recurrent Neural Network
CN105243108B (en) Intelligent reporting platform system based on XBRL
CN104317589B (en) A kind of code automatic generation method and device for being used to load dynamic link library
CN106156083A (en) A kind of domain knowledge processing method and processing device
CN106980637A (en) SQL checking methods and device
CN109492106B (en) Automatic classification method for defect reasons by combining text codes
CN102804147A (en) Code inspection executing system for performing a code inspection of ABAP source codes
CN101655837A (en) Method for detecting and correcting error on text after voice recognition
CN107168762B (en) Body-based RUCM (robust object model) consistency checking method
CN107862327B (en) Security defect identification system and method based on multiple features
CN104423951B (en) Method and apparatus for user interface
CN110543422B (en) Software package code defect data processing method, system and medium for FPR
CN109710518A (en) Script checking method and device
WO2013141886A1 (en) System and method for document indexing and drawing annotation
CN103914379B (en) Fault is automatically injected the method with fault detect and system thereof
CN101527011B (en) Method and device for automatically guiding recovery processing flow in real-time
CN113742205A (en) Code vulnerability intelligent detection method based on man-machine cooperation
CN108021390A (en) A kind of document defect self-repairing method of Java Application Programming Interface
CN105022692A (en) Deadlock detection verification method
CN109325217A (en) A kind of document conversion method, system, device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20161019

RJ01 Rejection of invention patent application after publication