Black-box checking (BBC)} is a testing method for cyber-physical systems (CPSs) as well as software systems. BBC consists of active automata learning and model checking; a Mealy machine is learned from the system under test (SUT), and the learned Mealy machine is verified against a specification using model checking. When the Mealy machine violates the specification, the model checker returns an input witnessing the specification violation of the Mealy machine. We use it to refine the Mealy machine or conclude that the SUT violates the specification. Otherwise, we conduct equivalence testing to find an input witnessing the difference between the Mealy machine and the SUT. In the BBC for CPSs, equivalence testing tends to be time-consuming due to the time for the system execution. In this paper, we enhance the BBC utilizing model checking with strengthened specifications. By model checking with a strengthened specification, we have more chance to obtain an input witnessing the specification violation than model checking with the original specification. The refinement of the Mealy machine with such an input tends to reduce the number of equivalence testing, which improves the efficiency. We conducted experiments with an automotive benchmark. Our experiment results demonstrate the merit of our method.
翻译:黑盒检查 (BBC) 是网络物理系统(CPS) 和软件系统的测试方法。 BBC 由主动的自动学习和模型检查组成; 一个Mealy 机器是从测试中的系统(SUT) 学习的, 所学的Mealy 机器根据使用模型检查的规格进行校验。 当Mealy 机器违反规格时, 模型检查员会返回一个证明违反Mealy 机器(BBC) 规格的输入。 我们用它来改进Mealy 机器, 或断定SUT 违反规格。 否则, 我们进行等同测试, 以发现Mealy 机器和 SUT之间的差异。 在 BBC 测试 CPS 中, 等同测试往往需要时间, 因为系统执行时间。 在本文中, 我们用强化的规格加强的规格来改进BBC 模式检查。 通过强化的规格检查, 我们有更多机会获得证明规格违反规格的输入。 我们用原始规格检查的模型来检查。 精炼Mealy 机器, 用这种输入的结果会减少等同测试次数, 提高效率。