-
Notifications
You must be signed in to change notification settings - Fork 7
Testing
kaptk2 edited this page Mar 17, 2011
·
2 revisions
To test the management GUI use Selenium IDE
Some sample scripts have been written to simulate an AP login. These are located at http(s)://$CONTROLLER/src/test/
These PHP files allow you to simulate a inital AP check, decode the returned file, and test modules.
Config File Format:
var_package=$PACKAGE_NAME var_remote_files=$REMOTE_FILE1 $REMOTE_FILE2 var_local_files=$LOCAL_LOCATION1 $LOCAL_LOCATION2 var_commands=$COMMAND1 $COMMAND2
You can also test from the command line using the test script below to simulate AP initial login. This allows you to post data to check the error reporting and heatbeat.
#!/bin/sh # # Script to simulate AP login check # local_uptime=`cut -f1 -d' ' /proc/uptime` echo -n "Enter Version Number: " read versionNum wget --post-data 'uptime='$local_uptime'' http://$CONTROLLER/airkey/register/auth/00:21:9B:3D:65:7D/secret1/$versionNum if [ -e $versionNum ] then echo "no new version" rm -f $versionNum else echo "new version, deal with it" fi