[go: up one dir, main page]

CN109918295A - A kind of function coverage calculating appraisal procedure - Google Patents

A kind of function coverage calculating appraisal procedure Download PDF

Info

Publication number
CN109918295A
CN109918295A CN201910113064.5A CN201910113064A CN109918295A CN 109918295 A CN109918295 A CN 109918295A CN 201910113064 A CN201910113064 A CN 201910113064A CN 109918295 A CN109918295 A CN 109918295A
Authority
CN
China
Prior art keywords
function
test
functional module
model
functional
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
CN201910113064.5A
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.)
Changsha Tess Information Technology Co Ltd
Original Assignee
Changsha Tess 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 Changsha Tess Information Technology Co Ltd filed Critical Changsha Tess Information Technology Co Ltd
Priority to CN201910113064.5A priority Critical patent/CN109918295A/en
Publication of CN109918295A publication Critical patent/CN109918295A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The present invention provides a kind of function coverages to calculate appraisal procedure.The following steps are included: carrying out functional test modeling for system;Correlation calculations and characterization are carried out to model by the way of matrix;The Function detection rate of computation model;Calculate the function isolation rate of the model.The beneficial effects of the invention are as follows propose the functional coverage modeling and appraisal procedure of a kind of automation, analysis and assessment can be carried out to the functional test of system, support is provided for discovery system defect, the design of improvement system, the functional test quality of design of complication system can be effectively improved.

Description

