CN105739481A - Industrial control software testing method, industrial control software testing device, and industrial control software testing system - Google Patents

Industrial control software testing method, industrial control software testing device, and industrial control software testing system Download PDF

Info

Publication number
CN105739481A
CN105739481A CN201610063453.8A CN201610063453A CN105739481A CN 105739481 A CN105739481 A CN 105739481A CN 201610063453 A CN201610063453 A CN 201610063453A CN 105739481 A CN105739481 A CN 105739481A
Authority
CN
China
Prior art keywords
industrial control
control software
test
target industrial
operational factor
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
CN201610063453.8A
Other languages
Chinese (zh)
Other versions
CN105739481B (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.)
Mesnac Co Ltd
Original Assignee
Mesnac 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 Mesnac Co Ltd filed Critical Mesnac Co Ltd
Priority to CN201610063453.8A priority Critical patent/CN105739481B/en
Publication of CN105739481A publication Critical patent/CN105739481A/en
Application granted granted Critical
Publication of CN105739481B publication Critical patent/CN105739481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system

Abstract

The invention discloses an industrial control software testing method, an industrial control software testing device, and an industrial control software testing system. The testing method is characterized in that a testing script corresponding to a target industrial control software can be acquired from a testing script set, and the testing script comprises operation parameters; under the driving of the testing script, the target industrial control software can be operated by an industrial personal computer according to the operation parameters; the testing result of the target industrial control software operated according to the operation parameters can be acquired, and comprises the data generated by the target industrial control software during the operation process and/or the ending of the operation process. The technical problem of the industrial control software of the low testing efficiency can be solved.

Description

