Skip to content

wifiFunctions unittests

EyesOfThings edited this page Feb 16, 2017 · 2 revisions

#Index

  1. Tests performed
  2. Expected output

Tests performed

The following tests are performed:

  • Save and restore a WiFi profile.
  • Restore a WiFi profile when no profile has been saved previously.
  • Generate an Access Point using the default configuration.
  • Generate an Access Point using a saved profile.
  • Change the WiFi device to Station mode (mode necessary to connect to other access point).
  • Change the WiFi device to access point mode (mode necessary to generate an access point).

Expected output

The expected output of the tests must be similar to:
UART: ===============
UART: Starting Wifi Functions test app
UART: ===============
UART: .test Save Restore Profile OK
UART: .test Generate AP From Profile Index OK
UART: .Failed to get a profile
UART: No profile found on index 0
UART: test Save Restore Profile Error OK
UART: .test Generate AP From Default Profile OK
UART: .test set mode to Station OK
UART: .test set mode to AP OK
UART:
UART: OK (6 tests)
UART:
LOS: Application terminated successfully.
Batch execute: <echo $exit_opt>
exit
Batch execute: <$exit_opt>

Clone this wiki locally