时间感知的信息物理系统测试用例执行调度
Time-aware Test Case Execution Scheduling for Cyber-Physical Systems
摘要:
测试网络物理系统涉及在配备最新版本软件控制系统的目标机器上执行测试用例。在测试工业机器人时,目标机器通常需要共享一些公共资源,例如,昂贵的硬件设备,因此需要在目标机器上调度测试用例执行,考虑这些共享资源。由于定期执行大量此类测试,因此很难手动管理此调度。事实上,通过手动测试执行计划和调度,一些机器人可能会长时间处于空闲状态,并且一些测试用例可能不会被执行。本文介绍了TC-Sched,一种时间感知的自动化测试用例执行调度方法。TC-Sched使用约束编程来安排测试在多台机器上运行,这些机器受到测试对共享资源(如测量或网络设备)的访问的约束。CP模型是用SICStus Prolog编写的,并使用累积全局约束。给定一组测试用例、一组机器和一组共享资源,TC-Sched生成一个执行调度,其中每个测试只执行一次,在提交源代码更改和向开发人员报告测试结果之间的时间最短。实验结果表明,TC-Sched可以在不到4分钟的时间内调度500个测试用例超过100台机器的99.5%的实例。此外,TC-Sched在很大程度上优于基于贪心算法的简单方法,适合部署在工业机器人测试上。
英文摘要:
Testing cyber-physical systems involves the execution of test cases on target-machines equipped with the latest release of a software control system. When testing industrial robots, it is common that the target machines need to share some common resources, e.g., costly hardware devices, and so there is a need to schedule test case execution on the target machines, accounting for these shared resources. With a large number of such tests executed on a regular basis, this scheduling becomes difficult to manage manually. In fact, with manual test execution planning and scheduling, some robots may remain unoccupied for long periods of time and some test cases may not be executed. This paper introduces TC-Sched, a time-aware method for automated test case execution scheduling. TC-Sched uses Constraint Programming to schedule tests to run on multiple machines constrained by the tests' access to shared resources, such as measurement or networking devices. The CP model is written in SICStus Prolog and uses the Cumulatives global constraint. Given a set of test cases, a set of machines, and a set of shared resources, TC-Sched produces an execution schedule where each test is executed once with minimal time between when a source code change is committed and the test results are reported to the developer. Experiments reveal that TC-Sched can schedule 500 test cases over 100 machines in less than 4 minutes for 99.5% of the instances. In addition, TC-Sched largely outperforms simpler methods based on a greedy algorithm and is suitable for deployment on industrial robot testing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。