一种用于可编程序控制器的自动化测试方法及实现
2020年电子技术应用第9期
刘 红,刘 金,原惠峰,刘雪飞
中国电子信息产业集团有限公司第六研究所,北京102209
摘要: 针对可编程序控制器测试过程中重复操作量大、人工手动测试易引入误操作等问题,设计实现了一种自动化测试方法。该方法包括测试用例的批量自动编译、自动执行、自动显示和存储测试结果以及自动生成测试报表的过程,涵盖基本功能测试以及压力测试两方面。经实际验证,使用基于该方法实现的软件进行测试,提高了测试的准确性及其效率。
中圖分類號: TN06;TP319
文獻標識碼: A
DOI:10.16157/j.issn.0258-7998.191313
中文引用格式: 劉紅,劉金,原惠峰,等. 一種用于可編程序控制器的自動化測試方法及實現(xiàn)[J].電子技術(shù)應(yīng)用,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
中文引用格式: 劉紅,劉金,原惠峰,等. 一種用于可編程序控制器的自動化測試方法及實現(xiàn)[J].電子技術(shù)應(yīng)用,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)控制系統(tǒng)在我國已經(jīng)得到了廣泛的應(yīng)用并且發(fā)揮著重要作用[1]。其廣泛應(yīng)用于石油、化工、高鐵、電力等各行各業(yè)的自動化控制系統(tǒng)中。其中,PLC是整個控制系統(tǒng)的核心,其計算結(jié)果的正確性直接關(guān)乎該可編程序控制系統(tǒng)的運行狀態(tài),因此任何由于對PLC測試不充分、不全面所引發(fā)的問題,都有可能導(dǎo)致對現(xiàn)場設(shè)備的損害,甚至對人身安全的威脅,給國家和人民造成不可估量的損失。
統(tǒng)計表明,在一些典型的軟件開發(fā)項目中,軟件測試的工作量往往占軟件開發(fā)工作總量的40%以上,并因此而占有30%~50%的開發(fā)總成本,其重要性不言而喻[2]。自動化軟件測試從某種程度上可以減少測試的開銷,同時在有限時間內(nèi)增加測試覆蓋率[3],進而減少了開發(fā)總成本。
目前,對PLC指令執(zhí)行結(jié)果正確性的測試多是采用人工手動的測試方式,即通過測試人員依據(jù)自身的專業(yè)知識,手動依次完成組建測試用例、運行測試用例等測試步驟。針對以上問題,本文提出一種自動化測試方法,并對該方法進行了設(shè)計、實現(xiàn)與驗證。
本文詳細內(nèi)容請下載:http://www.ihrv.cn/resource/share/2000002990
作者信息:
劉 紅,劉 金,原惠峰,劉雪飛
(中國電子信息產(chǎn)業(yè)集團有限公司第六研究所,北京102209)
此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。
