CN109254919A - A kind of embedded software diagnostic system and method - Google Patents

A kind of embedded software diagnostic system and method Download PDF

Info

Publication number
CN109254919A
CN109254919A CN201811016674.5A CN201811016674A CN109254919A CN 109254919 A CN109254919 A CN 109254919A CN 201811016674 A CN201811016674 A CN 201811016674A CN 109254919 A CN109254919 A CN 109254919A
Authority
CN
China
Prior art keywords
detection
embedded software
case
module
testing result
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.)
Granted
Application number
CN201811016674.5A
Other languages
Chinese (zh)
Other versions
CN109254919B (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.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201811016674.5A priority Critical patent/CN109254919B/en
Publication of CN109254919A publication Critical patent/CN109254919A/en
Application granted granted Critical
Publication of CN109254919B publication Critical patent/CN109254919B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The invention discloses a kind of embedded software diagnostic system and method, system includes that web search and link block, Detection task obtain module, use-case detection configuration file parsing module, detection case selection module, testing result and fill in module, embedded software system failure prediction module, embedded software fault location module, diagnosis report generation module, server.The present invention detects use-case by embedded software and records detecting step, description details, is supplied to testing staff and detects according to embedded software detection use-case, testing staff can check the executive condition and specific performance level of detection;The present invention may also adapt to various network conditions, and full working scope can be diagnosed.Using present system and method, testing staff can be helped smoothly to efficiently accomplish diagnostic task, to ensure the safety of embedded software with this.

Description

A kind of embedded software diagnostic system and method
Technical field
The present invention relates to a kind of embedded software diagnostic system and methods, i.e., can record whether there is or not network embedding Enter the method and system of the use-case detection of formula software function and performance.
Background technique
With the continuous development of Embedded Industry, people are more preferable in addition to requiring the use feeling of embedded system, to embedded The security performance of software is also extremely to value, therefore, it is necessary to diagnose to embedded software function with performance, to guarantee to be embedded in The safety of formula software.
Currently, testing staff generally requires artificially to embedded software function and property in the diagnosis of embedded software It can be carried out detection.Artificially to embedded software function and the performance detection usually detection place more severe in remote environment Or field carries out, and the computer of testing staff is not connected with network at this time, is as in offline single machine state.In addition, to insertion Formula software function and when performance detection, the details that many embedded software diagnostic systems cannot in real time during record diagnosis now With interpretation of result.
Summary of the invention
In view of the deficiencies of the prior art, the present invention is intended to provide a kind of embedded software diagnostic system and method, are realized Can detect simultaneously energy to embedded software function and performance by creation functional module in the case where whether there is or not network connection Enough diagnosis, and record testing result and diagnostic analysis ensure to be embedded in so as to smoothly efficiently accomplish diagnostic task with this The safety of formula software.
To achieve the goals above, the present invention adopts the following technical scheme:
A kind of embedded software diagnostic system, comprising:
Whether web search and link block: having network for searching for automatically, network be connected in the case where there is network, And with server communication connection;
Detection task obtains module: for obtaining Detection task by online or offline mode, in each Detection task Including at least one detection project, detection project detects configuration file by use-case and presents;
Use-case detects configuration file parsing module: for carrying out the parsing of hierarchical to use-case detection configuration file, thus Use-case is embodied in the form of project tree detects configuration file;The project tree will test project and corresponding detection use-case to set layer Level structure is shown;
Detect case selection module: then the detection project for selecting to need to carry out on project tree selects the detection Now the detection use-case that needs carry out obtains the corresponding detecting step of detection use-case and expected results, and walks according to detection Suddenly detection is executed;
Testing result fills in module: for filling in the testing result of each detection use-case by check box mode;If detection Success is just filled in the testing result of the detection use-case in module in testing result labeled as " Y ";If detection failure, is just being examined Result is surveyed to fill in the testing result of the detection use-case in module labeled as " N ";
Embedded software failure prediction module: it for passing through embedded software typical failure patterns of expression, and combines and occurs The inside and outside patterns of expression showed by testing result of embedded software, provides this of embedded software before failing Performance failure imminent in embedded software running and disabler are lost in a little patterns of expression Producing reasons, realization Effect prediction;
Embedded software fault location module: qualitative and quantitative analysis is carried out by the multiple faults decoupling to embedded software and is obtained It is out of order positioning;
Diagnosis report generation module: for the testing result according to each detection use-case, embedded software failure prediction mould Prediction result, the fault location result of embedded software fault location module of block generate embedded software function and performance diagnogtics Report, and the side that the embedded software function of generation and performance diagnogtics report are passed through into on-line automatic or offline mobile memory medium Formula is uploaded to server;
Server: for storing Detection task and corresponding use-case detection configuration file, and storage embedded software function It can be reported with performance diagnogtics.
Further, it is detected if use-cases all detect completion if the whole under detection project node to it on the project tree It is automatic to hide.
The method diagnosed using above-mentioned embedded software diagnostic system, is included the following steps:
Whether S1, web search and link block are searched for automatically has network, and network is connected in the case where there is network;
S2, when there is network connection, Detection task obtains module by network connection to server, and from server Line downloads Detection task;When not being connected to the network, Detection task is downloaded from server by mobile memory medium offline, examined It surveys task acquisition module and Detection task is obtained by the mobile memory medium offline;It include at least one in each Detection task Detection project, each detection project detect configuration file by use-case and present;
S3, the Detection task obtained in step S2 and corresponding use-case detection configuration file are imported into use-case detection configuration text In part parsing module, use-case detects the parsing that configuration file parsing module carries out hierarchical to use-case detection configuration file, thus Use-case is embodied in the form of project tree detects configuration file;
S4, the detection project that is detected is selected from project tree, and select to need to carry out under the detection project Use-case is detected, the detecting step and expected results of the detection use-case are obtained;
S5, function and performance detection are carried out to embedded software according to the detecting step of detection use-case, obtains testing result;
The testing result and corresponding expected results that S6, comparison step S5 are obtained, if testing result and expected results one It causes, then detects success, fill in the testing result of the detection use-case in module in testing result labeled as " Y ";If testing result It is inconsistent with expected results, then failure is detected, is filled in module in testing result and is labeled as the testing result of the detection use-case "N";
S7, embedded software failure prediction module are combined and are lost by embedded software typical failure patterns of expression The inside and outside patterns of expression showed by testing result of embedded software, provides these of embedded software before imitating Patterns of expression Producing reason, realization fail to performance failure imminent in embedded software running and disabler Prediction;
S8, embedded software fault location module carry out qualitative and quantitative analysis by the multiple faults decoupling to embedded software Obtain fault location;
S9, diagnosis report generation module are by the newest testing result of each detection use-case, embedded software failure prediction mould Prediction result, the fault location result of embedded software fault location module of block generate embedded software function and performance diagnogtics Report;
S10, when there is network connection, the embedded software function that is generated step S9 by web search and link block It is uploaded to server in real time with performance diagnogtics report;When not being connected to the network, generate every time new embedded software function with Performance diagnogtics carry out offline single machine immediately and automatically save when reporting, subsequently through mobile memory medium by the embedded software of preservation Function manually copies server to performance diagnogtics report and is stored.
The beneficial effects of the present invention are:
1, the present invention detects use-case by embedded software and records detecting step, description details, is supplied to detection people Member is detected according to embedded software function and performance detection use-case, and testing staff can check the executive condition and tool of diagnosis Body performance level and diagnostic result.
2, the present invention is adapted to various network conditions, and full working scope can be diagnosed.
Using present system and method, testing staff can be helped smoothly to efficiently accomplish diagnostic task, to come with this Ensure the safety of embedded software.
Detailed description of the invention
Fig. 1 is the system composition schematic diagram of the embodiment of the present invention;
Fig. 2 is the method implementation flow chart of the embodiment of the present invention.
Specific embodiment
Below with reference to attached drawing, the invention will be further described, it should be noted that following embodiment is with this technology Premised on scheme, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to this Embodiment.
As shown in Figure 1, a kind of embedded software diagnostic system, comprising:
Whether web search and link block: having network for searching for automatically, network be connected in the case where there is network, And with server communication connection;
Detection task obtains module: for obtaining Detection task by online or offline mode, in each Detection task Including at least one detection project, detection project detects configuration file by use-case and presents;
Use-case detects configuration file parsing module: for carrying out the parsing of hierarchical to use-case detection configuration file, thus Use-case is embodied in the form of project tree detects configuration file;The project tree will test project and corresponding detection use-case to set layer Level structure is shown;
Detect case selection module: then the detection project for selecting to need to carry out on project tree selects the detection Now the detection use-case that needs carry out obtains the corresponding detecting step of detection use-case and expected results, and walks according to detection Suddenly detection is executed;
Testing result fills in module: for filling in the testing result of each detection use-case by check box mode;If detection Success is just filled in the testing result of the detection use-case in module in testing result labeled as " Y ";If detection failure, is just being examined Result is surveyed to fill in the testing result of the detection use-case in module labeled as " N ";
Embedded software failure prediction module: it for passing through embedded software typical failure patterns of expression, and combines and occurs The inside and outside patterns of expression showed by testing result of embedded software, provides this of embedded software before failing Performance failure imminent in embedded software running and disabler are lost in a little patterns of expression Producing reasons, realization Effect prediction;
Embedded software fault location module: qualitative and quantitative analysis is carried out by the multiple faults decoupling to embedded software and is obtained It is out of order positioning;
Diagnosis report generation module: for the testing result according to each detection use-case, embedded software failure prediction mould Prediction result, the fault location result of embedded software fault location module of block generate embedded software function and performance diagnogtics Report, and the side that the embedded software function of generation and performance diagnogtics report are passed through into on-line automatic or offline mobile memory medium Formula is uploaded to server;
Server: for storing Detection task and corresponding use-case detection configuration file, and storage embedded software function It can be reported with performance diagnogtics.
As shown in Fig. 2, whether S1, web search and link block are searched for automatically has network, connect in the case where there is network It is connected to network;
S2, when there is network connection, Detection task obtains module by network connection to server, and from server Line downloads Detection task;When not being connected to the network, Detection task is downloaded from server by mobile memory medium offline, examined It surveys task acquisition module and Detection task is obtained by the mobile memory medium offline;It include at least one in each Detection task Detection project, each detection project detect configuration file by use-case and present;
S3, the Detection task obtained in step S2 and corresponding use-case detection configuration file are imported into use-case detection configuration text In part parsing module, use-case detects the parsing that configuration file parsing module carries out hierarchical to use-case detection configuration file, thus Use-case is embodied in the form of project tree detects configuration file;
S4, the detection project that is detected is selected from project tree, and select to need to carry out under the detection project Use-case is detected, the detecting step and expected results of the detection use-case are obtained;
S5, function and performance detection are carried out to embedded software according to the detecting step of detection use-case, obtains testing result;
The testing result and corresponding expected results that S6, comparison step S5 are obtained, if testing result and expected results one It causes, then detects success, fill in the testing result of the detection use-case in module in testing result labeled as " Y ";If testing result It is inconsistent with expected results, then failure is detected, is filled in module in testing result and is labeled as the testing result of the detection use-case "N";
S7, embedded software failure prediction module are combined and are lost by embedded software typical failure patterns of expression The inside and outside patterns of expression showed by testing result of embedded software, provides these of embedded software before imitating Patterns of expression Producing reason, realization fail to performance failure imminent in embedded software running and disabler Prediction;
S8, embedded software fault location module carry out qualitative and quantitative analysis by the multiple faults decoupling to embedded software Obtain fault location;
S9, diagnosis report generation module are by the newest testing result of each detection use-case, embedded software failure prediction mould Prediction result, the fault location result of embedded software fault location module of block generate embedded software function and performance diagnogtics Report;
S10, when there is network connection, the embedded software function that is generated step S9 by web search and link block It is uploaded to server in real time with performance diagnogtics report;When not being connected to the network, generate every time new embedded software function with Performance diagnogtics carry out offline single machine immediately and automatically save when reporting, subsequently through mobile memory medium by the embedded software of preservation Function manually copies server to performance diagnogtics report and is stored.
For those skilled in the art, it can be provided various corresponding according to above technical solution and design Change and modification, and all these change and modification, should be construed as being included within the scope of protection of the claims of the present invention.

Claims (3)

1. a kind of embedded software diagnostic system characterized by comprising
Whether web search and link block: having network for searching for automatically, is connected to network in the case where there is network, and with Server communication connection;
Detection task obtains module: for obtaining Detection task by online or offline mode, including in each Detection task At least one detection project, detection project detect configuration file by use-case and present;
Use-case detects configuration file parsing module: for carrying out the parsing of hierarchical to use-case detection configuration file, thus with item The form of mesh tree embodies use-case and detects configuration file;The project tree will test project and corresponding detection use-case to set level knot Structure is shown;
Detect case selection module: then the detection project for selecting to need to carry out on project tree selects under the detection project The detection use-case that carries out of needs, obtain the corresponding detecting step of detection use-case and expected results, and hold according to detecting step Row detection;
Testing result fills in module: for filling in the testing result of each detection use-case by check box mode;If detecting successfully, Just fill in the testing result of the detection use-case in module in testing result labeled as " Y ";If detection failure, just in testing result It fills in the testing result of the detection use-case in module labeled as " N ";
Embedded software failure prediction module: it for passing through embedded software typical failure patterns of expression, and combines and fails The inside and outside patterns of expression showed by testing result of preceding embedded software, provides these tables of embedded software Regular Producing reason is levied, realization fail to performance failure imminent in embedded software running and disabler pre- It surveys;
Embedded software fault location module: qualitative and quantitative analysis is carried out by the multiple faults decoupling to embedded software and obtains event Barrier positioning;
Diagnosis report generation module: for according to each detection testing result of use-case, embedded software failure prediction module Prediction result, the fault location result of embedded software fault location module generate embedded software function and performance diagnogtics report It accuses, and the embedded software function of generation and performance diagnogtics is reported by way of on-line automatic or offline mobile memory medium It is uploaded to server;
Server: for store Detection task and corresponding use-case detection configuration file, and storage embedded software function with Performance diagnogtics report.
2. embedded software diagnostic system according to claim 1, which is characterized in that if detection on the project tree It is then automatic hiding to it that whole detection use-cases under mesh node all detect completion.
3. utilizing the method that embedded software diagnostic system is diagnosed described in any of the above-described claim, which is characterized in that Include the following steps:
Whether S1, web search and link block are searched for automatically has network, and network is connected in the case where there is network;
S2, when there is network connection, Detection task obtains module by network connection to server, and under online in server Carry Detection task;When not being connected to the network, Detection task is downloaded by mobile memory medium offline from server, detection is appointed Business obtains module and obtains Detection task offline by the mobile memory medium;It include at least one detection in each Detection task Project, each detection project detect configuration file by use-case and present;
S3, the Detection task obtained in step S2 and corresponding use-case detection configuration file are imported use-case and detects configuration file solution It analyses in module, use-case detects the parsing that configuration file parsing module carries out hierarchical to use-case detection configuration file, thus with item The form of mesh tree embodies use-case and detects configuration file;
S4, the detection project detected is selected from project tree, and select the detection for needing to carry out under the detection project Use-case obtains the detecting step and expected results of the detection use-case;
S5, function and performance detection are carried out to embedded software according to the detecting step of detection use-case, obtains testing result;
The testing result and corresponding expected results that S6, comparison step S5 are obtained, if testing result is consistent with expected results, It detects successfully, fills in the testing result of the detection use-case in module in testing result labeled as " Y ";If testing result and expection As a result inconsistent, then failure is detected, is filled in the testing result of the detection use-case in module in testing result labeled as " N ";
Before S7, embedded software failure prediction module pass through embedded software typical failure patterns of expression, and combination is failed The inside and outside patterns of expression showed by testing result of embedded software provides these characterizations of embedded software Regular Producing reason, realization fail to performance failure imminent in embedded software running and disabler pre- It surveys;
S8, embedded software fault location module carry out qualitative and quantitative analysis by the multiple faults decoupling to embedded software and obtain Fault location;
S9, diagnosis report generation module are by each detection use-case newest testing result, embedded software failure prediction module Prediction result, the fault location result of embedded software fault location module generate embedded software function and performance diagnogtics report It accuses;
S10, when there is network connection, by web search and link block by the step S9 embedded software function of generating and property Energy diagnosis report is uploaded to server in real time;When not being connected to the network, new embedded software function and performance are generated every time Offline single machine is carried out when diagnosis report immediately to automatically save, subsequently through mobile memory medium by the embedded software function of preservation Manually server is copied to performance diagnogtics report to be stored.
CN201811016674.5A 2018-09-03 2018-09-03 Embedded software diagnosis system and method Expired - Fee Related CN109254919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811016674.5A CN109254919B (en) 2018-09-03 2018-09-03 Embedded software diagnosis system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811016674.5A CN109254919B (en) 2018-09-03 2018-09-03 Embedded software diagnosis system and method

Publications (2)

Publication Number Publication Date
CN109254919A true CN109254919A (en) 2019-01-22
CN109254919B CN109254919B (en) 2022-03-29

Family

ID=65049514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811016674.5A Expired - Fee Related CN109254919B (en) 2018-09-03 2018-09-03 Embedded software diagnosis system and method

Country Status (1)

Country Link
CN (1) CN109254919B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878497A (en) * 2023-02-22 2023-03-31 苏州成科自控设备有限公司 Embedded software programming and diagnosing system and method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110126055A1 (en) * 2009-11-20 2011-05-26 Fujitsu Limited Information processing apparatus, and method of diagnosis
CN103149901A (en) * 2013-02-04 2013-06-12 南京理工大学 Embedded intelligent monitoring and remote maintaining system of manufacturing equipment
CN103235756A (en) * 2013-04-22 2013-08-07 北京航空航天大学 Simulation testing method for partition application software of embedded system
CN203965533U (en) * 2014-04-28 2014-11-26 苏州华天国科电力科技有限公司 A kind of individual line subscriber energy-saving potential and quality of power supply intelligent diagnosing instrument
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN106708684A (en) * 2017-02-15 2017-05-24 国网安徽省电力公司宣城供电公司 Virtual environment testing hardware system for transformer substation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110126055A1 (en) * 2009-11-20 2011-05-26 Fujitsu Limited Information processing apparatus, and method of diagnosis
CN103149901A (en) * 2013-02-04 2013-06-12 南京理工大学 Embedded intelligent monitoring and remote maintaining system of manufacturing equipment
CN103235756A (en) * 2013-04-22 2013-08-07 北京航空航天大学 Simulation testing method for partition application software of embedded system
CN203965533U (en) * 2014-04-28 2014-11-26 苏州华天国科电力科技有限公司 A kind of individual line subscriber energy-saving potential and quality of power supply intelligent diagnosing instrument
CN104407971A (en) * 2014-11-18 2015-03-11 中国电子科技集团公司第十研究所 Method for automatically testing embedded software
CN106708684A (en) * 2017-02-15 2017-05-24 国网安徽省电力公司宣城供电公司 Virtual environment testing hardware system for transformer substation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115878497A (en) * 2023-02-22 2023-03-31 苏州成科自控设备有限公司 Embedded software programming and diagnosing system and method thereof

Also Published As

Publication number Publication date
CN109254919B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN108306756B (en) Holographic evaluation system based on power data network and fault positioning method thereof
CN108153603B (en) Database server fault handling method, device and storage medium
Pecheur et al. Formal verification of diagnosability via symbolic model checking
CN109947646A (en) Interface test method, device, computer equipment and storage medium
CN102735485B (en) Excavator and method and system for determining equipment fault
CN106528407A (en) Embedded software security automation verification system and verification method thereof
CN106776208B (en) Fault Locating Method when a kind of running software
CN105677563A (en) Integrated test sequence generating method based on SysML module diagrams
CN104614601B (en) A kind of terminal fault localization method, apparatus and system
CN106250631A (en) Fault diagnosis method based on fault-test correlation matrix
CN104461887A (en) Embedded software black-box test case generation method based on dynamic model
CN114791846B (en) Method for realizing observability aiming at cloud-originated chaos engineering experiment
CN109165124A (en) A kind of embedded system hardware fault detection and processing method based on fault tree
CN109254219A (en) A kind of distribution transforming transfer learning method for diagnosing faults considering multiple factors Situation Evolution
CN109542719A (en) Thread state monitoring method and device, computer equipment and storage medium
CN112052130A (en) CAN network automatic test system and test method thereof
CN109254919A (en) A kind of embedded software diagnostic system and method
CN104899137A (en) Discovering method for defect mode in concurrent program
CN107966648A (en) A kind of embedded failure diagnosis method based on correlation matrix
CN103870349B (en) For the configuration management device and method of data handling system
CN114065990A (en) Method for monitoring feed pump in thermal power plant, storage medium and electronic device
CN116107794A (en) Ship software fault automatic diagnosis method, system and storage medium
CN109190195A (en) Management method, system, equipment and the storage medium of airplane information
CN112214912B (en) External automatic test system and airborne equipment test method
CN109271309A (en) Method and device, server, equipment and the storage medium of automatic test software

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
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220329

CF01 Termination of patent right due to non-payment of annual fee