xts-tcpclient
Version:
Extensible Test Suite extension for controling over TCP/IP
20 lines (16 loc) • 409 B
JavaScript
const xts = require('extensible-test-suite');
class SendTcpPacket extends xts.TestStep {
constructor(ts, opts) {
super(ts, opts);
this.display_name = 'SendTcpPacket';
this.full_name = 'xts.TcpClient.SendTcpPacket';
}
info() {
return 'Send TCP Packet: ' + this._opts.data;
}
run() {
return this.target.send(this._opts.data);
}
}
module.exports = SendTcpPacket;
;