Patent ID: 7603266

Claim:
A method of generically emulating devices communicating through a device connectivity protocol, the method comprising: processing, in a generic device emulator able to emulate more than one device based on device descriptions, a description of a device to be emulated in the device connectivity protocol, the description specifying a set of actions of the device to be emulated; in response to receiving an action request from a control point at the device emulator per the device connectivity protocol, checking the action request against the device description in the device emulator to validate which action out of the set of actions specified in the description the action request matches; upon validating an action to which the action request matches, producing, at the device emulator, a default response, the response based on the description such that, through the response the device emulator emulates operation of the device to be emulated; reading a device defect configuration file representing at least one defect behavior to be applied to a type of packet transmitted as part of a message for the emulated device; upon production of a valid packet for the emulated device, as part of a message, the valid packet being of a type for which a defect behavior is represented in the device defect configuration file, applying the defect behavior to the valid racket upon producing the racket to create an invalid packet for the emulated device; and transmitting the invalid packet for the emulated device as modified by applying the defect behavior.