Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: server/site_tests/network_WiFiRoaming/005SuspendRoamRSN

Issue 6508009: autotest: add wifi tests for roaming on resume (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This test run is designed to test that the connection manager is able
6 # to roam to a previously connected AP when it loses connectivity to its
7 # current AP on resume. To accomplish this, we join one AP (so we are
8 # sure that flimflam remembers it), then join a second AP which we
9 # shut down while the DUT is suspended. We sit around and observe
10 # if and how long it takes for the connection manager to re-acquire
11 # connectivity to the first AP. We expect the DUT will resume, find
12 # the previous AP is gone, and then roam to the other AP.
13 { "name":"SuspendRoamRSN",
14 "steps":[
15 [ "create", { "type":"hostap" } ],
16
17 # NB: use a fixed SSID so we know what to reference below
18 [ "config", { "channel":"2412", "mode":"11g",
19 "ssid": 'SuspendRoamRSN_t1',
20 "wpa":"2", "wpa_key_mgmt":"WPA-PSK",
21 "wpa_pairwise":"CCMP",
22 "wpa_passphrase":"chromeos"} ],
23
24 # Connect to the first AP. This just guarantees that this AP has
25 # been placed in the connection manager profile.
26 [ "connect", { "security":"rsn", "psk":"chromeos" } ],
27 [ "client_ping", { "count":"10" } ],
28 [ "deconfig" ],
29
30 # Configure and connect to the second AP.
31 [ "config", { "channel":"5240", "mode":"11a",
32 "ssid_suffix": 't2'} ],
33 [ "connect", { "security":"none" } ],
34 [ "client_ping", { "count":"10" } ],
35 [ "deconfig" ],
36
37 # Ask the DUT to sleep for 20 seconds while we switch things around,
38 # then see how long it takes for the DUT to return the service to the
39 # "ready" state. As a result, the arguments to this command are a
40 # combination of suspend and wait_service arguments. In this case,
41 # except for "suspend_time", all arguments are to wait_change. Note
42 # that the wait_change occurs AFTER the suspend, 20 seconds later in
43 # this specific example. Note also that we must specify the SSID of
44 # the previous AP to wait for; otherwise this will wait for the AP
45 # we just deconfig'd to come ready (and fail).
46 [ "wait_service_suspend_bg",
47 { "suspend_time": "20", # How long to sleep
48 "run_timeout":20, # Maximum time to wait
49 "debug":True, # Output all state changes
50 "states": [ # Wait for "ready" state
51 ('SuspendRoamRSN_t1', 'ready')
52 ] } ],
53
54 # Locally, let's wait 10 seconds to make sure the DUT is really asleep
55 # before we proceed.
56 [ "sleep", { "time":"15" } ],
57
58 # Shut down the second AP and bring the first one back up
59 [ "config", { "channel":"2412", "mode":"11g",
60 "ssid": 'SuspendRoamRSN_t1',
61 "wpa":"2", "wpa_key_mgmt":"WPA-PSK",
62 "wpa_pairwise":"CCMP",
63 "wpa_passphrase":"chromeos"} ],
64
65 # Wait for the DUT to wake up and return the results of wait_suspend
66 [ "wait_service_suspend_end", { } ],
67
68 [ "client_ping", { "count":"10" } ],
69
70 [ "destroy" ],
71 ],
72 }
OLDNEW
« no previous file with comments | « server/site_tests/network_WiFiRoaming/005SuspendRoam ('k') | server/site_tests/network_WiFiRoaming/005SuspendRoamWPA » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698