CN111309616A - Test platform and implementation method thereof - Google Patents

Test platform and implementation method thereof Download PDF

Info

Publication number
CN111309616A
CN111309616A CN202010104122.0A CN202010104122A CN111309616A CN 111309616 A CN111309616 A CN 111309616A CN 202010104122 A CN202010104122 A CN 202010104122A CN 111309616 A CN111309616 A CN 111309616A
Authority
CN
China
Prior art keywords
test
data
network
sequencer
equipment
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
CN202010104122.0A
Other languages
Chinese (zh)
Other versions
CN111309616B (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.)
Intelligent Automation Equipment Zhuhai Co Ltd
Original Assignee
Intelligent Automation Equipment Zhuhai 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 Intelligent Automation Equipment Zhuhai Co Ltd filed Critical Intelligent Automation Equipment Zhuhai Co Ltd
Priority to CN202010104122.0A priority Critical patent/CN111309616B/en
Publication of CN111309616A publication Critical patent/CN111309616A/en
Application granted granted Critical
Publication of CN111309616B publication Critical patent/CN111309616B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The invention discloses a test platform and a test method for test equipment, and aims to provide a test platform and a test method for distributed cross-platform test equipment, which have strong adaptability and good expansibility. The invention realizes the single machine operation or the access automatic production line operation; state control, sequence management, project execution and record storage can be operated in the same computer or different computers; and when the main program is not modified, the test sequence file and the execution layer data processing module are added or modified according to requirements to realize the function and performance test of different products and support the condition jump and condition selection test. The invention is applied to the technical field of test platforms of test equipment.

Description