A kind of function coverage calculating appraisal procedure
Technical field
The present invention relates to a kind of function coverages to calculate appraisal procedure, is suitable for carrying out function Testability Evaluation to system, It was found that design defect and supporting, and then support the functional test design of system.
Background technique
Testability is an importance of complex equipment designing quality characteristic.Current existing testability index is main It is configured for failure.And generally require to carry out functional test in fact, being directed to complication system, system is found in time Functional Design defect.In order to reach this purpose, it is desirable that carry out the functional test evaluation work of systematization in the design phase.When Before, the design analysis of functional coverage lacks a kind of assistant analysis means of automation, also lacks mainly by what is manually carried out A kind of weary unified index carries out quantitative evaluation.There are heavy workload, the objectivity of assessment is not strong the problems such as.There is an urgent need to one kind The functional coverage that can carry out Modeling Calculation calculates appraisal procedure.
Summary of the invention
In order to overcome the disadvantages of the above prior art, it calculates and assesses the purpose of the present invention is to provide a kind of function coverage Method.To achieve the goals above, the technical solution adopted by the present invention is that:
A kind of function coverage calculating appraisal procedure, comprising the following steps: step 1 carries out functional test to system and builds Mould establishes model;Step 2 carries out correlation calculations and characterization to the model;Step 3 calculates the function inspection of the model Survey rate;Step 4 calculates the function isolation rate of the model.
As a further improvement of the present invention, model described in step 1 includes following three kinds of elements: functional module, test Point and directed connection line;Functional module indicates have input/output port to connect with directed connection line with rectangle, can have level Structure respectively indicates the function of different levels;Corresponding functional fault incidence is arranged in bottom functional module, indicates failure Frequency;Test point is indicated with circle;Directed connection line connects different elements, indicates information flow direction.
As a further improvement of the present invention, correlation calculations described in step 2 refer in the model, if function There can be connecting path between module and test point, then it is related between functional module and test point, it is otherwise uncorrelated;Traverse the bottom Functional module carry out information propagation along directed connection line, all accessibility test points are equal using the functional module as starting point Think module correlation, inaccessible measuring point thinks uncorrelated with the functional module, function-test correlation square is consequently formed Battle array;Function-test correlation matrix is the matrix characterization of the correlativity calculation result.
As a further improvement of the present invention, the every row of the function-test correlation matrix indicates a function mould Block, each column indicate a test point.
As a further improvement of the present invention, the element in the function-test correlation matrix be 0 and 1 two kind, if The test that respective column indicates can measure the function that corresponding row indicates, then be 1, be otherwise 0.
As a further improvement of the present invention, the functional module can have hierarchical structure, and just for bottom mould Failure rate parameter is arranged in block.
As a further improvement of the present invention, the p of Function detection rate described in step 3dCalculation formula are as follows:
As a further improvement of the present invention, the function isolation rate pfCalculation formula are as follows:
The beneficial effects of the invention are as follows can carry out analysis and assessment, quantitative to the functional test of system according to the present invention Function detection rate and isolation rate as a result, provide support for Fast Discovery System defect, the design of improvement system, can effectively improve multiple The functional test quality of design of miscellaneous system, and then promote the mass property of entire product.
Detailed description of the invention
The present invention is described in detail by following specific implementations, examples and drawings for ease of explanation,.
Fig. 1 is the calculation process of method of the invention
Fig. 2 is the functional test model in embodiment
Specific embodiment
Calculation process of the present invention is as shown in Figure 1, mainly comprise the steps that
Step 1 carries out functional test modeling to system, establishes model
Functional test modeling is to adopt graphically constructing function-test model, assistant analysis function and test Between relationship.The model includes three kinds of functional module, test point, directed connection line elements.Functional module indicates have with rectangle Input/output port is connect with directed connection line, can have hierarchical structure, respectively indicates the function of different levels.Bottom function mould Corresponding functional fault incidence is arranged in block, indicates the frequency that failure occurs.Test point is indicated with circle.The connection of directed connection line Different elements indicate information flow direction.
Step 2 carries out correlation calculations and characterization to the model, obtains function-test correlation matrix
Based on model described in step 1, system is analyzed.Concrete analysis mode are as follows: traverse the function of the bottom Module carries out information propagation along directed connection line, all accessibility test points think this using the functional module as starting point Module is related, and inaccessible measuring point thinks uncorrelated with the functional module.According to this method, it is related that function-test can be formed Property matrix.
Assuming that system shares m bottom functional module, n test then can be used the matrix of m × n to characterize the model, be set as D =[dij]m×n.Every a line indicates a functional module in the matrix, and each column indicate a test point.Each of matrix Element is 0 and 1 two-value.Wherein dij=1 j-th of test of expression can detecte to i-th of functional module.dij=0 indicates the J test can not detect i-th of functional module.
Step 3, computing function verification and measurement ratio
It is assumed that the functional fault incidence of each bottom module set in step 1 is P={ p1,p2L,pm}.Definition Binary set H={ the h that one length is m1,h2,L,hm, indicate the detectability of functional module.If i-th of functional module It can be detected, i.e. at least one element of the i-th row is 1 in correlation matrix D, then hi=1, otherwise hi=0.Function detection rate pdCalculation method are as follows:
Step 4, computing function isolation rate
Define the binary set L={ l that a length is m1,l2,L,lm, indicate the isolability of functional module.If the I functional module can be isolated, i.e. the i-th row and the element of other any a line are not exactly the same in correlation matrix D, then li =1, otherwise li=0.Function isolation rate pfCalculation method are as follows:
Wherein, piAnd hiDefinition it is consistent with definition in step 3.
Index defined in formula (1) and (2) can be used to carry out assessment calculating to functional coverage in design process.
Analysis and assessment, the Function detection rate of quantitative and isolation can be carried out to the functional test of system according to the present invention Rate provides support as a result, designing for Fast Discovery System defect, improvement system, can effectively improve the functional test of complication system Quality of design, and then promote the mass property of entire product.
Embodiment
Step 1 adopts and graphically carries out model construction.As shown in Fig. 2, for the functional test point of certain system Analyse model.The system includes six functional modules of f1, f1_1, f1_2, f2, f3 and f4, tri- functional test points of t1, t2 and t3. Wherein f1_1 and f1_2 is the module of the low level of f1.
Step 2 is calculated and is characterized to the correlation between function and test.
In system shown in Fig. 2, since f1 has the module f1_1 and f1_2 of a low level, therefore it is not belonging to bottom mould Block.According to parameter definition and calculating principle, m indicates bottom functional module number, therefore is directed to the system m=5, n=3.According to phase Closing property calculating principle, within the system, t1 can measure f4, and t2 can measure f1_1, f2, f4, and t3 can measure f1_1, f2, f3, f4, Functional module f1_2 can be measured by not testing.The correlation system can be characterized with 5 × 3 correlation matrix, be shown below:
In the matrix shown in formula (3), the first row to fifth line respectively indicates module f1_1, f1_2, f2, f3 and f4, First row to third column respectively indicate t1, t2 and t3.
Step 3, computing function verification and measurement ratio
Due to f1_1, f1_2, f2, f3 and f4 be bottom module, it may be assumed that its failure rate be respectively P=0.1,0.2, 0.5,0.4,0.3}.According to definition, the detectable meaning of module is at least one element of the corresponding row matrix of the functional module It is 1.Within the system, other than the corresponding row element of f1_2 is all 0, at least one element of other modules is 1.Then function Detectability vector is H={ 1,0,1,1,1 }.According to formula (1), the Function detection rate of system is
Step 4, computing function isolation rate
According to the judgment rule of isolability, malfunctioning module f1_1 and f2 row element having the same is { 0,1,1 }, Therefore it can not be isolated.F1_2, f3 and f4 row element corresponding from other functional modules are different, therefore can isolate.For this purpose, L= {0,1,0,1,1}.According to formula (2), the function isolation rate of system are as follows:
According to above-mentioned calculated result, the Function detection rate and function isolation rate that can provide system are respectively 0.8667 He 0.4667.The detection isolated instances that can be seen that each functional module by H={ 1,0,1,1,1 } and L={ 0,1,0,1,1 } are System, which is improved, provides support.
The above display describes basic principles and main features and the features of the present invention of the invention.Those skilled in the art It should be appreciated that the present invention is not limited to the above embodiments, the above embodiments and description only describe the present invention Principle, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these variation and Improvement can all fall into scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent Object defines.

Claims (8)

1. a kind of function coverage calculates appraisal procedure, it is characterised in that the following steps are included:
Step 1 carries out functional test modeling to system, establishes model;
Step 2 carries out correlation calculations and characterization to the model;
Step 3 calculates the Function detection rate of the model;
Step 4 calculates the function isolation rate of the model.
2. according to the method described in claim 1, it is characterized by: model described in step 1 includes following three kinds of elements: function It can module, test point and directed connection line;Functional module indicates have input/output port and directed connection line to connect with rectangle It connects, can have hierarchical structure, respectively indicate the function of different levels;Bottom functional module is arranged corresponding functional fault and occurs Rate indicates the frequency that failure occurs;Test point is indicated with circle;Directed connection line connects different elements, indicates information flow direction.
3. according to the method described in claim 1, it is characterized by: correlation calculations described in step 2 refer in the model In, it is related between functional module and test point if there is connecting path between functional module and test point, it is otherwise uncorrelated; The functional module for traversing the bottom carries out information propagation along directed connection line using the functional module as starting point, all reachable Test point think module correlation, inaccessible measuring point thinks uncorrelated with the functional module, function-test is consequently formed Correlation matrix;Function-test correlation matrix is the matrix characterization of the correlativity calculation result.
4. according to the method described in claim 3, it is characterized in that the every row of the function-test correlation matrix indicates one Functional module, each column indicate a test point.
5. according to the method described in claim 4, it is characterized in that wherein the element in the function-test correlation matrix is 0 and 1 two kind, if the test that respective column indicates can measure the function of corresponding row expression, it is 1, is otherwise 0.
6. according to the method described in claim 2, wherein the functional module can have hierarchical structure, and just for bottom Failure rate parameter is arranged in module.
7. according to the method described in claim 1, it is characterized in that the calculation formula of Function detection rate described in step 3 are as follows:
8. according to the method described in claim 1, it is characterized in that the calculation formula of the rate of function isolation described in step 4 are as follows:
CN201910113064.5A 2019-02-13 2019-02-13 A kind of function coverage calculating appraisal procedure Pending CN109918295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910113064.5A CN109918295A (en) 2019-02-13 2019-02-13 A kind of function coverage calculating appraisal procedure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910113064.5A CN109918295A (en) 2019-02-13 2019-02-13 A kind of function coverage calculating appraisal procedure

Publications (1)

Publication Number Publication Date
CN109918295A true CN109918295A (en) 2019-06-21

Family

ID=66961575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910113064.5A Pending CN109918295A (en) 2019-02-13 2019-02-13 A kind of function coverage calculating appraisal procedure

Country Status (1)

Country Link
CN (1) CN109918295A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610627A (en) * 2022-03-10 2022-06-10 深圳市飞泉云数据服务有限公司 Software test evaluation method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102735435A (en) * 2012-06-18 2012-10-17 北京控制工程研究所 Method for determining fault diagnosability of momentum wheel based on relevance model
CN105512011A (en) * 2015-11-30 2016-04-20 中国人民解放军63908部队 Electronic device testability modeling evaluation method
US20160124501A1 (en) * 2014-10-31 2016-05-05 The United States Of America As Represented By The Secretary Of The Navy Secured mobile maintenance and operator system including wearable augmented reality interface, voice command interface, and visual recognition systems and related methods
CN106570200A (en) * 2015-10-12 2017-04-19 南京赛宝工业技术研究院 Virtual simulation test method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102735435A (en) * 2012-06-18 2012-10-17 北京控制工程研究所 Method for determining fault diagnosability of momentum wheel based on relevance model
US20160124501A1 (en) * 2014-10-31 2016-05-05 The United States Of America As Represented By The Secretary Of The Navy Secured mobile maintenance and operator system including wearable augmented reality interface, voice command interface, and visual recognition systems and related methods
CN106570200A (en) * 2015-10-12 2017-04-19 南京赛宝工业技术研究院 Virtual simulation test method
CN105512011A (en) * 2015-11-30 2016-04-20 中国人民解放军63908部队 Electronic device testability modeling evaluation method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114610627A (en) * 2022-03-10 2022-06-10 深圳市飞泉云数据服务有限公司 Software test evaluation method, device and storage medium

Similar Documents

Publication Publication Date Title
CN113219070B (en) Novel structural damage positioning method based on acoustic emission
Ünlü et al. Statistical parameters characterizing the spatial variability of selected soil hydraulic properties
CN106443360B (en) Distribution Network Traveling Wave Fault Location Method Based on Incidence Matrix
CN104218570B (en) A kind of online evaluation method and system of electric power meter entirety error in dipping
CN108092623B (en) A photovoltaic array multi-sensor fault detection and location method
Kong et al. A remote estimation method of smart meter errors based on neural network filter and generalized damping recursive least square
CN105512011B (en) A kind of electronics testability modeling appraisal procedure
CN111538655A (en) Software failure detection method, system, storage medium, computer program, terminal
CN119482932B (en) Data-driven photovoltaic parallel network station area line loss real-time monitoring system
CN109271319A (en) A kind of prediction technique of the software fault based on panel Data Analyses
CN117928625A (en) Method, medium and system for analyzing tendency error of sea water temperature and salt depth meter
CN109990803A (en) The method, apparatus of method, apparatus and the sensor processing of detection system exception
CN106021671B (en) In conjunction with the circuit health grading evaluation method of correlative relationship and grey cluster technology
CN109918295A (en) A kind of function coverage calculating appraisal procedure
CN103383375B (en) A kind of linear discontinuities quantification monitoring method
CN109040084A (en) A kind of network flow abnormal detecting method, device, equipment and storage medium
Zhang et al. Reconstruction of faulty cable network using time-domain reflectometry
CN119199395A (en) Method, device, processor and storage medium for locating power system faults
CN119986472A (en) Power cable joint defect detection method and system based on digital twin model
CN103911958B (en) The damage reason location system of suspension bridge and arch bridge suspender periodic detection and method thereof
CN105699043B (en) A kind of wind tunnel sensors that improve measure stability and the method for precision
CN118228641A (en) A method, system and computer program product for monitoring fluid pipeline transmission difference
CN117347778A (en) Wind power plant transmission line fault positioning method and device
Heydari et al. Quickest line outage localization under unknown model
CN113092939A (en) Power distribution network fault positioning method based on PMU and smart electric meter

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190621