CN103186454A - Detection method for releaser embedded type software - Google Patents

Detection method for releaser embedded type software Download PDF

Info

Publication number
CN103186454A
CN103186454A CN2011104469999A CN201110446999A CN103186454A CN 103186454 A CN103186454 A CN 103186454A CN 2011104469999 A CN2011104469999 A CN 2011104469999A CN 201110446999 A CN201110446999 A CN 201110446999A CN 103186454 A CN103186454 A CN 103186454A
Authority
CN
China
Prior art keywords
software
electrical apparatus
code
apparatus release
source code
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
CN2011104469999A
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 SOFTWARE TESTING CENTER CO Ltd
Original Assignee
SHANGHAI SOFTWARE TESTING CENTER 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 SOFTWARE TESTING CENTER CO Ltd filed Critical SHANGHAI SOFTWARE TESTING CENTER CO Ltd
Priority to CN2011104469999A priority Critical patent/CN103186454A/en
Publication of CN103186454A publication Critical patent/CN103186454A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention provides a detection method for releaser embedded type software. The method comprises the following steps that 1, after the source code is completed, the source code is tested in development test environment; 2, a releaser code rule set is utilized for scanning the code rule on the source code; 3, after the source code is subjected to static structure analysis, a releaser code quality measurement element set is utilized for carrying out quality measurement on the source code, and executable software is generated through compiling after the quality measurement; 4, after the executable software is subjected to software program instrumentation compiling, the unit/integration test is carried out in development environment, after the test is passed, the operation enters the fifth step, and otherwise, disqualification reports are sent; 5, hardware program instrumentation compiling is carried out, the compiled source program is downloaded into a target machine, and then, the operation enters the sixth step; and 6, the system test is carried out. A special test flow process is designed by aiming at the releaser embedded type software, and the factors of function realization of the releaser software, code standardization, normalization, quality control and the like are sufficiently considered, so the defects in the prior art are effectively overcome.

Description