Test platform and implementation method thereof
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a test platform and a test method for test equipment.
Background
The change of products to be tested/detected is different day by day, the test requirements and specifications are different, a set of universal upper computer software platform with strong expansibility is needed, a user is supported to modify a test script and carry out parameterized development, and the reusability and the effective execution are improved; the method solves the problems of portability of the program and stability, rapidness, simplicity and interchangeability of bottom layer driving of the platform, improves the delivery progress of the equipment and reduces quality risks; effective debugging tools and means are provided, and problems are quickly positioned and solved; meanwhile, the customization requirements of customers can be quickly realized; cross-platform operation is enabled and coupling is reduced; with the development of automation, the test equipment is required to be quickly connected into an automation production line, but at present, a test platform which can meet the requirements is not available.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a test platform and a method for distributed cross-platform test equipment, which have strong adaptability and good expansibility.
The technical scheme adopted by the invention is as follows:
the test platform of the test equipment comprises the following functional layers:
the sequencer is responsible for analyzing the test sequence, scheduling and executing the sequence, encapsulating and analyzing data, and sending, receiving and broadcasting the data through a network;
the executor is responsible for hardware drive management, function execution, hardware equipment data acquisition, data filtering, processing and packaging, and network sending, receiving and broadcasting data;
the state machine is responsible for switching test states, packaging and analyzing data, and sending, receiving and broadcasting data through a network;
the record saver is responsible for receiving data by the network, analyzing and processing the data, caching and saving the data and uploading the data to the database;
and the functional modules of the sequencer, the actuator, the state machine and the record saver are in data communication through a local loop network or a local area network.
Further, the test states of the state machine comprise idle, product loading, test in, test out, and product ready for removal, wherein the product loading and the product ready for removal are the docking of the automation device actions.
The method for realizing the test platform of the test equipment comprises the following steps:
s1, starting a test platform of the test equipment, loading a configuration file by the test platform, extracting the number of the equipment, the number of channels and stop conditions, and starting processes of a state machine, a sequencer, an actuator and a record saver;
s2, loading a test sequence file by the sequencer;
s3, starting interface or machine action triggering;
s4, the state machine controls the action of the jig, sends a signal through the network to request the sequencer to start testing, switches the state to the testing, and broadcasts to start testing;
s5, the sequencer sends the information request of the current item to be tested to the executor through the network, and broadcasts the information through the network, and the record saver receives, analyzes and caches the broadcast data;
s6, the executor executes the corresponding function and returns the collected hardware data to the sequencer through the network;
s7, the sequencer compares the data returned by the executor with the upper and lower limits, judges the project result as success or failure, broadcasts the data through the network, and the record holder combines the received broadcast data with the S5 cache data for storage;
s8, the sequencer judges whether the data meets the stop condition of S1, if the data meets the stop condition, S9 is executed, and if the data does not meet the stop condition, S10 is executed;
s9, the broadcast test of the sequencers is completed, the state machine receives the broadcast and waits until the test of all the sequencers is completed, the equipment/jig is controlled to act, and S3 is skipped to wait for triggering to start the test;
s10, judging whether the test data meet the jump condition defined in the test sequence, if so, executing S11, and if not, continuing executing S5;
s11, jumping to the item defined in the test sequence as the current item to be tested, and executing S5.
The invention has the beneficial effects that:
universality: according to different test product requirements, the data processing modules in the test sequence file and the executor are modified without writing special programs for each product.
And (3) cross-platform operation: windows and Mac OSX are supported, a driving layer is realized by C/C + +, and other modules are realized by python.
Expansibility: the single-machine operation is flexibly supported or the automatic production line is accessed for use through the state machine; by the aid of the development process, one-machine multi-channel or multi-machine multi-channel parallel testing is supported, and efficiency is improved; the data record storage module of the record storage device is modified to realize personalized customization; control of other equipment instruments, including but not limited to camera vision, is extended through actuator drive management.
Distributed: the record conserver, the state machine, the sequencer and the actuator can run on the same computer or different computers, the coupling is reduced, the platform deployment is convenient, and the system is suitable for various application scenes.
Flexibility: the state machine can flexibly and quickly realize the single-machine operation of the detection equipment or the use of the detection equipment by being merged into an automatic production line.
Drawings
FIG. 1 is a block diagram of a software platform system for a test/test device according to the present invention;
FIG. 2 is a flow chart of the steps performed by the present invention;
fig. 3 is an application scenario of the present invention: a multi-console multi-channel mode;
fig. 4 is an application scenario of the present invention: multiple operating system collaboration mode.
Detailed Description
As shown in fig. 1 to 4, in this embodiment, the test platform of the test apparatus includes the following functional layers:
the sequencer is responsible for analyzing the test sequence, scheduling and executing the sequence, encapsulating and analyzing data, and sending, receiving and broadcasting the data through a network;
the executor is responsible for hardware drive management, function execution, hardware equipment data acquisition, data filtering, processing and packaging, and network sending, receiving and broadcasting data;
the state machine is responsible for switching test states, packaging and analyzing data, and sending, receiving and broadcasting data through a network;
the record saver is responsible for receiving data by the network, analyzing and processing the data, caching and saving the data and uploading the data to the database;
and the functional modules of the sequencer, the actuator, the state machine and the record saver are in data communication through a local loop network or a local area network.
The method for realizing the test platform of the test equipment comprises the following steps:
s1, loading configuration files by the platform, extracting the number of devices, the number of channels and stop conditions: and after the stopping is finished or the test is stopped after the number of times of failure, starting the processes of the state machines, the sequencers, the executors and the record conservers in corresponding number according to the number of the devices and the number of the channels.
And S2, loading the test sequence file in the csv format by the sequencer, wherein the detailed operation is that reading each row of the text sequence file in sequence, extracting the description, the item identification code, the function name, the input parameter, the upper limit, the lower limit and the skip condition in the data row.
S3, the interface or the machine action triggers the start of the test.
And S4, the state machine controls the tool to act, sends a protocol data request sequencer to start testing through the network, switches the state to the testing, broadcasts to start testing, and the interface switching state is in the testing.
S5, starting the sequencer broadcast channel test, converting the input parameters of the function name of the current item to be tested into Json character strings according to the protocol, sending the Json character strings to the actuator through the network, converting the description, the item identification codes and the upper and lower limits into Json character strings according to the protocol, broadcasting the Json character strings through the network, and receiving, analyzing and broadcasting data and caching the data by the record storage device. The interface displays that the current test item is under test.
And S6, the executor executes the corresponding function and returns the collected hardware data to the sequencer through the network according to the protocol conversion.
And S7, the sequencer compares the returned data with the upper limit and the lower limit, judges the project result as success or failure, broadcasts the project identification code, the data and the result through the network, and the record saver searches the received broadcast data through the unique identification code and the cache of S5 to find the corresponding data for combination storage. And displaying the test data and the result of the current test item on the interface.
S8, the sequencer determines whether the data meets the stop condition of S1, if yes, then S9 is executed, and if not, then S10 is executed.
And S9, the broadcast test of the sequencers is completed, the state machine receives the broadcast and waits until the test of all the sequencers is completed, the equipment/jig is controlled to act, the test is finished, and S3 is skipped to wait for triggering to start the test. The interface shows that the test is complete.
S10, judging whether the test data meets the jump condition defined in the test sequence, if yes, executing S11; if not, execution continues with S5
S11, jumping to the item defined in the test sequence as the current item to be tested, and executing S5.
In this embodiment, the protocol format is a Json string.
The test sequence file content of S2 is a text string, including: group name, description, item ID, unit, upper limit, lower limit, function name, parameter 1, parameter 2, keyword, value, number of failures, timeout.
The request content of S4: protocol version number, unique identification code, function, parameter; the broadcast content includes: time, information level, publisher, data content are under test.
The request content of S5: protocol version number, unique identification code, function name and parameter; the broadcast content includes: time, information level, publisher, data content including event category, group name, item ID, unit, lower limit, upper limit
The response return content of S6: protocol version number, unique identification code, test data.
Broadcast content of S7: time, information level, publisher, data content including unique identification code, test data, results, error information.
S9 the broadcast content includes: time, information level, publisher, data content is test end.
Fig. 3 shows a multi-device multi-channel mode application mode, where the software platform starts a corresponding number of processes according to the number of configured devices and the number of channels of each device: the number of the sequencers and the actuators is consistent with the number of the channels of the equipment, and the number of the state machines and the record conservers is corresponding to the number of the equipment, so that one computer controls a plurality of pieces of equipment.
FIG. 4 shows a special operating mode, a multi-OS collaborative application mode, a record holder running in a Mac OSX operating system, and a sequencer, an executor and a state machine running in a Windows operating system.
Taking the voltage test as an example, the specific data content of the embodiment may be, but is not limited to:
Figure DEST_PATH_IMAGE002
the invention is applied to the technical field of test platforms of test equipment.
While the embodiments of the present invention have been described in terms of practical embodiments, they are not to be construed as limiting the meaning of the present invention, and modifications of the embodiments and combinations with other embodiments will be apparent to those skilled in the art in light of the present description.

