CN104699603B - The method for testing reliability and system of software and hardware system - Google Patents

The method for testing reliability and system of software and hardware system Download PDF

Info

Publication number
CN104699603B
CN104699603B CN201410817338.6A CN201410817338A CN104699603B CN 104699603 B CN104699603 B CN 104699603B CN 201410817338 A CN201410817338 A CN 201410817338A CN 104699603 B CN104699603 B CN 104699603B
Authority
CN
China
Prior art keywords
test
sequence
software
working method
conversion sequence
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.)
Active
Application number
CN201410817338.6A
Other languages
Chinese (zh)
Other versions
CN104699603A (en
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.)
Fifth Electronics Research Institute of Ministry of Industry and Information Technology
Original Assignee
Fifth Electronics Research Institute of Ministry of Industry and Information Technology
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 Fifth Electronics Research Institute of Ministry of Industry and Information Technology filed Critical Fifth Electronics Research Institute of Ministry of Industry and Information Technology
Priority to CN201410817338.6A priority Critical patent/CN104699603B/en
Publication of CN104699603A publication Critical patent/CN104699603A/en
Application granted granted Critical
Publication of CN104699603B publication Critical patent/CN104699603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method for testing reliability of software and hardware system and system, methods described includes:Obtain the integrated view of software and hardware system;Obtain corresponding with the temperature step of Comprehensive Experiment section each working method conversion sequence, and each working method conversion sequence working condition, task category and scale factor;The combined chance of each working method conversion sequence is generated, combined chance is normalized, the execution number of times of each working method conversion sequence is generated;According to default test loop number of times and the execution number of times of each working method conversion sequence, generation test carries out software reliability test with sequence.Implement the present invention, reliability testing is more accurately simulated actual use situation, truly reflect that software and hardware system, in actual use to operation change and the adaptability of environmental change, detects the software and hardware resultant fault occurred in actual use.

Description

