发明名称 Testing a software interface for a streaming hardware device
摘要 Embodiments of the disclosure relate to testing a software interface for a streaming hardware device through simulation. Methods include receiving, by a processor, a data manipulation request and a data segment associated with the data manipulation request and generating, by the software interface, an input data stream comprising control information and the data segment. The method also includes transmitting the input data stream to a simulation device and generating, by the simulation device, an output data stream in response to the input data stream, the output data stream including a delineator, control data, a manipulated data segment and a trailing delineator. The simulation device is configured to simulate the operation of the streaming hardware device by performing the data manipulation request.
申请公布号 US9298593(B2) 申请公布日期 2016.03.29
申请号 US201414501370 申请日期 2014.09.30
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 Sofia Anthony T.;Yocom Peter B.
分类号 G06F9/44;G06F11/36;G06F17/50 主分类号 G06F9/44
代理机构 Cantor Colburn LLP 代理人 Cantor Colburn LLP ;Kinnaman, Jr. William A.
主权项 1. A method for testing a software interface for a streaming hardware device through simulation, the method comprising: receiving, by a processor, a data manipulation request and a data segment associated with the data manipulation request; generating, by the software interface, an input data stream comprising control information and the data segment, wherein the input data stream includes a length field and a delineator, wherein the length field consists of the size of the data segment associated with the data manipulation request; transmitting the input data stream to a simulation device; saving state information between calls from the software interface, wherein the state information is saved b the simulation device; generating, by the simulation device, an output data stream in response to the input data stream, by inserting a second delineator, a second control data, and a manipulated data segment, wherein the manipulated data segment and the control data are separated by the second delineator; storing the output data stream, by the simulation device, wherein the simulation device simulates the operation of the streaming hardware device by performing the data manipulation request; and verifying whether the software interface functions properly, by performing the steps of: transmitting the output data stream to a simulation device;processing the output stream by a test application to insure, using automated test cases, that the software interface has correctly inserted the control data into the output data stream;further in response to receiving the output data stream, generating, by the simulation device a restored data segment based on the inserted second control data and saved state information; anddetermining whether the restored data segment is identical to the data segment to thereby indicate the proper operation of the software interface.
地址 Armonk NY US