Claims (3)

1. A test platform of test equipment is characterized in that: the test platform of the test equipment comprises the following functional layers:
the sequencer is responsible for analyzing the test sequence, scheduling and executing the sequence, encapsulating and analyzing data, and sending, receiving and broadcasting the data through a network;
the executor is responsible for hardware drive management, function execution, hardware equipment data acquisition, data filtering, processing and packaging, and network sending, receiving and broadcasting data;
the state machine is responsible for switching test states, packaging and analyzing data, and sending, receiving and broadcasting data through a network;
the record saver is responsible for receiving data by the network, analyzing and processing the data, caching and saving the data and uploading the data to the database;
and the functional modules of the sequencer, the actuator, the state machine and the record saver are in data communication through a local loop network or a local area network.
2. The test platform of claim 1, wherein: the test state of the state machine comprises idle state, product loading, test in, test finished state and product ready taking out, wherein the product loading and the product ready taking out are butt joint for realizing the action of the automation equipment.
3. The method of claim 1, wherein the method comprises: the implementation method comprises the following steps:
s1, starting a test platform of the test equipment, loading a configuration file by the test platform, extracting the number of the equipment, the number of channels and stop conditions, and starting processes of a state machine, a sequencer, an actuator and a record saver;
s2, loading a test sequence file by the sequencer;
s3, starting interface or machine action triggering;
s4, the state machine controls the action of the jig, sends a signal through the network to request the sequencer to start testing, switches the state to the testing, and broadcasts to start testing;
s5, the sequencer sends the information request of the current item to be tested to the executor through the network, and broadcasts the information through the network, and the record saver receives, analyzes and caches the broadcast data;
s6, the executor executes the corresponding function and returns the collected hardware data to the sequencer through the network;
s7, the sequencer compares the data returned by the executor with the upper and lower limits, judges the project result as success or failure, broadcasts the data through the network, and the record holder combines the received broadcast data with the S5 cache data for storage;
s8, the sequencer judges whether the data meets the stop condition of S1, if the data meets the stop condition, S9 is executed, and if the data does not meet the stop condition, S10 is executed;
s9, the broadcast test of the sequencers is completed, the state machine receives the broadcast and waits until the test of all the sequencers is completed, the equipment/jig is controlled to act, and S3 is skipped to wait for triggering to start the test;
s10, judging whether the test data meet the jump condition defined in the test sequence, if so, executing S11, and if not, continuing executing S5;
s11, jumping to the item defined in the test sequence as the current item to be tested, and executing S5.
CN202010104122.0A 2020-02-20 2020-02-20 Implementation method of test platform Active CN111309616B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010104122.0A CN111309616B (en) 2020-02-20 2020-02-20 Implementation method of test platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104122.0A CN111309616B (en) 2020-02-20 2020-02-20 Implementation method of test platform

