一种用于可编程序控制器的自动化测试方法及实现
2020年电子技术应用第9期
刘 红,刘 金,原惠峰,刘雪飞
中国电子信息产业集团有限公司第六研究所,北京102209
摘要: 针对可编程序控制器测试过程中重复操作量大、人工手动测试易引入误操作等问题,设计实现了一种自动化测试方法。该方法包括测试用例的批量自动编译、自动执行、自动显示和存储测试结果以及自动生成测试报表的过程,涵盖基本功能测试以及压力测试两方面。经实际验证,使用基于该方法实现的软件进行测试,提高了测试的准确性及其效率。
中圖分類號: TN06;TP319
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.191313
中文引用格式: 劉紅,劉金,原惠峰,等. 一種用于可編程序控制器的自動化測試方法及實現[J].電子技術應用,2020,46(9):94-97.
英文引用格式: Liu Hong,Liu Jin,Yuan Huifeng,et al. An automatic test method for programmable logic controller and its implementation[J]. Application of Electronic Technique,2020,46(9):94-97.
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.191313
中文引用格式: 劉紅,劉金,原惠峰,等. 一種用于可編程序控制器的自動化測試方法及實現[J].電子技術應用,2020,46(9):94-97.
英文引用格式: Liu Hong,Liu Jin,Yuan Huifeng,et al. An automatic test method for programmable logic controller and its implementation[J]. Application of Electronic Technique,2020,46(9):94-97.
An automatic test method for programmable logic controller and its implementation
Liu Hong,Liu Jin,Yuan Huifeng,Liu Xuefei
The 6th Research Institute of China Electronics Corporation,Beijing 102209,China
Abstract: Aiming at the problems of large repetitive operation and easy incorrect operation in manual test of programmable logic controller, an automatic test method is designed and implemeted. This method includes batch automatic compilation of test cases, automatic execution, automatic display and storage of test results and automatic generation of test reports, covering basic functional testing and stress testing. Experiments show that the software based on this method can improve the accuracy and efficiency of the test.
Key words : automatic test;programmable logic controller(PLC);stress testing
0 引言
目前可編程序邏輯控制器(Programmable Logic Controller,PLC)控制系統在我國已經得到了廣泛的應用并且發揮著重要作用[1]。其廣泛應用于石油、化工、高鐵、電力等各行各業的自動化控制系統中。其中,PLC是整個控制系統的核心,其計算結果的正確性直接關乎該可編程序控制系統的運行狀態,因此任何由于對PLC測試不充分、不全面所引發的問題,都有可能導致對現場設備的損害,甚至對人身安全的威脅,給國家和人民造成不可估量的損失。
統計表明,在一些典型的軟件開發項目中,軟件測試的工作量往往占軟件開發工作總量的40%以上,并因此而占有30%~50%的開發總成本,其重要性不言而喻[2]。自動化軟件測試從某種程度上可以減少測試的開銷,同時在有限時間內增加測試覆蓋率[3],進而減少了開發總成本。
目前,對PLC指令執行結果正確性的測試多是采用人工手動的測試方式,即通過測試人員依據自身的專業知識,手動依次完成組建測試用例、運行測試用例等測試步驟。針對以上問題,本文提出一種自動化測試方法,并對該方法進行了設計、實現與驗證。
本文詳細內容請下載:http://www.tom3567.com/resource/share/2000002990
作者信息:
劉 紅,劉 金,原惠峰,劉雪飛
(中國電子信息產業集團有限公司第六研究所,北京102209)
此內容為AET網站原創,未經授權禁止轉載。