The method of testing of industrial control software, Apparatus and system
Technical field
The present invention relates to software test field, in particular to the method for testing of a kind of industrial control software, Apparatus and system.
Background technology
At industrial control field, after slave computer software has been write, generally require and slave computer software is tested, the existing testing scheme to slave computer software is that staff is performed manually by debugging or entrance factory carries out field adjustable, to pinpoint the problems in debugging and slave computer carries out corresponding amendment.Existing method of testing, manpower and duration consume too big, it is impossible to continue carrying out repeatedly in effective time and test, and there is the scene that some manpowers cannot be tested, there is cost height, and at the bottom of efficiency, more problem is omitted in test.
For the technical problem that the testing efficiency of industrial control software in prior art is low, effective solution is not yet proposed at present.
Summary of the invention
Embodiments provide the method for testing of a kind of industrial control software, Apparatus and system, the technical problem that testing efficiency at least to solve industrial control software is low.
An aspect according to embodiments of the present invention, it is provided that the method for testing of a kind of industrial control software, this method of testing includes: obtaining the test script that target industrial control software is corresponding from test script set, wherein, test script includes operational factor;Driving industrial computer operational objective industrial control software by test script, wherein, target industrial control software runs according to operational factor;Obtaining the test result that target industrial control software runs according to operational factor, wherein, test result includes the data that target industrial control software produces in running and/or when end of run.
Further, industrial computer has input label and output label, input label is for driving target industrial control software to run according to the value of input label, output label is used for storing test result, wherein, driving industrial computer operational objective industrial control software to include by test script: to send the test instruction including operational factor to industrial computer, wherein, test instruction is for being assigned to input label by the value of operational factor;The test result that acquisition target industrial control software runs according to operational factor includes: after target industrial control software end of run, read test result from output label.
Further, test script also includes the tag identifier of input label, sends the test instruction including operational factor and includes to industrial computer: test instruction is converted to the data communication form that industrial computer is supported;The tag addresses corresponding with tag identifier is read from presetting database;According to tag addresses, the test instruction after conversion is sent to input label.
Further, before obtaining the test script that target industrial control software is corresponding from test script set, the method for testing of industrial control software also includes: determine the target industrial control software being currently needed for test according to the testing sequence of target industrial control softwares multiple in software assembly.
Further, after obtaining the test result that target industrial control software runs according to operational factor, the method for testing of industrial control software also includes: obtain multiple report template, and wherein, in multiple report templates, each report template corresponds to a target industrial control software;The test result of each target industrial control software in multiple target industrial control softwares is packed into the report template of correspondence;Each report template after data splitting filling, obtains test report.
Another aspect according to embodiments of the present invention, additionally providing the test device of a kind of industrial control software, this test device includes: script acquiring unit, for obtaining the test script that target industrial control software is corresponding from test script set, wherein, test script includes operational factor;Test cell, for driving industrial computer operational objective industrial control software by test script, wherein, target industrial control software runs according to operational factor;Data capture unit, for obtaining the test result that target industrial control software runs according to operational factor, wherein, test result includes the data that target industrial control software produces in running and/or when end of run.
Further, industrial computer has input label and output label, input label is for driving target industrial control software to run according to the value of input label, output label is used for storing test result, wherein, test cell includes: sending module, for sending the test instruction that includes operational factor to industrial computer, wherein, test instruction is for being assigned to input label by the value of operational factor;Data capture unit includes: read module, is used for after target industrial control software end of run, read test result from output label.
Further, test script also includes the tag identifier of input label, and sending module includes: transform subblock, for test instruction is converted to the data communication form that industrial computer is supported;Reading submodule, for reading the tag addresses corresponding with tag identifier from presetting database;Instruction sends submodule, for sending the test instruction after conversion to input label according to tag addresses.
Further, the test device of industrial control software also comprises determining that unit, for, before obtaining the test script that target industrial control software is corresponding from test script set, determining the target industrial control software being currently needed for test according to the testing sequence of target industrial control softwares multiple in software assembly.
The 3rd aspect according to embodiments of the present invention, additionally provide the test system of a kind of industrial control software, this test system includes: test equipment, it is connected with server, for obtaining test script corresponding to target industrial control software from test script set and test script being sent to server, wherein, test script includes operational factor;Server, is connected with industrial computer, and for parsing test instruction from the test script received and sending test instruction to industrial computer, wherein, test instruction includes operational factor;Industrial computer, for receiving test instruction and controlling target industrial control software according to operational factor operation, wherein, test equipment is additionally operable to obtain the test result that target industrial control software runs according to operational factor, wherein, test result includes the data that target industrial control software produces in running and/or when end of run.
In embodiments of the present invention, the test script that target industrial control software is corresponding is obtained from test script set, industrial computer operational objective industrial control software is driven by test script, target industrial control software is made to run according to the operational factor of test script, then the test result that target industrial control software runs is obtained according to operational factor, above-mentioned test function can be passed through shell script and automatically perform, thus solving the technical problem that in prior art, the testing efficiency of industrial control software is low, improve the testing efficiency of industrial control software.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, and the schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the test system of industrial control software according to embodiments of the present invention;
Fig. 2 is the flow chart of the method for testing of industrial control software according to embodiments of the present invention;
Fig. 3 is the schematic diagram of test industrial control software according to embodiments of the present invention;And
Fig. 4 is the schematic diagram of the test device of industrial control software according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, all should belong to the scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that the data of so use can be exchanged in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or describe those except order implement.In addition, term " includes " and " having " and their any deformation, it is intended to cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment be not necessarily limited to those steps or the unit clearly listed, but can include clearly not listing or for intrinsic other step of these processes, method, product or equipment or unit.
First, the part noun occurred in the process that the embodiment of the present invention is described or term are applicable to description below:
Script: be a kind of specific descriptive language, according to the executable file that certain form is write, also referred to as grand or autoexec.
PLC: English full name is ProgrammableLogicController, and Chinese is programmable logic controller (PLC), is a kind of computer being exclusively used in Industry Control, as the PLC of Rockwell (i.e. AB), this PLC adopt the mode of label programming to be programmed.
Label: the PLC symbolization programming of Allen-Bradley company, each variable in program can have the label of correspondence, it is possible to by label to this variable assignments or the value obtaining this variable according to label.
OPC: English full name is ObjectLinkingandEmbeddingforProcessControl, is a kind of industrial standard, mainly includes the regular set of a whole set of interface, attribute and method, for process control and automated manufacturing system.
According to embodiments of the present invention, provide the embodiment of the test system of a kind of industrial control software, Fig. 1 is the schematic diagram of the test system of industrial control software according to embodiments of the present invention, as shown in Figure 1, this test system includes: test equipment 10, is connected with server 20, for obtaining test script corresponding to target industrial control software from test script set and sending test script to server, wherein, test script includes operational factor;Server 20, is connected with industrial computer 30, and for parsing test instruction from the test script received and sending test instruction to industrial computer, wherein, test instruction includes operational factor;Industrial computer 30, for receiving test instruction and controlling target industrial control software according to operational factor operation, wherein, test equipment is additionally operable to obtain the test result that target industrial control software runs according to operational factor, wherein, test result includes the data that target industrial control software produces in running and/or when end of run.
It should be noted that, above-mentioned test equipment (i.e. host computer) can be notebook, desktop computer, touch-control flat board etc., above-mentioned server can be include tag control data base and possess notebook or the desktop computer of OPC communication function, test equipment and server can also be same computers, industrial computer (i.e. slave computer) can be the industrial control equipments such as PLC, AB robot, test script can be the one or more of test script programs in test script set, and target industrial control software can be operate in the program on PLC.
Specifically, test script program is write according to testing requirement, then on host computer, perform this test script program, the input label of program of lower computer is carried out assignment by test script program in the process performed, and then drive the PLC program of slave computer to run by input label, and the value of the output label produced in being run by PLC program gets back in test script program and checks, whether checking PLC program correctly runs, after all test script program finishes execution, operation result (i.e. test result) is collected, generates report and be supplied to user.
It should be noted that, above-mentioned PLC can be the PLC adopting label programming, when programming, can be that the variable (such as input or output) in program determines a title (i.e. label), operationally, compiler distributes memory element or input/output port automatically at PLC end for this label, thus realizing the combination of software and hardware.
In the above-described embodiments, it is possible to realized the communication of host computer and slave computer by the OPC module of server apparatus.
Pass through above-described embodiment, the test script that target industrial control software is corresponding is obtained from test script set, industrial computer operational objective industrial control software is driven by test script, target industrial control software is made to run according to the operational factor of test script, then the test result that target industrial control software runs is obtained according to operational factor, above-mentioned test function can be passed through shell script and automatically perform, thus solving the technical problem that in prior art, the testing efficiency of industrial control software is low, improve the testing efficiency of industrial control software.
According to embodiments of the present invention, additionally provide the embodiment of the method for the method of testing of a kind of industrial control software, it should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although illustrate logical order in flow charts, but in some cases, it is possible to perform shown or described step with the order being different from herein.
Fig. 2 is the flow chart of the method for testing of industrial control software according to embodiments of the present invention, as in figure 2 it is shown, this method of testing comprises the steps:
Step S202, obtains the test script that target industrial control software is corresponding from test script set.
Wherein, test script includes operational factor.
Step S204, drives industrial computer operational objective industrial control software by test script.
Wherein, target industrial control software runs according to operational factor.
Step S206, obtains the test result that target industrial control software runs according to operational factor.
Wherein, test result includes the data that target industrial control software produces in running and/or when end of run.
Pass through above-described embodiment, the test script that target industrial control software is corresponding is obtained from test script set, industrial computer operational objective industrial control software is driven by test script, target industrial control software is made to run according to the operational factor of test script, then the test result that target industrial control software runs is obtained according to operational factor, above-mentioned test function can be passed through shell script and automatically perform, thus solving the technical problem that in prior art, the testing efficiency of industrial control software is low, improve the testing efficiency of industrial control software.
Alternatively, before obtaining the test script that target industrial control software is corresponding from test script set, this method of testing also includes: determine the target industrial control software being currently needed for test according to the testing sequence of target industrial control softwares multiple in software assembly.
Specifically, user is likely to need multiple PLC program (i.e. target industrial control software) to be tested simultaneously, and it would furthermore be possible to need multiple functions of each PLC program are tested one by one, in order to meet the demand, it is accomplished by writing multistage test script program for different PLC program, then according to the testing sequence that user needs performs above-mentioned test script program one by one so that multiple PLC program to be tested one by one.
It should be noted that, can also only utilize a test script program multiple PLC program to be tested simultaneously, but the operation of these multiple PLC program can not have dependency, namely other PLC program operationally will not be produced impact by each PLC program, does not also carry out data sharing.Specifically, if its dependency is measurable and controlled when multiple PLC program runs, then relevant portion can be carried out pretreatment (as used different depositor to store data produced by each PLC program relevant portion);And for the unpredictable uncontrollable multiple PLC program of dependency, then can be isolated to perform test respectively.
Above-mentioned test that multiple PLC program are carried out can be concurrent testing, namely starts the test to multiple PLC program simultaneously, it is also possible to is serial test, namely in a certain order multiple PLC program is tested.
Pass through above-described embodiment, utilize the present processes, multiple industrial control softwares can be tested automatically, can continue to test in effective time complicatedly, can each functional module to industry control program as much as possible test, and there is testing efficiency height, advantage that test result accuracy is high.
Alternatively, industrial computer has input label and output label, input label is for driving target industrial control software to run according to the value of input label, output label is used for storing test result, wherein, driving industrial computer operational objective industrial control software to include by test script: to send the test instruction including operational factor to industrial computer, wherein, test instruction is for being assigned to input label by the value of operational factor;The test result that acquisition target industrial control software runs according to operational factor includes: after target industrial control software end of run, read test result from output label.
Test script in above-described embodiment also includes the tag identifier of input label, sends the test instruction including operational factor and includes to industrial computer: test instruction is converted to the data communication form that industrial computer is supported;The tag addresses corresponding with tag identifier is read from presetting database;According to tag addresses, the test instruction after conversion is sent to input label.
It should be noted that, above-mentioned method of testing can utilize the test system of aforesaid industrial control software to realize, test equipment (i.e. host computer) in test system can be notebook, desktop computer, touch-control flat board etc., server can be include tag control data base (i.e. presetting database) and possess notebook or the desktop computer of OPC communication function, test equipment and server can also be same computers, industrial computer (i.e. slave computer) can be PLC, the industrial control equipments such as AB robot, test script can be the one or more of test script programs in test script set, target industrial control software can be operate in the program on PLC.
Specifically, after write test script program according to testing requirement, performing this test script program on host computer, test script program is resolved by compiler, therefrom parse the tag identifier of input label, from tag control data base, then read the tag addresses of input label;Simultaneously, the numerical value being assigned to input label that needs parsed from test script program is packaged, namely according to OPC communication format, this numerical value is encapsulated as test instruction, then input label is carried out assignment by the tag addresses of above-mentioned test instruction transmission to slave computer, PLC running software is driven thereby through input label, the second label specified can be carried out assignment in running or during end of run by PLC software, therefore, the value of the second label can be read after PLC running software terminates, it is sent back host computer as test result by server together with other operation information of target industrial control software, and by the test script Program Generating test report of host computer, with for reference.
By above-described embodiment, utilize the computing capability of computer so that test process is greatly shortened, improve execution efficiency, simultaneously as be machine test, it is possible to overcome the defects such as manually-operated efficiency low, fatiguability, subjective errors.
In one alternatively embodiment, after obtaining the test result that target industrial control software runs according to operational factor, method of testing also includes: obtain multiple report template, and wherein, in multiple report templates, each report template corresponds to a target industrial control software;The test result of each target industrial control software in multiple target industrial control softwares is packed into the report template of correspondence;Each report template after data splitting filling, obtains test report.
Specifically, obtaining the report template that in multiple target industrial control software, each target industrial control software is corresponding respectively, wherein, the data typesetting format of report template is for presetting typesetting format;One by one the test result of each target industrial control software in multiple target industrial control softwares is packed into the report template of correspondence;Each report template after data splitting filling, obtains test report.
Below in conjunction with Fig. 3 in detail embodiments of the invention are described in detail, as shown in Figure 3:
After utilizing multiple test script program (i.e. script 1, script 2 to script N) to complete the test operation to multiple target industrial control softwares (i.e. PLC program), the test result of each target industrial control software is packed in the report template of correspondence by the test script program run in system (i.e. the test system of industrial control software), then multiple test report are exported for each target industrial control software, the above-mentioned report template being filled with test result can also be combined, obtain a complete report.
It should be noted that the report by multiple target industrial control softwares is combined, it is possible to intuitively similar multiple softwares are analyzed contrast, and pointedly each PLC software are improved.
By above-described embodiment, utilize shell script that software carries out the test of automatization, perform operation result is collected by scenario process, generate report and feed back to user in time, be conducive to software is improved.
It should be noted that, for aforesaid each embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to involved action and the module not necessarily present invention.
The embodiment of the present invention additionally provides the test device of a kind of industrial control software.It should be noted that, the test device of the industrial control software of the embodiment of the present invention may be used for performing the method for testing of the industrial control software that the embodiment of the present invention provides, and the method for testing of the industrial control software of the embodiment of the present invention can also be performed by the test device of the industrial control software that the embodiment of the present invention provides.
Fig. 4 is the schematic diagram of the test device of industrial control software according to embodiments of the present invention.As shown in Figure 4, this test device may include that script acquiring unit 40, and for obtaining the test script that target industrial control software is corresponding from test script set, wherein, test script includes operational factor;Test cell 50, for driving industrial computer operational objective industrial control software by test script, wherein, target industrial control software runs according to operational factor;Data capture unit 60, for obtaining the test result that target industrial control software runs according to operational factor, wherein, test result includes the data that target industrial control software produces in running and/or when end of run.
Pass through above-described embodiment, the test script that target industrial control software is corresponding is obtained from test script set, industrial computer operational objective industrial control software is driven by test script, target industrial control software is made to run according to the operational factor of test script, then the test result that target industrial control software runs is obtained according to operational factor, above-mentioned test function can be passed through shell script and automatically perform, thus solving the technical problem that in prior art, the testing efficiency of industrial control software is low, improve the testing efficiency of industrial control software.
In the above-described embodiments, industrial computer has input label and output label, input label is for driving target industrial control software to run according to the value of input label, output label is used for storing test result, wherein, test cell includes: sending module, for sending the test instruction that includes operational factor to industrial computer, wherein, test instruction is for being assigned to input label by the value of operational factor;Data capture unit includes: read module, is used for after target industrial control software end of run, read test result from output label.
Alternatively, test script also includes the tag identifier of input label, and sending module includes: transform subblock, for test instruction is converted to the data communication form that industrial computer is supported;Reading submodule, for reading the tag addresses corresponding with tag identifier from presetting database;Instruction sends submodule, for sending the test instruction after conversion to input label according to tag addresses.
By above-described embodiment, utilize the computing capability of computer so that test process is greatly shortened, improve execution efficiency, simultaneously as be machine test, it is possible to overcome the defects such as manually-operated efficiency low, fatiguability, subjective errors.
Alternatively, test device also comprises determining that unit, for, before obtaining the test script that target industrial control software is corresponding from test script set, determining the target industrial control software being currently needed for test according to the testing sequence of target industrial control softwares multiple in software assembly.
Pass through above-described embodiment, utilize the present processes, multiple industrial control softwares can be tested automatically, can continue to test in effective time complicatedly, can each functional module to industry control program as much as possible test, and there is testing efficiency height, advantage that test result accuracy is high.
The using method that the modules provided in the present embodiment provides with the corresponding step of embodiment of the method is identical, application scenarios can also be identical.It is noted, of course, that the scheme that above-mentioned module relates to can be not limited to the content in above-described embodiment and scene, and above-mentioned module may operate in terminal or mobile terminal, it is possible to is realized by software or hardware.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can realize by another way.Wherein, device embodiment described above is merely schematic, the such as division of described unit, can be that a kind of logic function divides, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, unit or module, it is possible to be electrical or other form.
Each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit is using the form realization of SFU software functional unit and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium.Based on such understanding, part or all or part of of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can for personal computer, server or the network equipment etc.) performs all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium includes: the various media that can store program code such as USB flash disk, read only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), portable hard drive, magnetic disc or CDs.
The above is only the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the method for testing of an industrial control software, it is characterised in that including:
Obtaining the test script that target industrial control software is corresponding from test script set, wherein, described test script includes operational factor;
Driving industrial computer to run described target industrial control software by described test script, wherein, described target industrial control software runs according to described operational factor;And
Obtaining the test result that described target industrial control software runs according to described operational factor, wherein, described test result includes the data that described target industrial control software produces in running and/or when end of run.
2. method of testing according to claim 1, it is characterised in that described industrial computer has input label and output label, described input label is for driving described target industrial control software to run according to the value of described input label, described output label is used for storing described test result, wherein
Driving industrial computer to run described target industrial control software by described test script to include: send the test instruction including described operational factor to described industrial computer, wherein, described test instruction is for being assigned to described input label by the value of described operational factor;
Obtain the test result that described target industrial control software runs according to described operational factor to include: after described target industrial control software end of run, from described output label, read described test result.
3. method of testing according to claim 2, it is characterised in that described test script also includes the tag identifier of described input label, sends test instruction to the described industrial computer including described operational factor and includes:
Described test instruction is converted to the data communication form that described industrial computer is supported;
The tag addresses corresponding with described tag identifier is read from presetting database;And
According to described tag addresses, the described test instruction after conversion is sent to described input label.
4. method of testing as claimed in any of claims 1 to 3, it is characterised in that before obtaining the test script that target industrial control software is corresponding from test script set, described method of testing also includes:
The described target industrial control software being currently needed for test is determined according to the testing sequence of target industrial control softwares multiple in software assembly.
5. method of testing according to claim 4, it is characterised in that after obtaining the test result that described target industrial control software runs according to described operational factor, described method of testing also includes:
Obtaining multiple report template, wherein, in the plurality of report template, each described report template corresponds to a described target industrial control software;
The described test result of each described target industrial control software in the plurality of target industrial control software is packed into the described report template of correspondence;And
Each described report template after data splitting filling, obtains test report.
6. the test device of an industrial control software, it is characterised in that including:
Script acquiring unit, for obtaining the test script that target industrial control software is corresponding from test script set, wherein, described test script includes operational factor;
Test cell, for driving industrial computer to run described target industrial control software by described test script, wherein, described target industrial control software runs according to described operational factor;And
Data capture unit, for obtaining the test result that described target industrial control software runs according to described operational factor, wherein, described test result includes the data that described target industrial control software produces in running and/or when end of run.
7. test device according to claim 6, it is characterised in that described industrial computer has input label and output label, described input label is for driving described target industrial control software to run according to the value of described input label, described output label is used for storing described test result, wherein
Described test cell includes: sending module, and for sending the test instruction including described operational factor to described industrial computer, wherein, described test instruction is for being assigned to described input label by the value of described operational factor;
Described data capture unit includes: read module, for, after described target industrial control software end of run, reading described test result from described output label.
8. test device according to claim 7, it is characterised in that described test script also includes the tag identifier of described input label, and described sending module includes:
Transform subblock, for being converted to, by described test instruction, the data communication form that described industrial computer is supported;
Reading submodule, for reading the tag addresses corresponding with described tag identifier from presetting database;And
Instruction sends submodule, for sending the described test instruction after conversion to described input label according to described tag addresses.
9. the test device according to any one in claim 6 to 8, it is characterised in that described test device also includes:
Determine unit, for, before obtaining the test script that target industrial control software is corresponding from test script set, determining the described target industrial control software being currently needed for test according to the testing sequence of target industrial control softwares multiple in software assembly.
10. the test system of an industrial control software, it is characterised in that including:
Test equipment, is connected with server, and for obtaining test script corresponding to target industrial control software from test script set and sending described test script to described server, wherein, described test script includes operational factor;
Described server, is connected with industrial computer, and for parsing test instruction from the described test script received and sending described test instruction to described industrial computer, wherein, described test instruction includes described operational factor;And
Described industrial computer, is used for receiving described test instruction and controlling described target industrial control software running according to described operational factor,
Wherein, described test equipment is additionally operable to obtain the test result that described target industrial control software runs according to described operational factor, and wherein, described test result includes the data that described target industrial control software produces in running and/or when end of run.
CN201610063453.8A 2016-01-29 2016-01-29 The test method of industrial control software, apparatus and system Active CN105739481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610063453.8A CN105739481B (en) 2016-01-29 2016-01-29 The test method of industrial control software, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610063453.8A CN105739481B (en) 2016-01-29 2016-01-29 The test method of industrial control software, apparatus and system

