lundi 10 juillet 2017

NodeJs Tcp Server Testing and Generating Json Data

I have created a Tcp Server on NodeJS.

Server waiting for mac_address value and pulse value.

Client send a string as json: {"mac_address":"C1:E9:B6:DF:80:55","pulse":1}

When server receives json data, parses that data and increment pulse value by one on MySql database according to mac_address and response back to client final MySql pulse value.

I want to test my tcp server.

The test program must send data as json but I don't know how can I generate at least 1000 different mac_address as json and send data concurrently as a separate clients to test my NodeJS server.

Aucun commentaire:

Enregistrer un commentaire