发明名称 Test generation using expected mode of the target hardware device
摘要 A method, apparatus and product for test generation. The method comprises generating a first set of instructions for a hardware component, that are to be executed when operating in a first mode of operation; in response to a parsed template statement being a marker statement, generating an intermediary set of one or more instructions to cause the hardware component to change the mode of operation to a second mode in accordance with the marker instruction, and modifying the expected mode of the hardware component to a second mode; and generating a second set of instructions for the hardware component, that are to be executed when operating in the second mode of operation. The generation of instructions comprises determining the expected mode and generating instructions in accordance with the expected mode of the hardware component. The generation is performed without having an expected full state of the hardware component.
申请公布号 US9626267(B2) 申请公布日期 2017.04.18
申请号 US201514610297 申请日期 2015.01.30
申请人 International Business Machines Corporation 发明人 Park Sung-Boem;Nahir Amir;Sokhin Vitali;Kadry Wisam;Park Jin Sung;Cho Ara
分类号 G06F11/00;G06F11/263 主分类号 G06F11/00
代理机构 Ziv Glazberg 代理人 Ziv Glazberg
主权项 1. A method for testing a hardware component capable of switching between at least two modes of operation, comprising: setting an expected mode of the hardware component to a first mode; parsing a test template containing a plurality of template statements of tests to be performed on the hardware component, wherein at least one template statement is a marker statement indicating a request to change a mode of operation of the hardware component; and generating instructions for the hardware components based on one or more parsed template statements, wherein said generating instructions comprises: generating a first set of instructions for the hardware component, wherein the first set of instructions is to be executed by the hardware component when operating in the first mode of operation;in response to a parsed template statement being a marker statement, generating an intermediary set of one or more instructions to cause the hardware component to change the mode of operation to a second mode in accordance with the marker instruction, and modifying the expected mode of the hardware component to the second mode; andgenerating a second set of instructions for the hardware component, wherein the second set of instructions is to be executed by the hardware component when operating in the second mode of operation;wherein said generating the first set and generating the second set comprise: determining the expected mode of the hardware component and generating instructions in accordance with the expected mode of the hardware component;wherein said generating the first set and generating the second set are performed without having an expected full state of the hardware component.
地址 Armonk NY US