Publications (2)

Publication Number Publication Date
CN111309616A true CN111309616A (en) 2020-06-19
CN111309616B CN111309616B (en) 2023-06-27

Family

ID=71156516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104122.0A Active CN111309616B (en) 2020-02-20 2020-02-20 Implementation method of test platform

Country Status (1)

Country Link
CN (1) CN111309616B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559288A (en) * 2020-12-09 2021-03-26 北京航天控制仪器研究所 Distributed inertial platform test system based on Ethernet
CN112650170A (en) * 2020-12-17 2021-04-13 珠海市运泰利自动化设备有限公司 Control platform of automation equipment and implementation method
CN117347755A (en) * 2023-09-27 2024-01-05 广州致远仪器有限公司 Test method, system, equipment and storage medium based on state machine

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163805A (en) * 1997-10-07 2000-12-19 Hewlett-Packard Company Distributed automated testing system
US20030231741A1 (en) * 2002-06-14 2003-12-18 G3 Nova Technology, Inc. Multi-protocol, multi-interface communications device testing system
US20060036910A1 (en) * 2004-08-10 2006-02-16 International Business Machines Corporation Automated testing framework for event-driven systems
US8174991B1 (en) * 2009-06-29 2012-05-08 Juniper Networks, Inc. Methods and apparatus related to analysis of test packets
CN102768518A (en) * 2012-07-11 2012-11-07 清华大学 Multiple-unmanned plane platform cooperative control system
CN103092156A (en) * 2012-12-26 2013-05-08 莱诺斯科技(北京)有限公司 Device replaceable automatic test system and method
US20150264080A1 (en) * 2012-09-28 2015-09-17 Siemens Aktiengesellschaft Testing Integrity of Property Data of a Device Using a Testing Device
CN106598019A (en) * 2016-10-31 2017-04-26 航天东方红卫星有限公司 Satellite housekeeping simulator and simulation method for development and test of micro-nano satellite control module
WO2017210917A1 (en) * 2016-06-10 2017-12-14 Honeywell International Inc. Integrated testing mechanism for industrial process control and automation systems
CN109388530A (en) * 2018-08-22 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Blade server-oriented automatic test platform and test method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6163805A (en) * 1997-10-07 2000-12-19 Hewlett-Packard Company Distributed automated testing system
US20030231741A1 (en) * 2002-06-14 2003-12-18 G3 Nova Technology, Inc. Multi-protocol, multi-interface communications device testing system
US20060036910A1 (en) * 2004-08-10 2006-02-16 International Business Machines Corporation Automated testing framework for event-driven systems
US8174991B1 (en) * 2009-06-29 2012-05-08 Juniper Networks, Inc. Methods and apparatus related to analysis of test packets
CN102768518A (en) * 2012-07-11 2012-11-07 清华大学 Multiple-unmanned plane platform cooperative control system
US20150264080A1 (en) * 2012-09-28 2015-09-17 Siemens Aktiengesellschaft Testing Integrity of Property Data of a Device Using a Testing Device
CN103092156A (en) * 2012-12-26 2013-05-08 莱诺斯科技(北京)有限公司 Device replaceable automatic test system and method
WO2017210917A1 (en) * 2016-06-10 2017-12-14 Honeywell International Inc. Integrated testing mechanism for industrial process control and automation systems
CN106598019A (en) * 2016-10-31 2017-04-26 航天东方红卫星有限公司 Satellite housekeeping simulator and simulation method for development and test of micro-nano satellite control module
CN109388530A (en) * 2018-08-22 2019-02-26 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Blade server-oriented automatic test platform and test method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559288A (en) * 2020-12-09 2021-03-26 北京航天控制仪器研究所 Distributed inertial platform test system based on Ethernet
CN112650170A (en) * 2020-12-17 2021-04-13 珠海市运泰利自动化设备有限公司 Control platform of automation equipment and implementation method
CN112650170B (en) * 2020-12-17 2022-09-13 珠海市运泰利自动化设备有限公司 Control platform of automation equipment and implementation method
CN117347755A (en) * 2023-09-27 2024-01-05 广州致远仪器有限公司 Test method, system, equipment and storage medium based on state machine
CN117347755B (en) * 2023-09-27 2024-04-26 广州致远仪器有限公司 Test method, system, equipment and storage medium based on state machine