A kind of detection method of electrical apparatus release embedded software
Technical field
The present invention relates to a kind of detection method of electrical apparatus release embedded software.
Background technology
Along with the intelligent grid technical development; electrical network is also more and more higher to the requirement of power distribution equipment; the conventional circuit breaker that makes the intelligent electrical apparatus release that has an embedded software has realized intelligent protection, Long-distance Control and the centralized management to functions such as its protection, warning, measurement, communications; and have functions such as remote measurement, remote control, remote signalling and remote regulating, therefore obtained widespread use.The embedded operation executive software of electrical apparatus release is mainly used in realizing the collection of low-voltage electrical apparatus data and base conditioning, traditional low-voltage electrical apparatus defencive function, the regional interlock with outside isolating switch, the control that some are had relatively high expectations to real-time.The isolating switch operating part also can be communicated by letter by SPI (Serial Peripheral Interface) simultaneously, incessantly detected parameters, execution result is sent to the isolating switch administrative section in real time.The embedded software of a new generation's electrical apparatus release has accurate protection function and perfect trouble diagnosibility and stable communication function, and the real-time that has effectively overcome the traditional software design is poor, code structure complexity, portable difference and the incomplete shortcoming of function.
At present, isolating switch manufacturer is to the test of electrical apparatus release product mostly, only at the content measurement of function aspects such as triggering, electric leakage, continuation current increases, auxiliary switch and voltage, current precision, lack the test, the assessment method that carry out at electrical apparatus release inside embedded software separately, in case designed embedded software is made mistakes, will cause unpredictable consequence.To test, the evaluation of embedded software, adopt the method for white-box testing and/or Black-box Testing usually, the traditional test flow process is as shown in Figure 1.
By this figure as seen, traditional software test program begins white-box testing and/or the Black-box Testing method of carrying out from test phase, does not consider the technical requirement at the special software product, the carried out testing software of standard only is provided, needs more time and fund can finish overall process usually.
Summary of the invention
The purpose of this invention is to provide a kind of at the electrical apparatus release embedded software, simple to operate, can standardized method of testing, in order to cycle and the cost that reduces software detection, improve the consistance that software detection is judged.
In order to achieve the above object, technical scheme of the present invention has provided a kind of detection method of electrical apparatus release embedded software, and step is:
Step 1, finish source code after, under the development and testing environment, source code is tested, it is characterized in that:
Step 2, utilize electrical apparatus release code regulation set pair source code to carry out code regulation scanning;
Step 3, source code is being carried out utilize electrical apparatus release code quality measurement metric set pair source code to carry out quality metric, but compiling generates executive software behind quality metric after static structure analyzes;
Step 4, but executive software carried out software pitching pile compiling back in development environment, carry out unit/integration testing, test by after enter step 5, if do not pass through, then send deficiency report;
Step 5, carry out hardware pitching pile compiling, the source program after the compiling is downloaded in the target machine, enter step 6 subsequently;
Step 6, carry out system testing, if pass through, then send return on qualification, if do not pass through, then send deficiency report.
Preferably, the system testing of the unit/integration testing of the development environment in the described step 4 and described step 6 need be satisfied the requirement of electrical apparatus release software coverage rate.
Preferably, the system testing of the unit/integration testing of the development environment in the described step 4 and described step 6 need be satisfied the requirement of electrical apparatus release software performance.
Preferably, the system testing of the unit/integration testing of the development environment in the described step 4 and described step 6 need be satisfied the request for utilization of electrical apparatus release software memory.
A kind of testing process of special use that the present invention is directed to the electrical apparatus release Embedded Software Design owing to taken into full account factors such as the function of electrical apparatus release software realizes, the standardization of code, standardization, quality control, efficiently solves the defective that prior art exists.
Scheme provided by the invention is sufficient refinement has been carried out in the test of coding stage, has increased electrical apparatus release code regulation collection and code quality measurement metric collection are done corresponding pre-service link; Simultaneously before downloading to two links of target machine and system testing, respective handling is done in coverage rate, software performance, internal memory request for utilization to the electrical apparatus release embedded software, significantly reduced the test duration, because prediction scheme has been arranged, when pinpointing the problems, to tester's also reduction greatly of emergency processing Capability Requirement.
The present invention has following advantage:
1, forms electrical apparatus release code regulation collection in conjunction with industry characteristic, carry out the code regulation inspection in coding stage, discovery defective that can be as early as possible reduces and repairs the cost of dealing with problems and spending, shorten the test duration to software simultaneously, thereby accelerate the cycle that entire product is put on market.
2, code is carried out the static structure analysis, can clearerly see the process flow diagram of whole procedure, can conveniently assess software development and whether be complementary with design, demand.
3, in conjunction with industry characteristic, formulate electrical apparatus release measurement metric collection, use this measurement metric set pair code and carry out quality metric, can strengthen maintainability, the readability of code, better the quality of control routine.
4, in unit/phase of integration testing, industry code tester coverage rate according to prior formulation requires, the industry software performance requires and internal memory request for utilization standard is tested source code, make code when meeting functional requirement, performance is optimized more, internal memory uses rationally, avoids because the internal memory use-pattern causes potential problems such as memory overflow improperly.
5, in the system testing stage, download code in the real carrier, under particular environment, test according to the industry code tester coverage rate requirement of formulating in advance, the requirement of industry software performance and internal memory request for utilization standard, can weigh the quality of whole software comprehensively.
Description of drawings
Fig. 1 is the traditional test flow process;
Fig. 2 is the test flow chart of the detection method of a kind of electrical apparatus release embedded software provided by the invention.
Embodiment
For the present invention is become apparent, now with a preferred embodiment, and conjunction with figs. is described in detail below.
As shown in Figure 2, the detection method of a kind of electrical apparatus release embedded software provided by the invention the steps include:
Step 1, finish source code after, under the development and testing environment, source code is tested, it is characterized in that:
Step 2, utilize electrical apparatus release code regulation set pair source code to carry out code regulation scanning;
Step 3, source code is being carried out utilize electrical apparatus release code quality measurement metric set pair source code to carry out quality metric, but compiling generates executive software behind quality metric after static structure analyzes;
Step 4, but executive software carried out software pitching pile compiling back in development environment, carry out unit/integration testing, test by after enter step 5, if do not pass through, then send deficiency report;
Step 5, carry out hardware pitching pile compiling, the source program after the compiling is downloaded in the target machine, enter step 6 subsequently;
Step 6, carry out system testing, if pass through, then send return on qualification, if do not pass through, then send deficiency report.
Wherein, the system testing of the unit/integration testing of the development environment in the step 4 and step 6 need be satisfied following three requirements: 1) electrical apparatus release software coverage rate requirement; 2) electrical apparatus release software performance requirement; 3) electrical apparatus release software memory request for utilization.
The present invention is by the characteristics at electrical apparatus release software, with regard to the variable-definition in the cataloged procedure, object statement, shift operation, Dram use, pointer use, logical operator use, statement use, function macro call, array and structure initialization etc. aspect, formulated electrical apparatus release code regulation collection, make software coding stage just avoid some because the fault that the mistake use of bad coding custom and coded system causes, realize standardization and the standardization of code, reduced the cost that software test time and code are repaired.The present invention has formulated specifically and has collected at the quality metric of electrical apparatus release software is first, has strengthened the maintainable and readable of code, has realized the controllability of code quality.The present invention has formulated the requirement of electrical apparatus release software test coverage rate, performance requirement and internal memory request for utilization in conjunction with industry characteristic, and test coverage requires to weigh the tested rate of whole software, avoids code redundancy and not test path existence; Performance requirement can improve whole software and carry out efficient; The internal memory request for utilization can avoid because the potential fault that reasons such as memory overflow cause.According to test coverage requirement, performance requirement and the internal memory request for utilization of formulating, under development environment, electrical apparatus release software is carried out unit/integration testing.By after, download code in the real carrier, according to these several requirements system is carried out system testing, determine whether embedded software meets the demands in real system.
The electrical apparatus release method for testing software that the present invention proposes, its special character is the following step:
(1) according to the electrical apparatus release product characteristics, in conjunction with the relevant standard of industry, by formulating and use electrical apparatus release code detection rule set, code regulation is carried out preliminary examination, code is reported an error stopped before functional test in advance.
(2) according to industry characteristic, in conjunction with the industry relevant criterion, formulate electrical apparatus release code quality measurement metric collection, application code quality metric unit set pair source code carries out quality metric, strengthens the readable and maintainable of code.(3) formulate corresponding electrical apparatus release software coverage rate requirement, the requirement of electrical apparatus release software performance and the request for utilization of electrical apparatus release software memory etc. according to the scope of application of target machine.
(4) according to above-mentioned 3 requirements, in development environment, electrical apparatus release software is carried out unit/integration testing;
(5) according to above-mentioned 3 requirements, on target machine, electrical apparatus release software is carried out system testing.

