CN109358564A - It is a kind of to detect the method and device of configuration software, computer readable storage medium - Google Patents
It is a kind of to detect the method and device of configuration software, computer readable storage medium Download PDFInfo
- Publication number
- CN109358564A CN109358564A CN201811118388.XA CN201811118388A CN109358564A CN 109358564 A CN109358564 A CN 109358564A CN 201811118388 A CN201811118388 A CN 201811118388A CN 109358564 A CN109358564 A CN 109358564A
- Authority
- CN
- China
- Prior art keywords
- detection
- configuration software
- module
- configuration
- software
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/056—Programming the PLC
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/13—Plc programming
- G05B2219/13144—GUI graphical user interface, icon, function bloc editor, OI operator interface
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of method and devices for detecting configuration software, computer readable storage medium.Wherein detect the method for configuration software, comprising: step 1, the projects of configuration software are divided by several parts to be detected according to detection type;Step 2, it before compiling projects, successively detects the part to be detected and shows testing result.The present invention can allow user to detect mistake before compiling and solve, and avoid multiple compiling, improve compiling efficiency.
Description
Technical field
The present invention relates to a kind of detection method and device of configuration software error message and the storage of corresponding computer to be situated between
Matter.
Background technique
Configuration software on the market at present will go to realize using the testing mechanism or the compiler mechanism of reporting an error of software itself
Detection for projects mistake, compilation process need the regular hour.Such as HMI configuration software, only it is directed to single mould
The error detection of block, HMI configuration software are to go modification mistake after the completion of compiling according to error message, modified rear user again
It is recompilated.Due to the mistake that the characteristic of configuration software, modification can also may cause other new when wrong, after compiling again
It also needs to modify again according to error message, is repeatedly compiled and handled multiple by preceding possible needs in entire compiling
Error message can thus waste many times.
Summary of the invention
It results in the need for repeatedly compiling to solve the problems, such as that configuration software can not detect mistake in advance in the prior art, this hair
It is bright to propose a kind of method for detecting configuration software, comprising:
Step 1, the projects of configuration software are divided by several parts to be detected according to detection type;
Step 2, it before compiling projects, successively detects the part to be detected and shows testing result.
In the first embodiment, step 2 often detects error message at one, jumps to the corresponding page of the projects
Position simultaneously shows its error message.
In a second embodiment, after step 2 has detected all parts to be detected, its testing result is shown.
Specifically, projects are divided into parameter configuration, communication configuration and each software mould to be detected in the step 1
Block.
Specifically, the software module includes single module and coupling module.
In the above-mentioned technical solutions, whether each parameter that detection parameters configure in the step 2 matches and parameter setting
Afterwards configuration software whether stable operation.
In the above-mentioned technical solutions, whether detection communication configuration can be with normal communication, and detection communication in the step 2
Stability.Preferably, whether communication configuration is detected by the way that analog communication module is added in configuration software can be with normal communication.
The communication robust judges according to the value range of the stability of the test data formulation of test collection.
In the above-mentioned technical solutions, when the step 2 detection coupling module, first whether the configuration of detection coupling module itself
Correctly, coupling detection is then carried out.When the coupling is detected as detecting attribute associated with other modules, judge corresponding
Whether module is deletion, if corresponding module exists, whether the association for detecting corresponding module meets preset logic.
In specific application, the configuration software includes HMI configuration software.
The present invention simultaneously propose it is a kind of detect configuration software device, comprising: configuration software control terminal, detection module and
Result display module;The configuration software control terminal is before compiling configuration software, sending detection instruction to the detection module,
The detection module receives the detection instruction and is detected, and the result display module will test the testing result feedback of module
To configuration software control terminal and show testing result.
The detection module includes: parameter detecting unit, communication detection unit, software module detection unit.
The invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the computer
Program is performed the method for realizing above-mentioned detection configuration software.
The present invention carries out error detection before compiling projects, to the projects of configuration software.User is according to display
Error message, the mistake occurred in projects can be rapidly processed.To guarantee that compiling once passes through, save repeatedly
Compile the time of waste.
Detailed description of the invention
Below with reference to embodiment and attached drawing, the present invention is described in detail, in which:
Fig. 1 is the device of the invention structural block diagram.
Fig. 2 is the flow chart of one embodiment of the invention.
Fig. 3 is the flow chart of an alternate embodiment of the invention.
Specific embodiment
The principle and embodiment that the invention will now be described in detail with reference to the accompanying drawings.
As shown in Figure 1, the structural block diagram of the device of detection configuration software is given in a specific embodiment of the invention,
The device includes configuration software control terminal, detection module and result display module.Configuration software control terminal can be user and can grasp
The end PC of work, the configuration software control terminal issue detection instruction to detection module, detection module connects before compiling configuration software
It receives detection instruction to detect configuration software, it is soft that the testing result that then result display module will test module feeds back to configuration
Part control terminal simultaneously shows testing result.
Parameter detecting unit, communication detection unit, software module detection unit are contained in detection module of the invention.?
In one application examples, the present invention can be detected HMI configuration software, and specific detection module includes HMI parameter detecting list
Member, PLC communication detection unit and software module detection unit.
The method that the present invention detects configuration software mainly includes two steps: firstly, according to detection type by configuration software
Projects be divided into several parts to be detected;Then before compiling projects, the part to be detected is successively detected simultaneously
Show testing result.
Fig. 2 gives the tool of one embodiment in specifically detection configuration software for detecting HMI configuration software
Body step.
Step 1, start to detect mistake;
Step 2, whether detection HMI parameter configuration is correct.In the present embodiment, the detection of HMI parameter include detection parameters whether
Matching, after parameter setting configuration software whether stable operation, wherein whether stable operation is to pass through to configuration software after parameter setting
Judge whether the value of each parameter meets developer according to the parameter area that test obtains to determine.
Step 3, whether detection PLC communication configuration is correct.In this example, the detection of PLC communication setting includes whether normal
Communication and communication robust detection, need that analog communication module is added in configuration software.When executing PLC communication detection, automatically
Analog communication is carried out, to detect the correctness of communication setting.Communication robust detection is also the test data collected according to test,
Formulate the value range of stability.
Step 4, whether correct each software module is detected.Software module includes single module and coupling module.Single module
Detection only need the configuration of inspection software itself whether correct, the detection of coupling module is firstly the need of detection coupling module
Whether the software configuration of itself is correct.When detecting a certain attribute and other module relations, start to carry out coupling detection.Coupling
Detection is specially when detecting attribute associated with other modules, to judge whether corresponding module is deletion, if corresponding mould
Block exists, then whether the association for detecting corresponding module meets preset logic.
Step 5, error message is judged whether there is, if so, continuing step 6;If it is not, then continuing step 7;
Step 6, detection terminates, and shows error message, double-clicks error message and jumps to corresponding configuration interface.
Step 7, detection terminates, and shows error-free information, and user may be selected to be compiled.
Fig. 3 is similarly to give the present invention detects the method for configuration software second for detecting HM configuration software
The specific steps of embodiment.
Step 1, start to detect mistake;
Step 2, whether detection HMI parameter configuration is correct, if so, continuing step 3;If it is not, detection terminates, error message is shown,
Double-click the corresponding page that error message jumps to configuration software projects;
Step 3, whether detection PLC communication configuration is correct, if so, continuing step 4;If it is not, detection terminates, error message is shown,
Double-click the corresponding page that error message jumps to configuration software projects;
Step 4, whether correct each software module is detected, if so, continuing step 5;If it is not, detection terminates, error message is shown, it is double
Hit the corresponding page that error message jumps to configuration software projects;
Step 5, detection terminates, and shows error-free information, and user may be selected to be compiled.
The present invention also protects the computer readable storage medium that store computer program, which is performed
The method for realizing above-mentioned detection configuration software.
The present invention is before compiling, it would be possible to which the place of error is classified and detects, so that research staff
All mistakes can be checked before compiling, until it is wrong to have modified institute, then be compiled, it is possible to reduce compiling time
Number, saves a large amount of compilation time.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.
Claims (15)
1. a kind of method for detecting configuration software characterized by comprising
Step 1, the projects of configuration software are divided by several parts to be detected according to detection type;
Step 2, it before compiling projects, detects the part to be detected and shows testing result.
2. the method for detection configuration software as described in claim 1, which is characterized in that the step 2 often detects when detecting
Error message at one jumps to the corresponding page location of the projects and shows its error message.
3. the method for detection configuration software as described in claim 1, which is characterized in that the step 2 has detected all to be checked
After surveying part, testing result is shown.
4. the method for detection configuration software as described in claim 1, which is characterized in that by projects point in the step 1
For parameter configuration to be detected, communication configuration and each software module.
5. the method for detection configuration software as claimed in claim 4, which is characterized in that the software module includes single module
And coupling module.
6. the method for detection configuration software as claimed in claim 4, which is characterized in that detection parameters configure in the step 2
Each parameter whether match and parameter setting after configuration software whether stable operation.
7. the method for detection configuration software as claimed in claim 4, which is characterized in that detection communication configuration in the step 2
Whether can be with normal communication, and detection communication robust.
8. the method for detection configuration software as claimed in claim 7, which is characterized in that simulated by being added in configuration software
Whether communication module communicates configuration can be with normal communication to detect.
9. the method for detection configuration software as claimed in claim 7, which is characterized in that the communication robust is received according to test
The value range of the stability that the test data of collection is formulated judges.
10. the method for detection configuration software as claimed in claim 5, which is characterized in that the step 2 detects coupling module
When, whether the configuration for first detecting coupling module itself is correct, then carries out coupling detection.
11. the method for detection configuration software as claimed in claim 10, which is characterized in that the coupling detection specifically includes:
When detecting attribute associated with other modules, judge whether corresponding module is deletion, if corresponding module exists, examines
Whether the association for surveying corresponding module meets preset logic.
12. the method for detection configuration software as described in claim 1, which is characterized in that the configuration software includes HMI configuration
Software.
13. a kind of device for detecting configuration software characterized by comprising configuration software control terminal, detection module and result are aobvious
Show module;The configuration software control terminal issues detection instruction to the detection module, the inspection before compiling configuration software
It surveys the module reception detection instruction to be detected, the testing result that the result display module will test module feeds back to configuration
Software control end simultaneously shows testing result.
14. device as claimed in claim 13, which is characterized in that the detection module includes: parameter detecting unit, communication inspection
Survey unit, software module detection unit.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
It is performed the method realized as described in claim 1-12 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811118388.XA CN109358564B (en) | 2018-09-19 | 2018-09-19 | Method and device for detecting configuration software and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811118388.XA CN109358564B (en) | 2018-09-19 | 2018-09-19 | Method and device for detecting configuration software and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109358564A true CN109358564A (en) | 2019-02-19 |
CN109358564B CN109358564B (en) | 2022-05-20 |
Family
ID=65347688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811118388.XA Active CN109358564B (en) | 2018-09-19 | 2018-09-19 | Method and device for detecting configuration software and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109358564B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486803A (en) * | 2020-11-12 | 2021-03-12 | 珠海格力电器股份有限公司 | Error processing method, device and equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101135965A (en) * | 2006-08-29 | 2008-03-05 | 深圳达实智能股份有限公司 | Realization method of configuration control |
CN102521125A (en) * | 2011-11-30 | 2012-06-27 | 福州福大自动化科技有限公司 | Method for automatically detecting syntax error in control policy configuration |
CN103279418A (en) * | 2013-06-05 | 2013-09-04 | 浙江中控技术股份有限公司 | Test method and device for configuration control information |
CN103377341A (en) * | 2012-04-28 | 2013-10-30 | 北京网秦天下科技有限公司 | Method and system for security detection |
CN104050085A (en) * | 2014-06-25 | 2014-09-17 | 北京思特奇信息技术股份有限公司 | Forced code standard inspection method and system |
CN104462981A (en) * | 2013-09-12 | 2015-03-25 | 深圳市腾讯计算机系统有限公司 | Detecting method and device for vulnerabilities |
CN106250319A (en) * | 2016-08-15 | 2016-12-21 | 腾讯科技(深圳)有限公司 | Static code scanning result treating method and apparatus |
CN107045477A (en) * | 2016-12-30 | 2017-08-15 | 上海富聪金融信息服务有限公司 | A kind of quality evaluation platform for carrying out various dimensions detection |
CN107908405A (en) * | 2017-11-17 | 2018-04-13 | 苏州蜗牛数字科技股份有限公司 | The static examination & verification device and method of code |
US20180121338A1 (en) * | 2016-11-01 | 2018-05-03 | Ca, Inc. | Automatically detecting internationalization (i18n) issues in source code as part of static source code analysis |
-
2018
- 2018-09-19 CN CN201811118388.XA patent/CN109358564B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101135965A (en) * | 2006-08-29 | 2008-03-05 | 深圳达实智能股份有限公司 | Realization method of configuration control |
CN102521125A (en) * | 2011-11-30 | 2012-06-27 | 福州福大自动化科技有限公司 | Method for automatically detecting syntax error in control policy configuration |
CN103377341A (en) * | 2012-04-28 | 2013-10-30 | 北京网秦天下科技有限公司 | Method and system for security detection |
CN103279418A (en) * | 2013-06-05 | 2013-09-04 | 浙江中控技术股份有限公司 | Test method and device for configuration control information |
CN104462981A (en) * | 2013-09-12 | 2015-03-25 | 深圳市腾讯计算机系统有限公司 | Detecting method and device for vulnerabilities |
CN104050085A (en) * | 2014-06-25 | 2014-09-17 | 北京思特奇信息技术股份有限公司 | Forced code standard inspection method and system |
CN106250319A (en) * | 2016-08-15 | 2016-12-21 | 腾讯科技(深圳)有限公司 | Static code scanning result treating method and apparatus |
US20180121338A1 (en) * | 2016-11-01 | 2018-05-03 | Ca, Inc. | Automatically detecting internationalization (i18n) issues in source code as part of static source code analysis |
CN107045477A (en) * | 2016-12-30 | 2017-08-15 | 上海富聪金融信息服务有限公司 | A kind of quality evaluation platform for carrying out various dimensions detection |
CN107908405A (en) * | 2017-11-17 | 2018-04-13 | 苏州蜗牛数字科技股份有限公司 | The static examination & verification device and method of code |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486803A (en) * | 2020-11-12 | 2021-03-12 | 珠海格力电器股份有限公司 | Error processing method, device and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109358564B (en) | 2022-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105930274B (en) | A kind of automated testing method and system | |
US8370816B2 (en) | Device, method and computer program product for evaluating a debugger script | |
CN104375934B (en) | Method for testing reliability of Android mobile phone software | |
CN104461894A (en) | Android App operating recording device and method | |
CN102541740B (en) | A kind of mobile phone notes automated testing method based on Android | |
US9256512B1 (en) | Quality analysis for embedded software code | |
CN107908551A (en) | Terminal software test method, device, terminal and computer-readable storage medium | |
CN103257919B (en) | Inspection method and device for script programs | |
CN105094783A (en) | Method and device for testing Android application stability | |
US8291388B2 (en) | System, method and program for executing a debugger | |
CN105138461A (en) | Interface testing method and device for application program | |
CN104850499A (en) | Automatic test method and device for base band software | |
CN113360144B (en) | Auxiliary processing method, device, storage medium and program product for software development | |
CN104780407A (en) | Automatic testing method and automatic testing system for set top box | |
CN102339253A (en) | System and method for use in indicating execution of application code | |
CN104699617A (en) | Automated testing method for games | |
CN107608873B (en) | Software testing method and system and testing platform | |
WO2016015220A1 (en) | Executable code abnormality detection | |
CN106021101A (en) | Method and device for testing mobile terminal | |
CN104572999A (en) | Heterogeneous data based detecting method and device for fault data | |
US8185455B2 (en) | Auditing system with interactive rule construction user interface | |
CN109358564A (en) | It is a kind of to detect the method and device of configuration software, computer readable storage medium | |
CN112149828B (en) | Operator precision detection method and device based on deep learning framework | |
CN109240928A (en) | A kind of test method, device, equipment and storage medium | |
CN113126993A (en) | Automatic testing method and system applied to vehicle detection 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 |