关键词:
矿用电液控制系统
软件测试
煤矿安全
提示词工程
大语言模型
摘要:
国内煤炭开采行业已经广泛使用液压支架电液控制系统来实现对井下工作面液压支架的控制,配套的控制器嵌入式软件对于井下开采工作的稳定运行至关重要,因此对其嵌入式应用软件的功能测试在一定程度上是保证其稳定工作和井下工作安全的关键。液压支架电液控制系统的嵌入式软件需要针对不同的工作面、支架类型和自动化需求进行定制化开发,二次开发后需要及时进行功能验证。现有的电液控制器嵌入式软件功能测试方法主要依赖人工测试,效率较低,且难以保证高效。本文提出了一种基于以太网通讯的自动化测试平台,旨在提高网络型电液控制器的嵌入式软件测试效率和稳定性。通过基于提示词工程的智能断言模型对测试结果进行有效分析,平台可以自动匹配测试用例,执行单动、成组和跟机功能的自动化测试,并简化了测试回路设计,提高传输速度。该自动化测试平台能够有效提升软件测试的效率和稳定性,为网络型电液控制器软件测试提供了新思路,对控制器嵌入式软件稳定运行提供有力支持。The electro-hydraulic control system for hydraulic supports is widely used in the domestic coal mining industry to control the hydraulic supports in underground mining operations. The embedded software that accompanies the control system is crucial for the stable operation of underground mining activities. Therefore, functional testing of this embedded application software is key to ensuring its stable performance and the safety of underground operations. The embedded software for the electro-hydraulic control system needs to be customized for different working faces, support types, and automation requirements, and functional validation is necessary after secondary development. Existing functional testing methods for electro-hydraulic controller embedded software mainly rely on manual testing, which is inefficient and difficult to guarantee high efficiency. This paper proposes an automated testing platform based on Ethernet communication to improve the efficiency and stability of embedded software testing for network-based electro-hydraulic controllers. By using an intelligent assertion model based on prompt engineering to effectively analyze test results, the platform can automatically match test cases and perform automation tests for single-action, grouped, and tracking functions, while simplifying the test loop design and improving transmission speed. This automated testing platform effectively enhances software testing efficiency and stability, offering a new approach for network-based electro-hydraulic controller software testing and providing strong support for