CN105739481B - The test method of industrial control software, apparatus and system - Google Patents

The test method of industrial control software, apparatus and system Download PDF

Info

Publication number
CN105739481B
CN105739481B CN201610063453.8A CN201610063453A CN105739481B CN 105739481 B CN105739481 B CN 105739481B CN 201610063453 A CN201610063453 A CN 201610063453A CN 105739481 B CN105739481 B CN 105739481B
Authority
CN
China
Prior art keywords
test
industrial control
control software
target
operating parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610063453.8A
Other languages
Chinese (zh)
Other versions
CN105739481A (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 a kind of test methods of industrial control software, apparatus and system.Wherein, which includes: that the corresponding test script of target industrial control software is obtained from test script set, wherein test script includes operating parameter;Industrial personal computer operational objective industrial control software is driven by test script, wherein target industrial control software is run according to operating parameter;Obtain the test result that target industrial control software is run according to operating parameter, wherein test result includes the data that target industrial control software generates in the process of running and/or in end of run.The present invention solves the low technical problem of testing efficiency of industrial control software.

Description

The test method of industrial control software, apparatus and system
Technical field
The present invention relates to software test fields, in particular to a kind of test method of industrial control software, device and are System.
Background technique
In industrial control field, after slave computer software writes completion, generally require to test slave computer software, it is existing To the testing scheme of slave computer software be staff debug manually or enter factory carry out field adjustable, to adjust It finds the problem in examination and corresponding modification is carried out to slave computer.Existing test method, manpower and duration consume too big, Wu Fa Continue in effective time repeatedly test, and there are the scene that some manpowers are unable to test, there are at high cost, efficiency bottom, More problem is omitted in test.
For the low technical problem of the testing efficiency of industrial control software in the prior art, effective solution side is not yet proposed at present Case.
Summary of the invention
The embodiment of the invention provides a kind of test methods of industrial control software, apparatus and system, soft at least to solve industry control The low technical problem of the testing efficiency of part.
According to an aspect of an embodiment of the present invention, a kind of test method of industrial control software is provided, the test method packet It includes: obtaining the corresponding test script of target industrial control software from test script set, wherein test script includes operating parameter; Industrial personal computer operational objective industrial control software is driven by test script, wherein target industrial control software is run according to operating parameter;It obtains The test result that target industrial control software is run according to operating parameter, wherein test result includes that target industrial control software was being run The data generated in journey and/or in end of run.
Further, industrial personal computer has input label and output label, and input label is for driving target industrial control software to press According to the value operation of input label, output label is for storing test result, wherein drives industrial personal computer to run mesh by test script Mark industrial control software includes: that send include that the test of operating parameter is instructed to industrial personal computer, wherein test instruction is for by operating parameter Value be assigned to input label;It includes: in target industry control that target industrial control software, which is obtained, according to the test result that operating parameter is run After software end of run, the read test result from output label.
Further, test script further includes the tag identifier of input label, sends the test including operating parameter and instructs It include: that test instruction is converted into the data communication format that industrial personal computer is supported to industrial personal computer;From presetting database read with The corresponding tag addresses of tag identifier;The test instruction after conversion is sent to input label according to tag addresses.
Further, before obtaining the corresponding test script of target industrial control software in test script set, industry control is soft The test method of part further include: currently needed according to the testing sequence determination of target industrial control softwares multiple in software assembly to be tested Target industrial control software.
Further, after obtaining the test result that target industrial control software is run according to operating parameter, industrial control software Test method further include: obtain multiple report templates, wherein in multiple report templates, each report template corresponds to one Target industrial control software;The test result of target industrial control software each in multiple target industrial control softwares is packed into corresponding report mould Plate;The filled each report template of data splitting, obtains test report.
According to another aspect of an embodiment of the present invention, a kind of test device of industrial control software is additionally provided, the test device It include: script acquiring unit, for obtaining the corresponding test script of target industrial control software from test script set, wherein survey Training originally includes operating parameter;Test cell, for driving industrial personal computer operational objective industrial control software by test script, wherein Target industrial control software is run according to operating parameter;Data capture unit is transported for obtaining target industrial control software according to operating parameter Capable test result, wherein test result includes that target industrial control software generates in the process of running and/or in end of run Data.
Further, industrial personal computer has input label and output label, and input label is for driving target industrial control software to press According to the value operation of input label, output label is for storing test result, wherein test cell includes: sending module, for sending out The test including operating parameter is sent to instruct to industrial personal computer, wherein test instruction is for being assigned to input mark for the value of operating parameter Label;Data capture unit includes: read module, for being read after target industrial control software end of run from output label Test result.
Further, test script further includes the tag identifier of input label, and sending module includes: transform subblock, is used The data communication format that industrial personal computer is supported is converted in instruction will be tested;Reading submodule, for being read from presetting database Take tag addresses corresponding with tag identifier;Sending submodule is instructed, for instructing the test after conversion according to tag addresses It is sent to input label.
Further, the test device of industrial control software further include: determination unit, for being obtained from test script set Before the corresponding test script of target industrial control software, work as according to the testing sequence determination of target industrial control softwares multiple in software assembly Preceding need target industrial control software to be tested.
In terms of third according to an embodiment of the present invention, a kind of test macro of industrial control software is additionally provided, the test system System includes: test equipment, is connect with server, for obtaining the corresponding test foot of target industrial control software from test script set Test script is simultaneously sent to server by this, wherein test script includes operating parameter;Server is connect with industrial personal computer, is used for Test instruction is parsed from the test script received and test instruction is sent to industrial personal computer, wherein testing instruction includes Operating parameter;Industrial personal computer is run for receiving test instruction and controlling target industrial control software according to operating parameter, wherein test Equipment is also used to obtain the test result that target industrial control software is run according to operating parameter, wherein test result includes target work The data that control software generates in the process of running and/or in end of run.
In embodiments of the present invention, the corresponding test script of target industrial control software is obtained from test script set, is passed through Test script drives industrial personal computer operational objective industrial control software, runs target industrial control software according to the operating parameter of test script, Then the test result that target industrial control software is run according to operating parameter is obtained, above-mentioned test function can be by shell script certainly It is dynamic to execute, so that the technical problem that the testing efficiency for solving industrial control software in the prior art is low, improves the survey of industrial control software Try efficiency.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the schematic diagram of the test macro of industrial control software according to an embodiment of the present invention;
Fig. 2 is the flow chart of the test method of industrial control software according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of test industrial control software according to an embodiment of the present invention;And
Fig. 4 is the schematic diagram of the test device of industrial control software according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Firstly, the part noun or term that occur during the embodiment of the present invention is described are suitable for following solution It releases:
Script: being a kind of specific descriptive language, according to the executable file that certain format is write, it is also referred to as macro or Person's autoexec.
PLC: full name in English is Programmable Logic Controller, and Chinese is Programmable logical controller Device is a kind of computer for being exclusively used in Industry Control, and such as the PLC of Rockwell (i.e. AB), the PLC is by the way of label programming It is programmed.
Label: the PLC symbolization of Allen-Bradley company programs, and each variable in program can have correspondence Label, the value of the variable can be obtained to the variable assignments or according to label by label.
OPC: full name in English is Object Linking and Embedding for Process Control, is a kind of Industrial standard mainly includes the standard set of a whole set of interface, attribute and method, is used for process control and automated manufacturing system System.
According to embodiments of the present invention, a kind of embodiment of the test macro of industrial control software is provided, Fig. 1 is according to the present invention The schematic diagram of the test macro of the industrial control software of embodiment, as shown in Figure 1, the test macro includes: test equipment 10, with service Device 20 connects, for obtaining the corresponding test script of target industrial control software from test script set and being sent to test script Server, wherein test script includes operating parameter;Server 20 is connect with industrial personal computer 30, for from the test foot received Test instruction is parsed in this and test instruction is sent to industrial personal computer, wherein test instruction includes operating parameter;Industrial personal computer 30, it is run for receiving test instruction and controlling target industrial control software according to operating parameter, wherein test equipment is also used to obtain The test result that target industrial control software is run according to operating parameter, wherein test result includes that target industrial control software was being run The data generated in journey and/or in end of run.
It should be noted that above-mentioned test equipment (i.e. host computer) can be notebook, desktop computer, touch-control plate etc., Above-mentioned server can be including tag control database and have the notebook or desktop computer of OPC communication function, test Equipment and server are also possible to same computer, and industrial personal 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 operation Program on PLC.
Specifically, test script program is write according to testing requirement, the test script program is then executed on host computer, Test script program carries out assignment to the input label of program of lower computer during execution, and then is driven by input label The PLC program of slave computer is run, and by PLC program run in the value of output label that generates get back in test script program and do It checks, whether verifying PLC program correctly runs, and after all test script program finishes executions, operation result (is tested As a result it) collects, generates report and be supplied to user.
It should be noted that above-mentioned PLC can be the PLC programmed using label, it can be the change in program in programming Amount (as inputted or exporting) determines a title (i.e. label), and at runtime, compiler is label distribution at the end PLC automatically Storage unit or input/output port, to realize the combination of software and hardware.
In the above-described embodiments, the communication of upper computer and lower computer can be realized by the OPC module of server apparatus.
Through the foregoing embodiment, the corresponding test script of target industrial control software is obtained from test script set, passes through survey Training this driving industrial personal computer operational objective industrial control software runs target industrial control software according to the operating parameter of test script, so The test result that target industrial control software is run according to operating parameter is obtained afterwards, and above-mentioned test function can be automatic by shell script It executes, so that the technical problem that the testing efficiency for solving industrial control software in the prior art is low, improves the test of industrial control software Efficiency.
According to embodiments of the present invention, a kind of embodiment of the method for the test method of industrial control software is additionally provided, needs to illustrate , step shown in the flowchart of the accompanying drawings can hold in a computer system such as a set of computer executable instructions Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein Execute shown or described step.
Fig. 2 is the flow chart of the test method of industrial control software according to an embodiment of the present invention, as shown in Fig. 2, the test side Method includes the following steps:
Step S202 obtains the corresponding test script of target industrial control software from test script set.
Wherein, test script includes operating parameter.
Step S204 drives industrial personal computer operational objective industrial control software by test script.
Wherein, target industrial control software is run according to operating parameter.
Step S206 obtains the test result that target industrial control software is run according to operating parameter.
Wherein, test result includes the data that target industrial control software generates in the process of running and/or in end of run.
Through the foregoing embodiment, the corresponding test script of target industrial control software is obtained from test script set, passes through survey Training this driving industrial personal computer operational objective industrial control software runs target industrial control software according to the operating parameter of test script, so The test result that target industrial control software is run according to operating parameter is obtained afterwards, and above-mentioned test function can be automatic by shell script It executes, so that the technical problem that the testing efficiency for solving industrial control software in the prior art is low, improves the test of industrial control software Efficiency.
Optionally, before obtaining the corresponding test script of target industrial control software in test script set, the test side Method further include: currently need target industry control to be tested soft according to the testing sequence determination of target industrial control softwares multiple in software assembly Part.
Specifically, user may need simultaneously to test multiple PLC programs (i.e. target industrial control software), and may need Multiple functions of each PLC program are tested one by one, in order to meet the demand, it is necessary to be write for different PLC programs Then multistage test script program executes above-mentioned test script program to multiple according to the testing sequence that user needs one by one PLC program is tested one by one.
It should be noted that only multiple PLC programs can also be tested simultaneously using a test script program, but It is that the operation of this multiple PLC program cannot have correlation, i.e., each PLC program at runtime will not produce other PLC programs It is raw to influence, also without data sharing.Specifically, if when multiple PLC programs are run its correlation be it is predictable and controllable, Relevant portion can be pre-processed (as stored number caused by each PLC program relevant portion using different registers According to);And uncontrollable multiple PLC programs unpredictable for correlation, then it can be isolated to execute test respectively.
It is above-mentioned test is carried out to multiple PLC programs to can be concurrent testing, i.e. survey of the starting to multiple PLC programs simultaneously Examination, is also possible to serially test, i.e., tests in a certain order multiple PLC programs.
Through the foregoing embodiment, using the present processes, multiple industrial control softwares can be tested automatically, Ke Yi In effective time continue tested complicatedly, can each functional module as much as possible to industry control program test, And have the advantages that testing efficiency is high, test result accuracy is high.
Optionally, industrial personal computer have input label and output label, input label for drive target industrial control software according to The value of input label is run, and output label is for storing test result, wherein drives industrial personal computer operational objective by test script Industrial control software includes: that send include that the test of operating parameter is instructed to industrial personal computer, wherein test instruction is for by operating parameter Value is assigned to input label;It includes: soft in target industry control that target industrial control software, which is obtained, according to the test result that operating parameter is run After part end of run, the read test result from output label.
Test script in above-described embodiment further includes the tag identifier of input label, sends the test including operating parameter Instructing to industrial personal computer includes: that test instruction is converted to the data communication format that industrial personal computer is supported;It is read from presetting database Take tag addresses corresponding with tag identifier;The test instruction after conversion is sent to input label according to tag addresses.
It should be noted that the test macro that above-mentioned test method can use industrial control software above-mentioned is realized, test system Test equipment (i.e. host computer) in system can be notebook, desktop computer, touch-control plate etc., and server can be including label Management database (i.e. presetting database) and the notebook or desktop computer for having OPC communication function, test equipment and server It is also possible to same computer, industrial personal computer (i.e. slave computer) can be the industrial control equipments such as PLC, AB robot, and test script can be with It is the one or more of test script programs in test script set, target industrial control software can be the journey operated on PLC Sequence.
Specifically, after having write test script program according to testing requirement, the test script is executed on host computer Program, compiler parse test script program, therefrom parse the tag identifier of input label, then from tag control The tag addresses of input label are read in database;Meanwhile by parsed from test script program need to be assigned to it is defeated The numerical value for entering label is packaged, i.e., the numerical value is encapsulated as test instruction according to OPC communication format, then refers to above-mentioned test The tag addresses for being sent to slave computer are enabled to carry out assignment to input label, so that the operation of PLC software is driven by input label, PLC software in the process of running or assignment can be carried out to the second specified label when end of run therefore can be soft in PLC The value that the second label is read after part end of run leads to its other operation information together with target industrial control software as test result It crosses server and sends back host computer, and pass through the test script Program Generating test report of host computer, with for reference.
Through the foregoing embodiment, it using the computing capability of computer, so that test process greatly shortens, improves and executes effect Rate, simultaneously as being machine test, it is possible to the defects of overcoming manually-operated low efficiency, fatiguability, subjective errors.
In one optionally embodiment, obtain test result that target industrial control software is run according to operating parameter it Afterwards, test method further include: obtain multiple report templates, wherein in multiple report templates, each report template corresponds to one A target industrial control software;The test result of target industrial control software each in multiple target industrial control softwares is packed into corresponding report Template;The filled each report template of data splitting, obtains test report.
Specifically, the corresponding report template of each target industrial control software in multiple target industrial control softwares is obtained respectively, wherein The data typesetting format of report template is default typesetting format;One by one by target industrial control software each in multiple target industrial control softwares Test result be packed into corresponding report template;The filled each report template of data splitting, obtains test report.
The embodiment of the present invention is described in detail below with reference to Fig. 3, as shown in Figure 3:
Utilizing multiple test script programs, (i.e. script 1, script 2 to script N) are completed to multiple target industrial control softwares (i.e. PLC program) test operation after, the test script program run in the system (i.e. the test macro of industrial control software) will be each The test result of target industrial control software is packed into corresponding report template, is then exported for each target industrial control software multiple The above-mentioned report template filled with test result can also be combined by test report, obtain a complete report.
It should be noted that the report of multiple target industrial control softwares is combined, it can be intuitively to similar more A software carries out analysis comparison, and pointedly improves to each PLC software.
Through the foregoing embodiment, the test automated using shell script to software, perform script in the process will fortune Row collection is got up, and is generated report and is timely feedbacked to user, is conducive to improve software.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
The embodiment of the invention also provides a kind of test devices of industrial control software.It should be noted that the embodiment of the present invention The test device of industrial control software can be used for executing the test method of industrial control software provided by the embodiment of the present invention, the present invention The test method of the industrial control software of embodiment can also through the embodiment of the present invention provided by industrial control software test device come It executes.
Fig. 4 is the schematic diagram of the test device of industrial control software according to an embodiment of the present invention.As shown in figure 4, the test fills Setting may include: script acquiring unit 40, for obtaining the corresponding test script of target industrial control software from test script set, Wherein, test script includes operating parameter;Test cell 50, for driving the industry control of industrial personal computer operational objective soft by test script Part, wherein target industrial control software is run according to operating parameter;Data capture unit 60, for obtain target industrial control software according to The test result of operating parameter operation, wherein test result includes that target industrial control software is tied in the process of running and/or in operation The data generated when beam.
Through the foregoing embodiment, the corresponding test script of target industrial control software is obtained from test script set, passes through survey Training this driving industrial personal computer operational objective industrial control software runs target industrial control software according to the operating parameter of test script, so The test result that target industrial control software is run according to operating parameter is obtained afterwards, and above-mentioned test function can be automatic by shell script It executes, so that the technical problem that the testing efficiency for solving industrial control software in the prior art is low, improves the test of industrial control software Efficiency.
In the above-described embodiments, industrial personal computer has input label and output label, and input label is for driving target industry control Software is run according to the value of input label, and output label is for storing test result, wherein and test cell includes: sending module, It instructs for sending the test including operating parameter to industrial personal computer, wherein test instruction is for the value of operating parameter to be assigned to Input label;Data capture unit includes: read module, is used for after target industrial control software end of run, from output label Middle read test result.
Optionally, test script further includes the tag identifier of input label, and sending module includes: transform subblock, is used for Test instruction is converted into the data communication format that industrial personal computer is supported;Reading submodule, for being read from presetting database Tag addresses corresponding with tag identifier;Sending submodule is instructed, for the test after conversion to be instructed hair according to tag addresses It send to input label.
Through the foregoing embodiment, it using the computing capability of computer, so that test process greatly shortens, improves and executes effect Rate, simultaneously as being machine test, it is possible to the defects of overcoming manually-operated low efficiency, fatiguability, subjective errors.
Optionally, test device further include: determination unit, for obtaining target industrial control software from test script set Before corresponding test script, currently needed according to the testing sequence determination of target industrial control softwares multiple in software assembly to be tested Target industrial control software.
Through the foregoing embodiment, using the present processes, multiple industrial control softwares can be tested automatically, Ke Yi In effective time continue tested complicatedly, can each functional module as much as possible to industry control program test, And have the advantages that testing efficiency is high, test result accuracy is high.
Application method is identical, answers with provided by the corresponding step of embodiment of the method for modules provided in the present embodiment It can also be identical with scene.It is noted, of course, that during the scheme that above-mentioned module is related to can be not limited to the above embodiments Content and scene, and above-mentioned module may operate in terminal or mobile terminal, can pass through software or hardware realization.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The functional units in various embodiments of the present invention may be integrated into one processing unit, is also possible to each Unit physically exists alone, and can also be integrated in one unit with two or more units.Above-mentioned integrated unit both may be used To use formal implementation of hardware, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (8)

1. a kind of test method of industrial control software characterized by comprising
The corresponding test script of target industrial control software is obtained from test script set, wherein the test script includes operation Parameter;
Passing through the test script drives industrial personal computer to run the target industrial control software, wherein the target industrial control software according to The operating parameter operation;And
Obtain the test result that the target industrial control software is run according to the operating parameter, wherein the test result includes The data that the target industrial control software generates in the process of running and/or in end of run;
Wherein, the industrial personal computer has input label and output label, and the input label is for driving the target industry control soft Part is run according to the value of the input label, and the output label is for storing the test result, wherein
Driving industrial personal computer to run the target industrial control software by the test script includes: to send including the operating parameter Test is instructed to the industrial personal computer, wherein the test instruction is marked for the value of the operating parameter to be assigned to the input Label;
It includes: in the target industrial control software that the target industrial control software, which is obtained, according to the test result that the operating parameter is run After end of run, the test result is read from the output label.
2. test method according to claim 1, which is characterized in that the test script further includes the input label Tag identifier, transmission, which is instructed including the test of the operating parameter to the industrial personal computer, includes:
The test instruction is converted into the data communication format that the industrial personal computer is supported;
Tag addresses corresponding with the tag identifier are read from presetting database;And
The test instruction after conversion is sent to the input label according to the tag addresses.
3. test method according to claim 1 or 2, which is characterized in that obtaining target work from test script set Before controlling the corresponding test script of software, the test method further include:
Currently need the target industry control to be tested soft according to the testing sequence determination of target industrial control softwares multiple in software assembly Part.
4. test method according to claim 3, which is characterized in that obtaining the target industrial control software according to the fortune After the test result of row parameter operation, the test method further include:
Obtain multiple report templates, wherein in the multiple report template, each report template corresponds to described in one Target industrial control software;
The test result of the target industrial control software each in the multiple target industrial control software is packed into corresponding institute State report template;And
The filled each report template of data splitting, obtains test report.
5. a kind of test device of industrial control software characterized by comprising
Script acquiring unit, for obtaining the corresponding test script of target industrial control software from test script set, wherein described Test script includes operating parameter;
Test cell, for driving industrial personal computer to run the target industrial control software by the test script, wherein the target Industrial control software is run according to the operating parameter;And
Data capture unit, the test result run for obtaining the target industrial control software according to the operating parameter, wherein The test result includes the data that the target industrial control software generates in the process of running and/or in end of run;
Wherein, the industrial personal computer has input label and output label, and the input label is for driving the target industry control soft Part is run according to the value of the input label, and the output label is for storing the test result, wherein
The test cell includes: sending module, is instructed for sending the test including the operating parameter to the industrial personal computer, Wherein, the test instruction is for being assigned to the input label for the value of the operating parameter;
The data capture unit includes: read module, for after the target industrial control software end of run, from described defeated The test result is read in outgoing label.
6. test device according to claim 5, which is characterized in that the test script further includes the input label Tag identifier, the sending module include:
Transform subblock, for the test instruction to be converted to the data communication format that the industrial personal computer is supported;
Reading submodule, for reading tag addresses corresponding with the tag identifier from presetting database;And
Sending submodule is instructed, is marked for the test instruction after conversion to be sent to the input according to the tag addresses Label.
7. test device according to claim 5 or 6, which is characterized in that the test device further include:
Determination unit, for before obtaining the corresponding test script of target industrial control software in test script set, according to soft The testing sequence determination of multiple target industrial control softwares currently needs the target industrial control software to be tested in part set.
8. a kind of test macro of industrial control software characterized by comprising
Test equipment is connect with server, for obtaining the corresponding test script of target industrial control software from test script set And the test script is sent to the server, wherein the test script includes operating parameter;
The server, connect with industrial personal computer, for parsing test instruction from the test script received and by institute It states test instruction and is sent to the industrial personal computer, wherein the test instruction includes the operating parameter;And
The industrial personal computer is transported for receiving the test instruction and controlling the target industrial control software according to the operating parameter Row,
Wherein, the test equipment is also used to obtain the test knot that the target industrial control software is run according to the operating parameter Fruit, wherein the test result includes the number that the target industrial control software generates in the process of running and/or in end of run According to;
Wherein, the industrial personal computer has input label and output label, and the input label is for driving the target industry control soft Part is run according to the value of the input label, and the output label is for storing the test result, wherein passes through the test It includes: to send the test including the operating parameter to instruct to the work that script driving industrial personal computer, which runs the target industrial control software, Control machine, wherein the test instruction is for being assigned to the input label for the value of the operating parameter;Obtain the target work It includes: after the target industrial control software end of run, from institute that software, which is controlled, according to the test result that the operating parameter is run It states and reads the test result in output label.
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 CN105739481A (en) 2016-07-06
CN105739481B true 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)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3413147B1 (en) * 2017-06-07 2022-03-23 Brooks Automation (Germany) GmbH Method for controlling a plc using a pc program
CN107942723B (en) * 2017-11-07 2021-01-15 芜湖赛宝信息产业技术研究院有限公司 Simulation test method based on industrial robot
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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7290145B2 (en) * 2001-01-26 2007-10-30 Bridicum A/S System for providing services and virtual programming interface
CN102070054B (en) * 2009-11-19 2012-11-28 上海三菱电梯有限公司 Automatic testing system of elevator running control software

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
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