Claims (4)

1. the detection method of an electrical apparatus release embedded software, step is:
Step 1, finish source code after, under the development and testing environment, source code is tested, it is characterized in that:
Step 2, utilize electrical apparatus release code regulation set pair source code to carry out code regulation scanning;
Step 3, source code is being carried out utilize electrical apparatus release code quality measurement metric set pair source code to carry out quality metric, but compiling generates executive software behind quality metric after static structure analyzes;
Step 4, but executive software carried out software pitching pile compiling back in development environment, carry out unit/integration testing, test by after enter step 5, if do not pass through, then send deficiency report;
Step 5, carry out hardware pitching pile compiling, the source program after the compiling is downloaded in the target machine, enter step 6 subsequently;
Step 6, carry out system testing, if pass through, then send return on qualification, if do not pass through, then send deficiency report.
2. the detection method of a kind of electrical apparatus release embedded software as claimed in claim 1, it is characterized in that: the unit/integration testing of the development environment in the described step 4 and the system testing of described step 6 need be satisfied the requirement of electrical apparatus release software coverage rate.
3. the detection method of a kind of electrical apparatus release embedded software as claimed in claim 1, it is characterized in that: the unit/integration testing of the development environment in the described step 4 and the system testing of described step 6 need be satisfied the requirement of electrical apparatus release software performance.
4. the detection method of a kind of electrical apparatus release embedded software as claimed in claim 1, it is characterized in that: the unit/integration testing of the development environment in the described step 4 and the system testing of described step 6 need be satisfied the request for utilization of electrical apparatus release software memory.
CN2011104469999A 2011-12-28 2011-12-28 Detection method for releaser embedded type software Pending CN103186454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104469999A CN103186454A (en) 2011-12-28 2011-12-28 Detection method for releaser embedded type software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104469999A CN103186454A (en) 2011-12-28 2011-12-28 Detection method for releaser embedded type software

