Shell commands to generate test environment quickly (by CloudEnabler API)
- Ubuntu platform with Node.js 7.x (needs async/await)
git clonethis projectnpm installinstall the required modules- Modify
CLOUD_URLinconfig.js, it has to be the URL link of your cloud-enabler server. - Modify the settings of the API script that you want to test. e.g. bin/new_register.js
- Run the test by
node bin/new_register.js
bin/ioreg.jssimulates a cloud-enabler device posts a packet to serverbin/new_one_device.jssimulates a user registers three devices on the server, each device has three registers.bin/register_editsimulates a user modifies the settings of a device.- ...