Also Published As

Publication number Publication date
CN105739481A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
CN105739481B (en) The test method of industrial control software, apparatus and system
CN106095673A (en) Automated testing method based on WEB interface and system
WO2017162210A1 (en) Test configuration method and device
CN107831757A (en) Based on dSPACE motor control hardware in ring automatization test system and method
CN105068927A (en) Keyword drive-based automatic test method of urban rail drive control units
CN103235756A (en) Simulation testing method for partition application software of embedded system
US8214195B2 (en) Testing in a hardware emulation environment
CN110221975B (en) Method and device for creating interface case automation test script
US7337361B2 (en) Test harness for enterprise application integration environment
CN105528290A (en) Construction method of script-based embedded software simulation and test integrated platform
CN103209180B (en) A kind of method and system of testing protocol consistency
CN106155903B (en) Apparatus and method for system design verification
CN106775913B (en) A kind of object code controlling stream graph generation method
Tahvili et al. Functional dependency detection for integration test cases
CN104484267A (en) Testing system and method
CN101170785B (en) Device and method for TCL to test base station software
CN107122626A (en) The method and system of the bioinformatic analysis of two generations sequencing DNA mutation detection
CN104657262A (en) High-real-time automatic testing system and testing method
CN114138667A (en) Automatic test system and test method for SOC chip driving program
CN109766261A (en) Coverage test method, device, computer equipment and storage medium
CN110209565A (en) A kind of metadata schema adjustment method and its device
Kuroiwa et al. Testing environment for CPS by cooperating model checking with execution testing
CN111580409B (en) Fault simulation test method for real-time embedded system
CN110989549A (en) Software test general automation control method and device for train control system
CN106354966B (en) The method of the conversion of chip id E project file and rapid configuration artificial debugging environment

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