Publications (2)

Publication Number Publication Date
CN105739481A true CN105739481A (en) 2016-07-06
CN105739481B CN105739481B (en) 2019-03-19

Family

ID=56248003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610063453.8A Active CN105739481B (en) 2016-01-29 2016-01-29 The test method of industrial control software, apparatus and system

Country Status (1)

Country Link
CN (1) CN105739481B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107942723A (en) * 2017-11-07 2018-04-20 芜湖赛宝信息产业技术研究院有限公司 A kind of emulation test method based on industrial robot
CN110389901A (en) * 2019-07-17 2019-10-29 陕西瑞迅电子信息技术有限公司 Test method, device, computer equipment and the storage medium of ARM industrial personal computer
CN110914768A (en) * 2017-06-07 2020-03-24 布鲁克斯自动化(德国)有限公司 Method for controlling PLC using PC program
CN111002347A (en) * 2019-12-20 2020-04-14 上海有个机器人有限公司 Robot scene testing method, medium, terminal and device
CN114679402A (en) * 2022-03-25 2022-06-28 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073662A1 (en) * 2001-01-26 2004-04-15 Falkenthros Henrik Bo System for providing services and virtual programming interface
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
CN102070054A (en) * 2009-11-19 2011-05-25 上海三菱电梯有限公司 Automatic testing system of elevator running control software
CN102135938A (en) * 2011-03-21 2011-07-27 中国工商银行股份有限公司 Software product testing method and system
CN102591780A (en) * 2012-01-13 2012-07-18 广州广电运通金融电子股份有限公司 Device driver software test method and test system
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN103246604A (en) * 2013-03-29 2013-08-14 北京京东尚科信息技术有限公司 Soft testing system, soft testing method, controlling device and executing devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073662A1 (en) * 2001-01-26 2004-04-15 Falkenthros Henrik Bo System for providing services and virtual programming interface
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
CN102070054A (en) * 2009-11-19 2011-05-25 上海三菱电梯有限公司 Automatic testing system of elevator running control software
CN102135938A (en) * 2011-03-21 2011-07-27 中国工商银行股份有限公司 Software product testing method and system
CN102591780A (en) * 2012-01-13 2012-07-18 广州广电运通金融电子股份有限公司 Device driver software test method and test system
CN102693183A (en) * 2012-05-30 2012-09-26 瑞斯康达科技发展股份有限公司 Method and system for realizing automatic software testing
CN103246604A (en) * 2013-03-29 2013-08-14 北京京东尚科信息技术有限公司 Soft testing system, soft testing method, controlling device and executing devices

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110914768A (en) * 2017-06-07 2020-03-24 布鲁克斯自动化(德国)有限公司 Method for controlling PLC using PC program
CN110914768B (en) * 2017-06-07 2023-06-30 布鲁克斯自动化(德国)有限公司 Method for controlling PLC using PC program
CN107942723A (en) * 2017-11-07 2018-04-20 芜湖赛宝信息产业技术研究院有限公司 A kind of emulation test method based on industrial robot
CN110389901A (en) * 2019-07-17 2019-10-29 陕西瑞迅电子信息技术有限公司 Test method, device, computer equipment and the storage medium of ARM industrial personal computer
CN110389901B (en) * 2019-07-17 2023-08-25 陕西瑞迅电子信息技术有限公司 ARM industrial personal computer testing method and device, computer equipment and storage medium
CN111002347A (en) * 2019-12-20 2020-04-14 上海有个机器人有限公司 Robot scene testing method, medium, terminal and device
CN114679402A (en) * 2022-03-25 2022-06-28 武汉联影智融医疗科技有限公司 Method and device for testing communication protocol between upper computer and lower computer of medical robot