The method for testing reliability and system of software and hardware system
【Technical field】
The present invention relates to reliability testing technical field, more particularly to a kind of method for testing reliability of software and hardware system And system.
【Background technology】
With the raising of the intelligence degree of change system, the function of being realized by software is more and more, most of equipment system System all be unable to do without software systems, originally by hard-wired algorithm and function such as DSP algorithm etc., gradually becomes and is combined firmly by software Part realizes that partial function even realizes via pure software.Thus software defect causes the probability of thrashing also increasing Greatly.The multitask software and hardware system (hereinafter referred to as " software intensive system ") being made up of the hardware for being embedded with software have hardware with The feature that software is highly merged.
And reliability testing is carried out to software intensive system by existing reliability checking method, it is impossible to reference to software Mission profile carries out reliability testing, it is impossible to effective detection software reliability.And when individually carrying out software reliability test, also without Method precognition hardware platform environment (environmental factor such as temperature stress, humidity modification, vibration stress, electric stress) is to the shadow of software function Ringing, thus be difficult to detect the influence of hardware platform environment causes software fault caused by performance change, equally can not be effective Inspection software reliability.
Therefore, existing reliability checking method can not effective detection software and hardware system reliability, easily cause the system failure.
【The content of the invention】
Based on this, it is necessary to for existing reliability checking method can not effective detection software and hardware system reliability, Easily causing system failure problem, there is provided a kind of method for testing reliability of software and hardware system and system.
A kind of method for testing reliability of software and hardware system, comprises the following steps:
Obtain the integrated view of software and hardware system;
Obtain each working method conversion sequence corresponding with each temperature step of the Comprehensive Experiment section, and each work Make working condition, task category and the scale factor of mode conversion sequence;
In each temperature step, by the scale factor of each working method conversion sequence divided by each temperature step The summation of the scale factor of corresponding all working mode conversion sequence, generates each working method conversion sequence in temperature step Interior probability of happening;
Probability of happening of each working method conversion sequence in temperature step is obtained with corresponding temperature step described comprehensive The product of the generalized section step probability in experiment section is closed, the combined chance of each working method conversion sequence is generated;
The combined chance of each working method conversion sequence is normalized, each working method conversion sequence is generated Perform number of times;
According to the execution number of times of each working method conversion sequence and default test loop number of times, by each temperature step and respectively The corresponding each working method conversion sequence of temperature step is converted to test sequence;
Software reliability test is carried out with sequence according to the test.
A kind of reliability test system of software and hardware system, including:
Integrated view acquisition module, the integrated view for obtaining software and hardware system;
Work state information acquisition module, it is corresponding with each temperature step of the Comprehensive Experiment section each for obtaining Working method conversion sequence, and each working method conversion sequence working condition, task category and scale factor;
First probabilistic module, in each temperature step, the scale factor of each working method conversion sequence to be removed With the summation of the scale factor of the corresponding all working mode conversion sequence of each temperature step, each working method is generated Probability of happening of the conversion sequence in temperature step;
Second probabilistic module, for obtain probability of happening of each working method conversion sequence in temperature step with it is corresponding The product of generalized section step probability of the temperature step in the Comprehensive Experiment section, generates each working method conversion sequence Combined chance;
Number of times module is performed, is normalized for the combined chance to each working method conversion sequence, generation is each The execution number of times of working method conversion sequence;
Test case module, for the execution number of times according to each working method conversion sequence and default test loop number of times, Each temperature step and the corresponding each working method conversion sequence of each temperature step are converted into test sequence;
Reliability testing module, for carrying out software reliability test with sequence according to the test.
The method for testing reliability and system of above-mentioned software and hardware system, are cutd open by the compbined test for obtaining software and hardware system Face;Obtain each working method conversion sequence corresponding with each temperature step of the Comprehensive Experiment section, and each work side Working condition, task category and the scale factor of formula conversion sequence, and then the combined chance of each working method conversion sequence of generation, The combined chance of each working method conversion sequence is normalized, the execution time of each working method conversion sequence is generated Number;According to the execution number of times of each working method conversion sequence and default test loop number of times, by each temperature step and each temperature The corresponding each working method conversion sequence of step is converted to test sequence, carries out software reliability test.Integrated view The section generated for the hardware reliability experiment integrated environment section of task based access control section and comprehensive all kinds of environmental factors, based on comprehensive The execution number of times that test profile obtains each working method conversion sequence is closed, and then generates test and carries out software reliability survey with sequence Examination, enables reliability testing more accurately to simulate actual use situation, truly reflects the Shi Jishiyong process of software and hardware system In to operation change and the adaptability of environmental change, detect the software and hardware resultant fault occurred in actual use.And then make The inherent reliability equipped corresponding with software and hardware system is improved, and substantially reduces the input cost for equipping whole life cycle.
【Brief description of the drawings】
Fig. 1 is the schematic flow sheet of the method for testing reliability first embodiment of software and hardware system of the present invention;
Fig. 2 is the schematic flow sheet of the method for testing reliability second embodiment of software and hardware system of the present invention;
Fig. 3 be software and hardware system of the present invention method for testing reliability second embodiment in hardware reliability experiment integrate The schematic diagram of environment section;
Fig. 4 is the structural representation of the reliability test system first embodiment of software and hardware system of the present invention;
Fig. 5 is the structural representation of the reliability test system second embodiment of software and hardware system of the present invention.
【Embodiment】
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step it is described in detail.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of the method for testing reliability of software and hardware system of the present invention.
The method for testing reliability of software and hardware system described in present embodiment, it may include following steps:
Step S101, obtains the integrated view of software and hardware system.
Step S102, obtains each working method conversion sequence corresponding with each temperature step of the Comprehensive Experiment section Row, and each working method conversion sequence working condition, task category and scale factor.
Step S103, in each temperature step, by the scale factor of each working method conversion sequence divided by described every The summation of the scale factor of the corresponding all working mode conversion sequence of individual temperature step, generates each working method conversion sequence Probability of happening in temperature step.
Step S104, obtains probability of happening and corresponding temperature step of each working method conversion sequence in temperature step The product of generalized section step probability in the Comprehensive Experiment section, generates the combined chance of each working method conversion sequence.
Step S105, the combined chance of each working method conversion sequence is normalized, and generates each working method The execution number of times of conversion sequence.
Step S106, according to the execution number of times of each working method conversion sequence and default test loop number of times, by each temperature Step and the corresponding each working method conversion sequence of each temperature step are converted to test sequence.
Step S107, software reliability test is carried out according to the test with sequence.
Present embodiment, integrated view is the hardware reliability examination of task based access control section and comprehensive all kinds of environmental factors The section of integrated environment section generation is tested, the execution number of times of each working method conversion sequence is obtained based on integrated view, is entered And generate test and software reliability test is carried out with sequence, reliability testing is more accurately simulated actual use situation, Truly reflection software and hardware system is in actual use to operation change and the adaptability of environmental change, and detecting actually makes The software and hardware resultant fault occurred in.And then the inherent reliability equipped corresponding with software and hardware system is improved, Substantially reduce the input cost for equipping whole life cycle.
Wherein, for step S101, it is preferable that the integrated view is software reliability test mission profile and hard Section set obtained by part reliability test integrated environment section comprehensive matching, sample temperature section is reference during comprehensive matching Point.The integrated view, the correspondence software and hardware system storage can be previously generated.
Further, the software and hardware system can be multitask software and hardware system, it may include at least two mission profiles are (soft Section used in part reliability testing).Each mission profile may include at least two task phases.
In one embodiment, can be according to the mission profile equipped corresponding with software and hardware system, according to the sequential of generation The work event of each mission profile of the mounting platform of equipment is listed one by one, according to design documentation, equipment software is determined System mode, marks the on-off state of each task phase equipment and the system mode of equipment software, formed task phase with The corresponding relation of the system mode of equipment software.
Further, " working condition " in the system mode of equipment is decomposed, is decomposed into several working conditions, Then the system mode of mark equipment software and the working condition of equipment software, form the system mode and work shape of equipment software The corresponding relation of state.According to the relevant documentation of equipment, mode is operated to various working conditions and decomposed, working condition can be formed With the corresponding relation of working method.
Further, by with testing crew, design and develop personnel, user representative and linked up, mission profile is each The armament-related work mode of individual task phase is determined one by one, is formed the mapping of mission profile and working method, is cutd open according to task Face and the mapping relations of working method, according to the continuity and relative independentability of mission profile task, are segmented.It will cut open Decompose several task segments in face.
According to equipment software working method transition diagram, possible working method conversion sequence in each task phase is listed (alternatively referred to as working condition conversion sequence), the corresponding working condition of each working method conversion sequence, task category and scale factor.
For step S102, the temperature step is the temperature step of synthesis section in the integrated view.It is described Synthesis section is made up of one or more task phases of one or more mission profiles.
Preferably, the task category may include basic, conventional, optional three kinds of classifications.
In one embodiment, according to possible working method conversion sequence in each task phase prestored, obtain every Possible working method conversion sequence is the corresponding working method of each temperature step in each task phase in individual temperature step Conversion sequence.
For step S103, it is preferable that in each temperature step, the corresponding institute of each temperature step can be first obtained There is the summation of the scale factor of working method conversion sequence, then make the scale factor of every working method conversion sequence respectively divided by institute Summation is stated, probability of happening of each working method conversion sequence in temperature step is generated.
Further, can also be by the scale factor of each working method conversion sequence and institute in each temperature step The scale factor for stating other working method conversion sequences each temperature step Nei substitutes into default new probability formula, generates each work Make probability of happening of the mode conversion sequence in temperature step.
For step S104, it is preferable that the corresponding temperature step is the temperature where obtaining during the probability of happening Step.
Preferably, generalized section step probability of the temperature step in the Comprehensive Experiment section is in the temperature step All task steps task probability summation divided by all task phases in the integrated view task probability it is total With the probable value generated.
For step S105, it is preferable that, can when the combined chance of each working method conversion sequence is normalized The minimum combined chance of numerical value in the combined chance of each working method conversion sequence is inquired about, by each working method conversion sequence The combined chance of combined chance divided by minimum, then round the execution number of times for generating each working method conversion sequence.
For step S106, the default test loop number of times is to carry out reliability testing to the software and hardware system to follow Ring number of times.
Preferably, according to the execution number of times of each working method conversion sequence and default test loop number of times, by each temperature platform Rank and the corresponding each working method conversion sequence of each temperature step are converted to after test sequence, each temperature in test loop Spend the corresponding each working method conversion sequence of step execution total degree and, turn with each working method for being generated in step S105 The execution number of times for changing sequence is identical.
Further, each temperature step and the corresponding each working method conversion sequence of each temperature step are being converted into survey During sequence on probation, it can be changed according to default transformation rule.The default transformation rule can by testing crew, design and develop people Member or user representative preset.
For step S107, software according to the test can be carried out with sequence by the usual measuring technology of this area reliable Property test.
In one embodiment, it is described software reliability test is carried out with sequence according to the test the step of in carry out During reliability testing, in each test period, first task category in each temperature step of the test sequence has been tested After corresponding all working mode conversion sequence, in the corresponding all works of rear task category in each temperature step described in re-test Make mode conversion sequence.
In another embodiment, it is described software reliability test is carried out with sequence according to the test the step of in enter During row reliability testing, in each test period, first task class in each temperature step of the test sequence has been tested It is corresponding in rear task category one in each temperature step described in re-test after not corresponding working method conversion sequence Working method conversion sequence.
In other embodiments, the step of carrying out software reliability test with sequence according to the test includes following step Suddenly:
Each test period was divided into at least two test periods;
Within the first test period, first task category correspondence in each temperature step of the test sequence has been tested All working mode conversion sequence after, in the corresponding all working side of rear task category in each temperature step described in re-test Formula conversion sequence;
Within the second test period, first task category correspondence in each temperature step of the test sequence has been tested A working method conversion sequence after, in the corresponding work side of rear task category in each temperature step described in re-test Formula conversion sequence.
Referring to Fig. 2, Fig. 2 is the flow of the second embodiment of the method for testing reliability of the software and hardware system of the present invention Schematic diagram.
The method for testing reliability of the software and hardware system of present embodiment and the difference of first embodiment are:Obtain The step of integrated view for taking software and hardware system, comprises the following steps:
Step S201, obtains each mission profile of software and hardware system.
Step S202, according to environmental stress in hardware reliability experimental enviroment section in reliability determination and acceptance criteria with Temperature profile is the principle of reference point, and each mission profile is synthesized to the integrated view of the software and hardware system.
Present embodiment, according to environmental stress in hardware reliability experimental enviroment section in reliability determination and acceptance criteria Using temperature profile as the principle of reference point, each mission profile is synthesized to the integrated view of the software and hardware system, can be quick Effectively comprehensive matching software reliability test mission profile tests integrated environment section with hardware reliability.
As shown in figure 3, the hardware reliability experimental enviroment section is reliability determination and acceptance criteria《GJ899A- 2009》The reliability test environmental stress of middle ram-air cooling class Ⅱ equipment designs the corresponding comprehensive ring of hardware reliability experiment Border section.
Referring to Fig. 4, Fig. 4 is the structural representation of the reliability test system of software and hardware system of the present invention.
The reliability test system of software and hardware system described in present embodiment, it may include integrated view acquisition module 100th, work state information acquisition module 200, the first probabilistic module 300, the second probabilistic module 400, execution time digital-to-analogue 500, survey Example module 600 and reliability testing module 700 on probation, wherein:
Integrated view acquisition module 100, the integrated view for obtaining software and hardware system.
Work state information acquisition module 200, it is corresponding with each temperature step of the Comprehensive Experiment section for obtaining Each working method conversion sequence, and each working method conversion sequence working condition, task category and scale factor.
First probabilistic module 300, in each temperature step, by the scale factor of each working method conversion sequence Divided by the summation of the scale factor of the corresponding all working mode conversion sequence of each temperature step, each work side of generation Probability of happening of the formula conversion sequence in temperature step.
Second probabilistic module 400, for obtain probability of happening of each working method conversion sequence in temperature step with it is right The product of generalized section step probability of the temperature step answered in the Comprehensive Experiment section, generates each working method conversion sequence The combined chance of row.
Number of times module 500 is performed, is normalized for the combined chance to each working method conversion sequence, is generated The execution number of times of each working method conversion sequence.
Test case module 600, for the execution number of times and default test loop time according to each working method conversion sequence Number, test sequence is converted to by each temperature step and the corresponding each working method conversion sequence of each temperature step.
Reliability testing module 700, for carrying out software reliability test with sequence according to the test.
Present embodiment, integrated view is the hardware reliability examination of task based access control section and comprehensive all kinds of environmental factors The section of integrated environment section generation is tested, the execution number of times of each working method conversion sequence is obtained based on integrated view, is entered And generate test and software reliability test is carried out with sequence, reliability testing is more accurately simulated actual use situation, Truly reflection software and hardware system is in actual use to operation change and the adaptability of environmental change, and detecting actually makes The software and hardware resultant fault occurred in.And then the inherent reliability equipped corresponding with software and hardware system is improved, Substantially reduce the input cost for equipping whole life cycle.
Wherein, for integrated view acquisition module 100, it is preferable that the integrated view is software reliability Test assignment section tests the section set obtained by integrated environment section comprehensive matching with hardware reliability, is sampled during comprehensive matching Temperature profile is reference point.
Further, the software and hardware system can be multitask software and hardware system, it may include at least two mission profiles are (soft Section used in part reliability testing).Each mission profile may include at least two task phases.
In one embodiment, can be according to the mission profile equipped corresponding with software and hardware system, according to the sequential of generation The work event of each mission profile of the mounting platform of equipment is listed one by one, according to design documentation, equipment software is determined System mode, marks the on-off state of each task phase equipment and the system mode of equipment software, formed task phase with The corresponding relation of the system mode of equipment software.
Further, " working condition " in the system mode of equipment is decomposed, is decomposed into several working conditions, Then the system mode of mark equipment software and the working condition of equipment software, form the system mode and work shape of equipment software The corresponding relation of state.According to the relevant documentation of equipment, mode is operated to various working conditions and decomposed, working condition can be formed With the corresponding relation of working method.
Further, by with testing crew, design and develop personnel, user representative and linked up, mission profile is each The armament-related work mode of individual task phase is determined one by one, is formed the mapping of mission profile and working method, is cutd open according to task Face and the mapping relations of working method, according to the continuity and relative independentability of mission profile task, are segmented.It will cut open Decompose several task segments in face.
According to equipment software working method transition diagram, list possible working method conversion sequence in each task phase, The corresponding working condition of each working method conversion sequence, task category and scale factor.
For work state information acquisition module 200, the temperature step be the integrated view in synthesize section Temperature step.The synthesis section is made up of one or more task phases of one or more mission profiles.
Preferably, the task category may include basic, conventional, optional three kinds of classifications.
In one embodiment, work state information acquisition module 200 can be used for according in each task phase prestored Possible working method conversion sequence, obtains possible working method conversion sequence in each task phase in each temperature step For the corresponding working method conversion sequence of each temperature step.
For the first probabilistic module 300, it is preferable that available in each temperature step, first obtain each temperature The summation of the scale factor of the corresponding all working mode conversion sequence of step, then make the ratio of every working method conversion sequence because Son difference divided by the summation, generate probability of happening of each working method conversion sequence in temperature step.
Further, the first probabilistic module 300 can be additionally used in each temperature step, and each working method is changed into sequence The scale factor of other working method conversion sequences substitutes into default general in the scale factor of row and each temperature step Rate formula, generates probability of happening of each working method conversion sequence in temperature step.
For the second probabilistic module 400, it is preferable that the corresponding temperature step is where obtaining during the probability of happening Temperature step.
Preferably, generalized section step probability of the temperature step in the Comprehensive Experiment section is in the temperature step All task steps task probability summation divided by all task phases in the integrated view task probability it is total With the probable value generated.
For performing time digital-to-analogue 500, it is preferable that the combined chance of each working method conversion sequence is normalized When, the minimum combined chance of numerical value in the combined chance of each working method conversion sequence can be inquired about, each working method is changed The combined chance of sequence divided by the combined chance of minimum, then round the execution number of times for generating each working method conversion sequence.
For test case module 600, the default test loop number of times is to carry out reliability to the software and hardware system The cycle-index of test.
Preferably, according to the execution number of times of each working method conversion sequence and default test loop number of times, by each temperature platform Rank and the corresponding each working method conversion sequence of each temperature step are converted to after test sequence, each temperature in test loop Spend execution total degree and the execution of each working method conversion sequence of generation of the corresponding each working method conversion sequence of step Number of times is identical.
Further, each temperature step and the corresponding each working method conversion sequence of each temperature step are being converted into survey During sequence on probation, it can be changed according to default transformation rule.The default transformation rule can by testing crew, design and develop people Member or user representative preset.
For reliability testing module 700, it can be entered by the usual measuring technology of this area according to the test with sequence Row software reliability test.
In one embodiment, reliability testing module 700, available in each test period, having tested the test It is each described in re-test after the first corresponding all working mode conversion sequence of task category in each temperature step of sequence In the corresponding all working mode conversion sequence of rear task category in temperature step.
In another embodiment, reliability testing module 700, available in each test period, tested it is described survey It is every described in re-test in each temperature step of sequence on probation after the corresponding working method conversion sequence of first task category In the corresponding working method conversion sequence of rear task category in individual temperature step.
In other embodiments, reliability testing module 700 may also include time division module, the first test module and Two test modules, wherein:
The time division module is used to each test period being divided into at least two test periods;
First test module was used within the first test period, had tested each temperature platform of the test sequence In rank after the corresponding all working mode conversion sequence of first task category, in rear task in each temperature step described in re-test The corresponding all working mode conversion sequence of classification;
Second test module was used within the second test period, had tested each temperature platform of the test sequence In rank after the corresponding working method conversion sequence of first task category, in rear task in each temperature step described in re-test The corresponding working method conversion sequence of classification.
Referring to Fig. 5, Fig. 5 is the structure of the second embodiment of the reliability test system of the software and hardware system of the present invention Schematic diagram.
The reliability test system of the software and hardware system of present embodiment and the difference of first embodiment are:It is comprehensive Close test profile acquisition module 100 and may also include mission profile module 110 and synthesis module 120, wherein:
Mission profile module 110 is used for each software test mission profile for obtaining software and hardware system.
Synthesis module 120 is used for according to environment in hardware reliability experimental enviroment section in reliability determination and acceptance criteria Principle of the stress using temperature profile as reference point, each mission profile is synthesized the integrated view of the software and hardware system.
Present embodiment, according to environmental stress in hardware reliability experimental enviroment section in reliability determination and acceptance criteria Using temperature profile as the principle of reference point, each mission profile is synthesized to the integrated view of the software and hardware system, can be quick Effectively comprehensive matching software reliability test mission profile tests integrated environment section with hardware reliability.
As shown in figure 3, the hardware reliability experimental enviroment section is reliability determination and acceptance criteria《GJ899A- 2009》The reliability test environmental stress of middle ram-air cooling class Ⅱ equipment designs the corresponding comprehensive ring of hardware reliability experiment Border section.
The embodiment of method for testing reliability the 3rd of software and hardware system as described below for the present invention.
In the present embodiment, according to hardware reliability experiment integrated environment section《GJB899A-2009》Middle punching press is empty The reliability test environmental stress of air cooling class Ⅱ equipment is designed and formed, as shown in Figure 3.
In software and hardware combined reliability experimental basis, by software test mission profile as using stress loading to original Hardware reliability compbined test environment section on, reference《GJB899A-2009》Middle hardware reliability tests integrated environment section In vibration stress, electric stress etc. use temperature profile for reference point, software test mission profile and hardware reliability are tested The comprehensive matching of integrated environment section, uses temperature profile to carry out comprehensive matching for reference point.Illustrate comprehensive below with an example Close the implementation process of matching:
Table 1 gives the mission profile of certain system.The mission profile is made up of tetra- mission profiles of A, B, C, D.Root According to engineering experience, the ratio of four mission profiles is:60%:10%:25%:5%, according to《GJB899A-2009》Can by this four Individual section synthesizes an integrated view.
The software and hardware system mission profile of table 1
Note:"-" represents that content is recorded by actual conditions.
Table 2 gives the integrated view generated through comprehensive matching corresponding with table 1.From the table, the synthesis is cutd open Bread is containing 6 temperature steps.Illustrate specific comprehensive matching process by taking temperature step 1 as an example below.
Because temperature step 1 is made up of tetra- task phases of B5, B7, C2, C4, in general assignment, the hair of each task phase Raw probability is identical with the probability of happening of corresponding task section, it can thus be concluded that:P (B5)=p (B7)=10%, p (C2)=p (C4)= 25%.So in integrated view, the corresponding step task probability of temperature step 1 and for p (B5)+p (B7)+p (C2)+p (C4)=70%, its accounting is 70%/(70%+60%+145%+130%+70%+75%)=12.73%.
The integrated view of table 2
And the determination in the corresponding software task source of each temperature step can be calculated as follows:
By taking temperature step 1 as an example.The duration of each task phase in access mission profile is needed first, and come to an end fruit such as table Shown in 3.
The task phase duration of table 3
Task phase Duration (min)
B5 15
B7 15
C2 34
C4 34
The probability of each mission profile as shown in Table 2 again, as shown in table 4.
Each task probability of table 4
Task phase Task probability (%)
B5 10
B7 10
C2 25
C4 25
Then p (B5)=(15*10%)/(15*10%+15*10%+34*25%+34*25%)=7.5%, other tasks Stage compound prbability similar can be obtained, and can so obtain table 5.
The corresponding software task source of the synthesis section temperature step of table 5 and ratio
Next, needing to calculate the execution number of times of the working method conversion sequence on temperature step 1 corresponding to software.Work The mode conversion sequence of work can perform frequency according to it and be divided into three classifications:Substantially, conventional, optional, its proportion is defined as 3: 2:1.By taking working method conversion sequence a as an example, " under working condition 1 ", its probability of happening be 3/ (3+2*4+1)=0.25; " under temperature step 1 ", its probability of happening is 3/ (3+2*4+1+3+2*2+1)=0.15;So in whole integrated view Proportion is 0.15*12.73%=1.91%.The combined chance of other working method conversion sequences similar can also be obtained, knot Fruit such as table 6.Afterwards, it is necessary to which combined chance is normalized, probable value is transformed to integer by the purpose so done first It is easy to practical operation;Next to that in order to ensure that the low working method conversion sequence of ratio can be at least executed once.Can by table 6 See, the minimum working method conversion sequence of ratio is:" c → f → c " and " g → h → j → h ", thus can wherein any one On the basis of, be scaled up, and be equipped with certain approximate, you can normalize in table 6 after result.
The probability of happening and number of times of working method conversion sequence in the temperature step 1 of table 6:
Note:"-" represents that content is recorded by actual conditions.
Based on above-mentioned comprehensive matching process, each circulation in a compbined test (reliability testing) can be obtained corresponding The layout (partial test sequence) of software work mode conversion sequence on some temperature step (such as temperature step 1).Assuming that certain Secondary compbined test includes 14 circulations, then the Perform sequence layout corresponding to working condition 1 can be table 7:
Table 7 corresponds to the software work mode conversion sequence layout of working condition 1 and working condition 2:
Note:"-" represents that content is recorded by actual conditions.
As shown in Table 7:The execution number of times of working method conversion sequence is consistent with the number of times in table 6 in table 7.
It will be given below the general calculation formula of the corresponding information of the above-mentioned comprehensive matching process of correspondence:
1) temperature step probability Zj
Each temperature step in hardware reliability compbined test environment section is designated as T={ T1,T2,T3,…,Tn, often Individual temperature step is synthesized by the temperature of each mission profile moment according to GJB899.Because software test section is general What is calculated is the execution probability of task or operation, is usually to carry out probability statistics according to the number of times of experience state, therefore synthesis is cutd open Temperature step T={ T in face1,T2,T3,…,TnIn the software Operation Profile probability calculation of each mission profile moment adopt Calculated with task probability, computational methods are as follows:
Define temperature step T={ T in hardware reliability compbined test environment section1,T2,T3,…,TnProbability be Z= {Z1,Z2,Z3,…,Zn, the probability of mission profile is P={ P1,P2,P3,…,Pn, hardware reliability compbined test environment section Middle temperature step TjBy the sub-stage T of each mission profilejmComposition, is designated as:T={ Tj1,Tj2,Tj3,…,Tjm, TjmProbability For task j probability Pj, then T is constitutedjEach mission profile sub-stage TjmProbability PjSum is Qj
Wherein:The temperature order of the step of j- hardware reliability compbined test environment sections;
The sub-stage number of tasks of M- composition serial numbers j temperature step;
I- sub-stage task numbers;
QjIt is Z in the probability proportion of hardware reliability compbined test environment sectionj
Wherein:The temperature order of the step of j- hardware reliability compbined test environment sections;
N- constitutes the temperature number of steps of hardware reliability compbined test environment section;
2) the probability C that working method conversion sequence occurs under single task sectionk
Probability of occurrence of the working method conversion sequence under single task section is Ck
Wherein:Mi- single task section temperature step j conversion sequence number;
Task Switching sequence number under the K- single task stages;
3) the probability V that working method conversion occurs under the temperature step of hardware reliability compbined test environment sectioni
Working method changes the probability V under the temperature step of hardware reliability compbined test environment sectionk
Wherein:Task Switching sequence number under the k- single task stages;
Embodiment described above only expresses the several embodiments of the present invention, and it describes more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of method for testing reliability of software and hardware system, it is characterised in that comprise the following steps:
Obtain the integrated view of software and hardware system;
Obtain each working method conversion sequence corresponding with each temperature step of the Comprehensive Experiment section, and each work side Working condition, task category and the scale factor of formula conversion sequence;
In each temperature step, by the scale factor of each working method conversion sequence divided by each temperature step correspondence All working mode conversion sequence scale factor summation, generate each working method conversion sequence in temperature step Probability of happening;
Probability of happening of each working method conversion sequence in temperature step is obtained with corresponding temperature step described comprehensive real The product for the generalized section step probability tested in section, generates the combined chance of each working method conversion sequence;
The combined chance of each working method conversion sequence is normalized, the execution of each working method conversion sequence is generated Number of times;
According to the execution number of times of each working method conversion sequence and default test loop number of times, by each temperature step and each temperature The corresponding each working method conversion sequence of step is converted to test sequence;
Software reliability test is carried out with sequence according to the test;
The step of integrated view for obtaining software and hardware system, comprises the following steps:
Obtain each mission profile of software and hardware system;
According to environmental stress in hardware reliability experimental enviroment section in reliability determination and acceptance criteria using temperature profile as ginseng The principle of examination point, each mission profile is synthesized the integrated view of the software and hardware system.
2. the method for testing reliability of software and hardware system according to claim 1, it is characterised in that described in the basis When carrying out reliability testing in the step of test carries out software reliability test with sequence, in each test period, institute has been tested State in each temperature step of test sequence after the corresponding all working mode conversion sequence of first task category, re-test institute State in each temperature step in the corresponding all working mode conversion sequence of rear task category.
3. the method for testing reliability of software and hardware system according to claim 1, it is characterised in that described in the basis When carrying out reliability testing in the step of test carries out software reliability test with sequence, in each test period, institute has been tested State after the corresponding working method conversion sequence of first task category in each temperature step of test sequence, re-test institute State in each temperature step in the corresponding working method conversion sequence of rear task category.
4. the method for testing reliability of software and hardware system according to claim 1, it is characterised in that used according to the test The step of sequence carries out software reliability test comprises the following steps:
Each test period was divided into at least two test periods;
Within the first test period, the first corresponding institute of task category in each temperature step of the test sequence has been tested Have after working method conversion sequence, turn in each temperature step described in re-test in the corresponding all working mode of rear task category Change sequence;
Within the second test period, first task category corresponding one in each temperature step of the test sequence has been tested After individual working method conversion sequence, turn in each temperature step described in re-test in the corresponding working method of rear task category Change sequence.
5. a kind of reliability test system of software and hardware system, it is characterised in that including:
Integrated view acquisition module, the integrated view for obtaining software and hardware system;
Work state information acquisition module, for obtaining each work corresponding with each temperature step of the Comprehensive Experiment section Mode conversion sequence, and each working method conversion sequence working condition, task category and scale factor;
First probabilistic module, in each temperature step, by the scale factor of each working method conversion sequence divided by institute The summation of the scale factor of the corresponding all working mode conversion sequence of each temperature step is stated, each working method conversion is generated Probability of happening of the sequence in temperature step;
Second probabilistic module, for obtaining probability of happening of each working method conversion sequence in temperature step and corresponding temperature The product of generalized section step probability of the step in the Comprehensive Experiment section, generates the synthesis of each working method conversion sequence Probability;
Number of times module is performed, is normalized for the combined chance to each working method conversion sequence, each work is generated The execution number of times of mode conversion sequence;
Test case module, will be each for the execution number of times according to each working method conversion sequence and default test loop number of times Temperature step and the corresponding each working method conversion sequence of each temperature step are converted to test sequence;
Reliability testing module, for carrying out software reliability test with sequence according to the test;
The integrated view acquisition module also includes mission profile module and synthesis module, wherein:
The mission profile module is used for each mission profile for obtaining software and hardware system;
The synthesis module is used for should according to environment in hardware reliability experimental enviroment section in reliability determination and acceptance criteria Principle of the power using temperature profile as reference point, each mission profile is synthesized the integrated view of the software and hardware system.
6. the reliability test system of software and hardware system according to claim 5, it is characterised in that the reliability testing Module was additionally operable within each test period, had tested first task category pair in each temperature step of the test sequence After all working mode conversion sequence answered, in the corresponding all working of rear task category in each temperature step described in re-test Mode conversion sequence.
7. the reliability test system of software and hardware system according to claim 5, it is characterised in that the reliability testing Module was additionally operable within each test period, had tested first task category pair in each temperature step of the test sequence After the working method conversion sequence answered, in the corresponding work of rear task category in each temperature step described in re-test Mode conversion sequence.
8. the reliability test system of software and hardware system according to claim 5, it is characterised in that the reliability testing Module also includes time division module, the first test module and the second test module, wherein:
The time division module is used to each test period being divided into at least two test periods;
First test module was used within the first test period, had tested in each temperature step of the test sequence After the corresponding all working mode conversion sequence of first task category, in rear task category in each temperature step described in re-test Corresponding all working mode conversion sequence;
Second test module was used within the second test period, had tested in each temperature step of the test sequence After the corresponding working method conversion sequence of first task category, in rear task category in each temperature step described in re-test A corresponding working method conversion sequence.
CN201410817338.6A 2014-12-22 2014-12-22 The method for testing reliability and system of software and hardware system Active CN104699603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410817338.6A CN104699603B (en) 2014-12-22 2014-12-22 The method for testing reliability and system of software and hardware system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410817338.6A CN104699603B (en) 2014-12-22 2014-12-22 The method for testing reliability and system of software and hardware system

Publications (2)

Publication Number Publication Date
CN104699603A CN104699603A (en) 2015-06-10
CN104699603B true CN104699603B (en) 2017-08-04

Family

ID=53346756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410817338.6A Active CN104699603B (en) 2014-12-22 2014-12-22 The method for testing reliability and system of software and hardware system

Country Status (1)

Country Link
CN (1) CN104699603B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708016A (en) * 2012-05-17 2012-10-03 工业和信息化部电子第五研究所 Software and hardware reliability testing method and system based on mission section
CN103914353A (en) * 2014-04-17 2014-07-09 北京航空航天大学 Combined test method for combining software reliability tests with hardware reliability tests

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8006136B2 (en) * 2007-10-08 2011-08-23 Wurldtech Security Technologies Automatic grammar based fault detection and isolation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708016A (en) * 2012-05-17 2012-10-03 工业和信息化部电子第五研究所 Software and hardware reliability testing method and system based on mission section
CN103914353A (en) * 2014-04-17 2014-07-09 北京航空航天大学 Combined test method for combining software reliability tests with hardware reliability tests

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于测试剖面的软件可靠性测试数据生成技术;韩峰岩等;《西安交通大学学报》;20061031;第40卷(第10期);第1073-1077页 *

Also Published As

Publication number Publication date
CN104699603A (en) 2015-06-10

Similar Documents

Publication Publication Date Title
Lu et al. An improved extended Kalman filter with inequality constraints for gas turbine engine health monitoring
Teng et al. Failure mode and effects analysis: an integrated approach for product design and process control
Brotherton et al. eSTORM: Enhanced self tuning on-board real-time engine model
Simon et al. Benchmarking gas path diagnostic methods: a public approach
CN102713777B (en) Diagnostic apparatus and diagnostic method
CN103914353A (en) Combined test method for combining software reliability tests with hardware reliability tests
Ganguli Gas turbine diagnostics: signal processing and fault isolation
JP2015532430A (en) Method and system for probabilistic fatigue crack life estimation
WO2006020654A3 (en) System and method for generating production-quality data to support software testing
Gaudoin et al. A simple goodness-of-fit test for the power-law process, based on the Duane plot
Hanachi et al. A framework with nonlinear system model and nonparametric noise for gas turbine degradation state estimation
Aretakis et al. Identification of sensor faults on turbofan engines using pattern recognition techniques
JP2007094569A (en) Prediction method for billow in port, prediction device for billow in port, and program
Baker Some new tests of the power law process
Balcárek et al. Test patterns compression technique based on a dedicated SAT-based ATPG
CN104699603B (en) The method for testing reliability and system of software and hardware system
Osigwe et al. Integrated gas turbine system diagnostics: components and sensor faults quantification using artificial neural networks
Romessis et al. Setting up of a probabilistic neural network for sensor fault detection including operation with component faults
CN115130731A (en) Method, equipment and medium for detecting fault of wind driven generator
Biçen et al. Intelligent condition monitoring platform combined with multi-agent approach for complex systems
US20110077873A1 (en) Apparatus and method for calculating transient-based fatigue usage factor using characteristic fatigue usage curve
Orasson et al. Fast test cost calculation for hybrid BIST in digital systems
Jasmani et al. Measurement Selections for Multi-Component Gas Path Diagnostics Using Analytical Approach and Measurement Subset Concept
US20230229819A1 (en) Estimation device, estimation method, and program
Liu et al. Reliability Evaluation of Hydraulic Pump Based on Performance Degradation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant