diff options
author | Ed Baak <ed.baak@nokia.com> | 2011-05-23 14:46:14 +1000 |
---|---|---|
committer | Ed Baak <ed.baak@nokia.com> | 2011-05-23 14:46:14 +1000 |
commit | 5ab67b309ed12a76d6392fe2c8b6992adf97e25a (patch) | |
tree | cc1feb0622ce9b55fe8f31276b34dc32232f18a2 | |
parent | 921e5040d0e05a0bd17e116c5fb07c1cfba35d58 (diff) |
Add testcase text to test functions
I don't want to rely on separate files, and especially not one for each
operating system, that contain test descriptions that are 99% the same.
This makes tests unreadable.
-rw-r--r-- | tests/systemtests/sys_bearer/sys_bearer.qtt | 62 |
1 files changed, 58 insertions, 4 deletions
diff --git a/tests/systemtests/sys_bearer/sys_bearer.qtt b/tests/systemtests/sys_bearer/sys_bearer.qtt index e90b922a1e..1476011a42 100644 --- a/tests/systemtests/sys_bearer/sys_bearer.qtt +++ b/tests/systemtests/sys_bearer/sys_bearer.qtt @@ -56,22 +56,76 @@ testcase = { enumeration: function() { - prompt(twiki(readLocalFile(baseDataPath() + "testtext/" + testcase.platform + "/" + currentTestFunction()))); + prompt(twiki("---++++ Enumeration of connections + + 1. Work out the list of available networks: + 1. On S60 device, use Menu->Settings->Connectivity settings application. + 1. ifconfig (as superuser on linux/Mac) + 1. ipconfig (on Windows) + 1. Run the bearermonitor example application + 1. Press 'Scan' + 1. Verify all previously listed networks are shown in the application view +")); }, added_interfaces: function() { - prompt(twiki(readLocalFile(baseDataPath() + "testtext/" + testcase.platform + "/" + currentTestFunction()))); + prompt(twiki("---++++ Added network interfaces + + 1. Pre: no network access points are defined on the device; a WLAN is available + 1. Run the bearercloud application + 1. Verify the cloud space is clear of networks + 1. Press the Menu key to background the application + 1. Open Settings -> Connectivity -> Wireless networks + 1. Select the WLAN from the list + 1. Press Connect + 1. Press the Menu key + 1. Select the bearercloud application to foreground it + 1. Verify the new network is displayed in the circle +")); }, removed_interfaces: function() { - prompt(twiki(readLocalFile(baseDataPath() + "testtext/" + testcase.platform + "/" + currentTestFunction()))); + prompt(twiki("---++++ Removed network interfaces + + 1. Pre: Added network interfaces has been executed successfully + 1. Run the bearercloud application + 1. Verify the cloud space shows a network in the green circle + 1. Press the Menu key to background the application + 1. Open Settings -> Connectivity -> Destinations -> Uncategorised + 1. Select the WLAN from the list + 1. Press Options -> Delete, and then Yes in the confirm dialog + 1. Press the Menu key + 1. Select the bearercloud application to foreground it + 1. Verify the new network is not displayed in the circle +")); }, change_status: function() { - prompt(twiki(readLocalFile(baseDataPath() + "testtext/" + testcase.platform + "/" + currentTestFunction()))); + prompt(twiki("---++++ Changing the status of a network + + 1. Pre: no network access points are defined on the device; a WLAN is available + 1. Run the bearercloud application + 1. Verify the cloud space is clear of networks + 1. Press the Menu key to background the application + 1. Open Settings -> Connectivity -> Wireless networks + 1. Select the WLAN from the list + 1. Press Connect + 1. Press the Menu key + 1. Select the bearercloud application to foreground it + 1. Verify the new network is displayed in the green circle (connected) + 1. Press the Menu key to background the application + 1. Open Settings -> Connectivity -> Connection Mgr + 1. Select the WLAN from the list + 1. Press Options -> Disconnect + 1. Press the Menu key + 1. Select the bearercloud application to foreground it + 1. Verify the new network is now displayed in the blue circle (disconnected) + 1. Disable the network device (eg. unplug the access point) + 1. Verify that bearercloud shows the network moves to the grey circle (unavailable) +")); }, interface_priority: function() |