Also Published As

Publication number Publication date
CN105739481B (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN110309071B (en) Test code generation method and module, and test method and system
CN109086199B (en) Method, terminal and storage medium for automatically generating test script
CN105739481A (en) Industrial control software testing method, industrial control software testing device, and industrial control software testing system
CN108446190B (en) Interface test method and device
CN100583920C (en) Method and apparatus for generating testing script, testing method, apparatus and system
CN106777101B (en) Data processing engine
CN101339532B (en) Web application system automatized test method and apparatus
CN106095673A (en) Automated testing method based on WEB interface and system
US20040073890A1 (en) Method and system for test management
CN105830417A (en) A method and a system for replacing and commissioning of a field device
CN104268073A (en) Method for generating test cases in batch mode
US8381164B2 (en) Method and system of intelligent interactive graphics electrical plug map to analyze text and distances between electrical contacts and physical layout file builder
CN110221975B (en) Method and device for creating interface case automation test script
CN105302115B (en) Train network application layer control software automated testing method
CN110928783A (en) RobotFramework-based automatic test datamation reconstruction platform
CN104657274B (en) software interface test method and device
CN112306861A (en) Unittest and Jenkins tool-based interface automatic testing system and method
CN105786695A (en) Data test method and system
CN111241073A (en) Data quality inspection method and device
CN106646315A (en) Automatic testing system and automatic testing method for digital measuring instruments
CN110769002A (en) LabVIEW-based message analysis method, system, electronic device and medium
CN104461651A (en) Framework process control method, device and system
CN106293687A (en) The control method of a kind of flow process of packing, and device
KR20220041600A (en) Method of evaluating quality of smart factory data
US20190138921A1 (en) Interactive guidance system for selecting thermodynamics methods in process simulations

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