Publications (1)

Publication Number Publication Date
CN103186454A true CN103186454A (en) 2013-07-03

Family

ID=48677630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104469999A Pending CN103186454A (en) 2011-12-28 2011-12-28 Detection method for releaser embedded type software

Country Status (1)

Country Link
CN (1) CN103186454A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009098851A (en) * 2007-10-16 2009-05-07 Mitsubishi Electric Corp System for detecting invalid code
CN101847123A (en) * 2010-05-26 2010-09-29 北京航空航天大学 Construction method of airborne computer software testing general system
CN102222041A (en) * 2011-06-15 2011-10-19 深圳市运通信息技术有限公司 Test analysis system and method based on embedded software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009098851A (en) * 2007-10-16 2009-05-07 Mitsubishi Electric Corp System for detecting invalid code
CN101847123A (en) * 2010-05-26 2010-09-29 北京航空航天大学 Construction method of airborne computer software testing general system
CN102222041A (en) * 2011-06-15 2011-10-19 深圳市运通信息技术有限公司 Test analysis system and method based on embedded software

Similar Documents

Publication Publication Date Title
CN107590010B (en) A kind of electromagnetic compatibility Analysis on Fault Diagnosis method based on Dynamic fault tree
US20180049052A1 (en) Local portable test systems and methods
CN109740222B (en) Testing device and system for automobile networking scene
CN107678960B (en) Intelligent ammeter software black box testing system and method
CN101834680B (en) Test method and system of mobile terminal
CN106771760B (en) Distributed FA function diagnosis method based on master station simulation
CN103941240B (en) A kind of detection method of the extension set detecting device that communicates based on radar system
CN105629960B (en) A kind of vehicle control unit of electric vehicle model is in ring test system and method
CN100428252C (en) System and method for testing and measuring percentage of coverage of function
CN203149081U (en) Testing device used for photovoltaic assembly
CN104052633A (en) Integrated testing method for intelligent station 61850 and telecontrol 104 protocol
CN108268023B (en) Remote fault diagnosis method and system for rail transit platform door
CN206673990U (en) A kind of detecting system of communication message
CN105553754A (en) Wireless communication device testability design method
CN105223897A (en) A kind of rolling stock electrical control cabinet proving installation and method of testing
CN112367680A (en) External communication test method and device based on intelligent electric meter and computer equipment
CN101876935B (en) Debugging program monitoring method and device
CN105094120A (en) Testing device capable of simulating action behaviors of primary equipment
CN102595461B (en) Performance of mobile communication system testing apparatus, system and method for testing
CN103186454A (en) Detection method for releaser embedded type software
CN203722646U (en) Testing system of very high frequency (VHF) transceiver
CN110991673B (en) Fault isolation and localization method for complex systems
CN106443238A (en) High-voltage equipment state evaluation method, high-voltage equipment on-line monitoring device evaluation method and apparatuses
CN116430749A (en) Simulation test method and device for power monitoring system, medium and electronic equipment
CN113743626A (en) Primary equipment fault processing method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130703