Also Published As

Publication number Publication date
CN111309616B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
CN111309616A (en) Test platform and implementation method thereof
CN107135390A (en) The automated testing method and system of a kind of TV applications
CN110493079B (en) Production automation test method of industrial Ethernet switch
CN102799519A (en) Automatic test method for cluster file system
CN104850499A (en) Automatic test method and device for base band software
CN112615758B (en) Application identification method, device, equipment and storage medium
CN1713658A (en) Testing system and method for mobile telephones
CN109634847A (en) Embedded product automated testing method and system
CN101799506A (en) Chip test method, device and system based on script control
CN115686540A (en) RPA control method and system based on Hongmong system
CN110941520B (en) Hardware function test system and method based on two-out-of-two safety control unit
CN101441592A (en) Test system and method of embedded system
CN115658529A (en) Automatic testing method for user page and related equipment
CN102063367B (en) Off-line analysis method and device aiming at computer crash program
CN105739481A (en) Industrial control software testing method, industrial control software testing device, and industrial control software testing system
CN113849399B (en) Automatic test system and method for multi-machine collaborative software under multi-localization platform
CN102799526A (en) Distributed intelligent scheduling method
CN106612213B (en) Equipment testing method and device
CN116647490A (en) Aviation AFDX network data detection system
CN114448775A (en) Equipment fault information processing method and device, electronic equipment and storage medium
CN112986725A (en) Intelligent control terminal for testing power secondary equipment, testing method and electronic equipment
CN111008113B (en) SAS-Expander test method and tool
CN113934619A (en) Sound source testing method, system and storage medium based on Robot Framework testing Framework
CN113721562A (en) Automatic configuration method for production line test resources
CN100367233C (en) Program execution control mode

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