CN107451053A - The automated testing method and test system of container dock bridge management system - Google Patents
The automated testing method and test system of container dock bridge management system Download PDFInfo
- Publication number
- CN107451053A CN107451053A CN201710616094.9A CN201710616094A CN107451053A CN 107451053 A CN107451053 A CN 107451053A CN 201710616094 A CN201710616094 A CN 201710616094A CN 107451053 A CN107451053 A CN 107451053A
- Authority
- CN
- China
- Prior art keywords
- test
- case
- information
- task
- management system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention discloses a kind of automated testing method and test system of container dock bridge management system, this method includes:Initialization test environment;The path of test case is obtained, reads, parse and preserve test case, test case includes mission bit stream, test moment, test action, expected result;By mission bit stream write into Databasce;With the status information of task in the status information of gantry crane analog machine in certain frequency reading OPC and database, when monitoring the generation of test moment, event information is generated;Event information is read, carries out corresponding test action;The actual end-state of acquisition task and equipment;Generate test report.The system and method for the present invention can perform automatic test to test case, and can obtain the output information in measuring executing process.
Description
Technical field
The present invention relates to a kind of test system and method, more specifically to a kind of container dock bridge management system
The automated testing method and test system of system.
Background technology
Container dock bridge management system (abbreviation QCMS) as the term suggests be to the progress of the gantry crane equipment of container terminal
Control and the system of management.It is applied to automation or semi-automatic harbour, and operation principle is from database with certain frequency
Middle obtaining Terminal Operating System (abbreviation TOS) and sending for task, carries out task parsing, Command Resolution, then sends an instruction to
Gantry crane equipment simultaneously feeds back task or command status to TOS.QCMS can be carried out frequently with TOS and gantry crane equipment in the process of running
Information exchange between information exchange, wherein QCMS and TOS is generally by database;And QCMS and the communication one of gantry crane equipment
As be by OPC agreements.
Software systems important, relatively independent as one QCMS, it is necessarily required to carry out before practical application is put into
Functional test.From the point of view of test process and test environment, simulated environment test and the major class of prototype environmental testing two can be divided into, it is advanced
Row simulated environment is tested, and Basic function testing arrives scene and carries out prototype environmental testing again after.Gantry crane equipment in emulation testing
It is to be simulated with software, is not real machinery equipment, TOS is probably simulation or real;Bank in prototype test
Bridge device and TOS are real.
It is mainly at present manual testing for function test methods of the QCMS under simulated environment, i.e., according in test case
Information, send task with TOS or its emulator, equipment simulator or task carried out in test case during tasks carrying
It is required that associative operation, then observe gantry crane equipment simulator QCMS in the implementation status and database of assignment instructions is fed back
Task status information.
Because the specific operating mode species that harbour gantry crane is related to is various, the execution efficiency of manual testing is relatively low.In addition some
Test point is very high to time requirement, it is necessary to rapidly carry out input operation or export to judge, manual testing is difficult to complete.
The content of the invention
For the above-mentioned problems in the prior art, it is an object of the invention to provide a kind of container dock bridge management
The automated testing method and test system of system.
To achieve the above object, the present invention adopts the following technical scheme that:
A kind of automated testing method of container dock bridge management system, including:Initialization test environment;Obtain and survey
The path of example on probation, reads, parses and preserve test case, test case include mission bit stream, the test moment, test action,
Expected result;By mission bit stream write into Databasce;With certain frequency read in OPC the status information of gantry crane analog machine and
The status information of task in database, when monitoring the generation of test moment, generate event information;Event information is read, is carried out
Corresponding test action;The end-state of acquisition task and equipment;Generate test report.
Further, initialization test environment includes:Setting measurand, including container dock bridge management system,
OPC, database, gantry crane equipment simulator, test case;The configuration file of configuration testing platform, configuration file include test wrapper
Environment information;OPC, database information are read from configuration file, and establishes container dock bridge management system, OPC, data
Communication connection between storehouse, gantry crane equipment simulator.
To achieve the above object, the present invention also adopts the following technical scheme that:
A kind of automatization test system of container dock bridge management system, including:Automatic test platform, test are used
Example, database, OPC, gantry crane analog machine, container dock bridge management system.Automatic test platform includes use-case information
Read module, use-case message processing module, task status monitoring module, automatic test platform obtain the path of test case,
Read, parsed using use-case information reading module and preserve test case, test case includes mission bit stream, test moment, surveyed
Examination action, expected result.Use-case message processing module by mission bit stream write into Databasce, and will test time information transmit to appoint
Business monitoring module.Task status monitoring module with certain frequency read the status information of gantry crane analog machine in OPC with
And in database task status information, when monitor test the moment occur when, generation event information be transferred at use-case information
Manage module.Use-case message processing module reads event information, carries out corresponding test action, and monitoring module obtains task and equipment
End-state and transmit to use-case message processing module.
Further, automatic test platform also includes test report generation module.Use-case message processing module is by task
The expected result information transmission in virtual condition, test case to test report generation module, test report with equipment generates
Module generates test report.
Further, the test moment refers to some particular state of task or equipment;When test action refers to the generation of test moment,
The corresponding actions to be carried out.
Further, test report includes the output information of the test result and task of test case in the process of implementation.
In the above-mentioned technical solutions, the automated testing method of container dock bridge management system of the invention and test
System can perform automatic test to test case, and can obtain the output information in measuring executing process.
Brief description of the drawings
Fig. 1 is the module map of the automatization test system of container dock bridge management system of the present invention;
Fig. 2 is the flow chart of the automated testing method of container dock bridge management system of the present invention.
Embodiment
Technical scheme is further illustrated with reference to the accompanying drawings and examples.
Reference picture 1, the present invention disclose a kind of automatization test system of container dock bridge management system, its pin first
To automatic test platform of the container dock bridge management system (abbreviation QCMS) under simulated environment, write with C# language.
As shown in figure 1, the system of the present invention mainly includes:Automatic test platform 1, test case 2, database 3, QCMS 4, OPC
5th, gantry crane analog machine 6.In addition, automatic test platform 1 further includes use-case information reading module 11, at use-case information
Manage module 12, task status monitoring module 13, test report generation module 14.
OPC (OLE for Process Control, the OLE for process control) is an industrial standard, and standard is built
Be based on COM (Component Object Model) technical specification of Microsoft, and is managed by this international organization of OPC foundations
Reason., it provides a kind of mechanism of data access of standard for industry manufacture field.OPC is the hardware device, soft of different manufacturers
Part and system define a standard interface so that different hardware devices (such as PLC, plate in process control and factory automation
Card, intelligence instrument, frequency converter etc.) it can easily be connected mutually between third party software system, communicate, operate.Using OPC
Before interface, software systems need to rely on different drivers from different hardware device communications and connection is complicated.Using OPC interface
Afterwards, need to only provide standard OPC interface just can easily realize communication between distinct device.
Tester need to only survey according to functional requirement according to the form that the test system of the present invention is appointed in advance to write
Example on probation, and save as common csv file.CSV is the text with CSV, and its file is with plain text
Store list data (numeral and text), in that context it may be convenient to editor that csv file is carried out in EXCEL, generate, check.This hair
Bright test system can parse test case automatically, extract the mission bit stream in use-case, send it to database, then monitor
The correlation behavior of task in the process of implementation, and compared with the expected result of use-case, finally output test result.The present invention's
Test system simulates TOS some critical functions, and such as task is sent, platform OCR confirms so that test system of the invention
The test environment depended on does not need TOS participation, only needs database, OPC, gantry crane equipment simulator and measurand QCMS i.e.
Can.
The concrete function of above-mentioned several main modulars is described as follows:
1) use-case information reading module:It is responsible for reading the information in CSV use-cases, information is saved to be made for other modules
With.
2) use-case message processing module:The use-case information that use-case information reading module is read is obtained, according to appointing in advance
Rule parsing use-case information, generate mission bit stream, be sent in database.Calling task monitoring module carries out task
Tracking and monitoring, and report generation module generation test report is called at the end of task.
3) task status monitoring module:Start several threads, with task in certain frequency reading database and OPC and set
The relevant information of standby state.
4) test report generation module:The use-case execution information in use-case message processing module is obtained, exports and is reported for test
Accuse.
On the other hand, reference picture 2, for the test system of the present invention, invention additionally discloses a kind of container dock bridge
The automated testing method of management system, it is mainly included the following steps that:
S1:Initialization test environment.Initialization further comprises the steps:
S1.1:Set measurand, including container dock bridge management system, OPC, database, gantry crane equipment simulating
Device, test case.
S1.2:The configuration file of configuration testing platform, the configuration file include test environment information.
S1.3:From configuration file read OPC, database information, and establish container dock bridge management system, OPC,
Communication connection between database, gantry crane equipment simulator.
S2:The path of test case is obtained, reads, parse and preserve test case.Test case includes mission bit stream, surveyed
Try moment, test action, expected result.
S3:By mission bit stream write into Databasce.
S4:With the state of task in the status information of gantry crane analog machine in certain frequency reading OPC and database
Information, when monitoring the generation of test moment, generate event information.
S5:The event information is read, carries out corresponding test action.
S6:The end-state of acquisition task and equipment, compared with expected result.
S7:Generate test report.
With reference to Fig. 1, technical scheme is further elaborated with below by one embodiment.
First, before automatic test starts, the Simulation Test Environment of correlation is first got out.Test environment includes tested pair
As QCMS 4, OPC 5, database 3 and gantry crane equipment simulator 6.Also need to get out test case 2 in addition, and configure good automatic
Change the configuration file of test platform 1.The information in test environment is contained in configuration file, so as to obtain automatic test platform 1
Know how to be contacted with environment.After automatic test platform 1 starts, OPC 5, database 3 are first read from configuration file
Etc. information, then communication connection is established with it respectively.Then automatic test platform 1 can carry out initialization test environment, to connect
The use-case to get off is performed and prepared.
After initialization test environment, automatic test platform 1 obtains the path of test case 2 from configuration file,
The use-case information reading module 11 of automatic test platform 1 starts to read the information in CSV use-cases, and according to appointing in advance
Form, parse use-case information and save for the use of other modules.
As an embodiment of the present embodiment, double trolley gantry crane includes main carriage and door frame dolly both dollies,
Appoint in advance and represent main carriage with mt, pt represents door frame dolly.If certain type of test case 2, which is test, puts case target location
Renewal, wherein it is that TOS has sent out a unloading task to have a use-case, target location is AGV, and grabbing case on main carriage enters and navigated refers to
When making, TOS makes the destination locations of this task into truck.
In the test case 2 of tester's design in addition to the mission bit stream that unloads, following crucial test can be also included
Information:Renewable time, more new target location and expectation destination locations, these information correspond respectively to the test described in front
Moment, test action, expected result.According to agreement, the renewable time of this use-case can be set to mt-PickupShip, mt explanations
It is main carriage, PickupShip, which is shown to be on ship, grabs case instruction.More new target location and expectation destination locations are all set to TRUCK,
Represent truck.
After use-case information reading module 11 reads and parsed this use-case information, information is transferred into use-case message processing module
12 are handled.Unloading mission bit stream can be written to database 3 by use-case message processing module 12 first, and now QCMS 4 starts to hold
Row task, then use-case message processing module 12 task status monitoring module 13 of the renewable time information transmission to platform is appointed
Business monitoring module 13 starts thread, and the status information and database 3 of gantry crane equipment in OPC 5 are read with certain frequency
The status information of middle task, when monitoring main carriage and carrying out PickupShip instructions, just by thing in a manner of event notifies
Part information is transmitted to use-case message processing module 12.After use-case message processing module 12 receives event notice, just by database 3
Task object location updating is TRUCK.Task status monitoring module 13 works on, when this task in database 3 that monitors
State is after the completion of, the reality for obtaining this task finally puts case position and passes to use-case message processing module 12.
The actual expectation finally put in case positional information, test case 2 is put case position letter by use-case message processing module 12
Breath and tasks carrying during relevant information pass to test report generation module 14, by test report generation module 14
Generate test report.Test report generation module 14 can also incite somebody to action according to test result of these information except generating test case 2
Relevant information output during tasks carrying comes so that tester is obstructed out-of-date as reference in use-case test.
In summary, the present invention has the following advantages that:
1:Use-case automated execution, tester need not participate in the overall process, and testing efficiency is very high.
2:Test case is csv forms, and tester is very simple without programming experience, platform use.
3:It is adapted to regression test.During each version updating test, the functional requirement as use-case is related to does not change, and use-case is just
, directly can automatic operating test without changing.
4:It is avoided that because of the situation of artificial subjective judgement error.
5:The reasons such as some time requirement height, which can be tested, causes manually perform or is difficult the use-case of execution.
Those of ordinary skill in the art it should be appreciated that the embodiment of the above be intended merely to explanation the present invention,
And be not used as limitation of the invention, as long as in the spirit of the present invention, the change to embodiment described above
Change, modification will all fall in the range of claims of the present invention.
Claims (6)
- A kind of 1. automated testing method of container dock bridge management system, it is characterised in that including:Initialization test environment;The path of test case is obtained, reads, parse and preserve test case, the test case includes mission bit stream, test Moment, test action, expected result;By mission bit stream write into Databasce;The status information of task in the status information of gantry crane analog machine in OPC and database is read with certain frequency, when When monitoring the generation of test moment, event information is generated;The event information is read, carries out corresponding test action;The end-state of acquisition task and equipment;Generate test report.
- 2. the automated testing method of container dock bridge management system as claimed in claim 1, it is characterised in that described Initialization test environment includes:Set measurand, including container dock bridge management system, OPC, database, gantry crane equipment simulator, test use Example;The configuration file of configuration testing platform, the configuration file include test environment information;OPC, database information are read from configuration file, and establishes container dock bridge management system, OPC, database, bank Communication connection between bridge device simulator.
- A kind of 3. automatization test system of container dock bridge management system, it is characterised in that including:Automatic test platform, test case, database, OPC, gantry crane analog machine, container dock bridge management system;The automatic test platform includes use-case information reading module, use-case message processing module, task status monitoring module;The automatic test platform obtains the path of test case, is read, parses and is preserved using use-case information reading module The test case, the test case include mission bit stream, test moment, test action, expected result;Test time information is transmitted to task status and supervised by the use-case message processing module by mission bit stream write into Databasce Control module;The task status monitoring module reads the status information and database of gantry crane analog machine in OPC with certain frequency The status information of middle task, when monitoring the generation of test moment, generation event information is transferred to use-case message processing module;The use-case message processing module reads the event information, carries out corresponding test action;Monitoring module obtains the end-state of task and equipment and transmitted to use-case message processing module.
- 4. the automatization test system of container dock bridge management system as claimed in claim 3, it is characterised in that:Automatic test platform also includes test report generation module;Use-case message processing module extremely tests the expected result information transmission in the virtual condition of task and equipment, test case Report generation module;The test report generation module generates test report.
- 5. the automatization test system of container dock bridge management system as claimed in claim 3, it is characterised in that:The test moment refers to some particular state of task or equipment;When test action refers to the generation of test moment, what is carried out is corresponding Action.
- 6. the automatization test system of container dock bridge management system as claimed in claim 4, it is characterised in that:The test report includes the output information of the test result and task of test case in the process of implementation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710616094.9A CN107451053B (en) | 2017-07-26 | 2017-07-26 | Automatic testing method and system for container terminal shore bridge management system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710616094.9A CN107451053B (en) | 2017-07-26 | 2017-07-26 | Automatic testing method and system for container terminal shore bridge management system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107451053A true CN107451053A (en) | 2017-12-08 |
CN107451053B CN107451053B (en) | 2019-12-27 |
Family
ID=60487585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710616094.9A Active CN107451053B (en) | 2017-07-26 | 2017-07-26 | Automatic testing method and system for container terminal shore bridge management system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107451053B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070270982A1 (en) * | 2006-05-16 | 2007-11-22 | Foss Scot R | Diagnostics in process control and monitoring systems |
CN101850934A (en) * | 2010-05-31 | 2010-10-06 | 大连美恒时代科技有限公司 | Information management system of crane |
CN104932405A (en) * | 2015-05-26 | 2015-09-23 | 宝鸡石油机械有限责任公司 | Method for auxiliary test of PLC control program by employing equipment virtual prototype |
CN106940561A (en) * | 2017-02-20 | 2017-07-11 | 上海大学 | A kind of container handling Mobile Robot Control System and method |
-
2017
- 2017-07-26 CN CN201710616094.9A patent/CN107451053B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070270982A1 (en) * | 2006-05-16 | 2007-11-22 | Foss Scot R | Diagnostics in process control and monitoring systems |
CN101850934A (en) * | 2010-05-31 | 2010-10-06 | 大连美恒时代科技有限公司 | Information management system of crane |
CN104932405A (en) * | 2015-05-26 | 2015-09-23 | 宝鸡石油机械有限责任公司 | Method for auxiliary test of PLC control program by employing equipment virtual prototype |
CN106940561A (en) * | 2017-02-20 | 2017-07-11 | 上海大学 | A kind of container handling Mobile Robot Control System and method |
Also Published As
Publication number | Publication date |
---|---|
CN107451053B (en) | 2019-12-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108139745B (en) | Automatic loop testing of process control loops | |
KR101132560B1 (en) | System and method for automatic interface testing based on simulation for robot software components | |
CN103235593B (en) | A kind of blower fan master control hardware Auto-Test System and method of testing based on PLC | |
DE102018124411A1 (en) | I / O VIRTUALIZATION FOR COMMISSIONING | |
CN108322348B (en) | Transformer substation monitoring information automatic acceptance signal triggering operation subsystem and method | |
CN105528290A (en) | Construction method of script-based embedded software simulation and test integrated platform | |
Martins et al. | Shop floor virtualization and industry 4.0 | |
Hegny et al. | IEC 61499 based simulation framework for model-driven production systems development | |
CN109491910A (en) | A kind of the visual simulating adjustment method and system of relay protective scheme and control logic | |
CN110596500A (en) | Intelligent test management platform and management method for relay protection device and electronic equipment | |
CN108304283A (en) | A kind of fault filling method, system and direct fault location manage system | |
CN113495545A (en) | System and method for testing vehicle equipment controller using in-loop hardware | |
CN107451053A (en) | The automated testing method and test system of container dock bridge management system | |
CN116028367A (en) | Automatic test system and method | |
CN114578786A (en) | Vehicle test system | |
CN110978051B (en) | Robot simulation device, system, method, readable medium, and electronic apparatus | |
CN113341767A (en) | Method, system and computer readable storage medium for automated testing | |
Yu et al. | Model-based safety test automation of safety-critical software | |
Merdan et al. | Application of a communication interface between agents and the low level control | |
Kutscher et al. | Concept for Interaction of Hardware Simulation and Embedded Software in a Digital Twin Based Test Environment | |
CN103336492B (en) | A kind of mixed industrial computer network control disposal system | |
CN110765655B (en) | Dispatching automation simulation system and construction method and device of SCADA model thereof | |
Agrawal et al. | Coupled Requirements-driven Testing of CPS: From Simulation To Reality | |
Hirsch et al. | Design and verification of distributed industrial manufacturing control systems | |
KR20240018239A (en) | Simulator for verifying and testing an autonomous navigation system, and method for verifying and testing an autonomous navigation system using the simulator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |