|
1 class RConnectionServ : public RSessionBase |
|
2 IMPORT_C RConnectionServ(); |
|
3 IMPORT_C TInt Connect(TUint aTierId); |
|
4 IMPORT_C void Close(); |
|
5 IMPORT_C void AccessPointStatusQuery(const CConnectionServParameterBundle& aQuery, CConnectionServParameterBundle& aResult, TRequestStatus& aStatus); |
|
6 IMPORT_C void CancelAccessPointStatusQuery(); |
|
7 IMPORT_C void AccessPointNotification(const CConnectionServParameterBundle& aQuery, MAccessPointNotificationObserver& aObserver); |
|
8 IMPORT_C void CancelAccessPointNotification(); |
|
9 |
|
10 properties of APs to be queried |
|
11 C - Configured |
|
12 R - Restricted |
|
13 A - Available |
|
14 S - Started |
|
15 |
|
16 parameters to vary |
|
17 order of api opening (RConnServ vs RConn) |
|
18 connections and subconnections |
|
19 number of APs |
|
20 AP types (PPP, dummy, ethernet) |
|
21 |
|
22 |
|
23 N.B. ALL these listed tests are on a commsdat with dummy/dummy/dummy/dummy bearers |
|
24 Tests with 2nd number +500 are on a db with NTRas/ethernet/dummy/dummy |
|
25 |
|
26 Test Cases |
|
27 ---------- |
|
28 00 - Debug and test of test suite |
|
29 |
|
30 01 - Queries - of active-status |
|
31 Info |
|
32 Value of static query to be before starting, after starting and after closing |
|
33 To be compared to RConnection::EnumerateConnections() |
|
34 Enumerate active connections (vs RConnection::EnumerateConnections()) |
|
35 |
|
36 Test Cases |
|
37 NET_RCONNECTION_SERV_01_000 - Single *ppp* connection up and then down again |
|
38 NET_RCONNECTION_SERV_01_010 - Two instances of the same *ppp* connection |
|
39 NET_RCONNECTION_SERV_01_020 - Two different hard AP types (*ppp* and *eth*) |
|
40 NET_RCONNECTION_SERV_01_023 - Two different soft AP types (*dummy* and *dummy*) |
|
41 NET_RCONNECTION_SERV_01_025 - Two different AP types (*dummy* and *ppp*) |
|
42 NET_RCONNECTION_SERV_01_030 - Multiple hard AP types and multiple hard APs of same type |
|
43 NET_RCONNECTION_SERV_01_040 - Same as NET_RCONNECTION_SERV_01_020 but only open the RConnServ as we need it |
|
44 NET_RCONNECTION_SERV_01_050 - Implicit socket |
|
45 NET_RCONNECTION_SERV_01_060 - The Full Monty - all access point types up and down again (ppp, eth, dummy) |
|
46 |
|
47 02 - Queries - of restricted and configured status |
|
48 Info |
|
49 These are the commsdat tests |
|
50 In each case - Confirm no change to other access points |
|
51 |
|
52 Test Cases |
|
53 NET_RCONNECTION_SERV_02_000 - All points check - link tier - check status (num of, configured, avail) of all APs in the database |
|
54 NET_RCONNECTION_SERV_02_020 - All points check - network tier - check status (num of, configured, avail) of all APs in the database |
|
55 NET_RCONNECTION_SERV_02_100 - Change configured status of an AP on *link* tier and validate change with query |
|
56 NET_RCONNECTION_SERV_02_110 - Change restricted status of an AP on *link* tier and validate change with query |
|
57 NET_RCONNECTION_SERV_02_140 - Change configured status of an AP on *network* tier and validate change with query |
|
58 NET_RCONNECTION_SERV_02_150 - Change restricted status of an AP on *network* tier and validate change with query |
|
59 NET_RCONNECTION_SERV_02_200 - Trying various broken commsdats. |
|
60 Load various commsdat config files and perform query for info about all APs each time |
|
61 Trying to knock it over with legacy commsdat files |
|
62 Also, any defects arising from corrupt commsdats should have their |
|
63 config files added to this test step. |
|
64 |
|
65 03 - Queries - of availability status |
|
66 Info |
|
67 Confirm expected changes to query when availability changes (all other things should stay equal) |
|
68 |
|
69 Test Cases |
|
70 NET_RCONNECTION_SERV_03_000 - Check that a *link* layer connection appears available when it becomes so. |
|
71 NET_RCONNECTION_SERV_03_010 - Check that a *network* layer connection appears available when it becomes so. |
|
72 NET_RCONNECTION_SERV_03_015 - Confirm that multiple connections appear available independently on the *link* layer |
|
73 NET_RCONNECTION_SERV_03_025 - All tiers propagation - changes to link APs with RConnectionServs watching all tiers |
|
74 NET_RCONNECTION_SERV_03_035 - Cancellation of queries - should return KErrCancel - must still be able to use |
|
75 |
|
76 04 - Negative tests |
|
77 Notes |
|
78 check that RConnServ instance errors and can then be used for valid query immediately afterward |
|
79 |
|
80 Curious query parameters |
|
81 NET_RCONNECTION_SERV_04_000 - filter:none, apidfilter:single access point |
|
82 NET_RCONNECTION_SERV_04_002 - filter:none, apidfilter:none |
|
83 NET_RCONNECTION_SERV_04_005 - filter:invalid, apidfilter:single access point |
|
84 NET_RCONNECTION_SERV_04_007 - filter:invalid, apidfilter:none |
|
85 NET_RCONNECTION_SERV_04_010 - filter:invalid subset, apidfilter:none |
|
86 NET_RCONNECTION_SERV_04_013 - filter:all don't cares - link and network tiers |
|
87 NET_RCONNECTION_SERV_04_020 - filter:all, apidfilter:outside range - link tier |
|
88 |
|
89 TODO oops we also need a test against no type of parameters |
|
90 TODO oops we also need a test against invalid type of parameters |
|
91 |
|
92 RConnectionServ::Connect() |
|
93 NET_RCONNECTION_SERV_04_030 - Invalid tier IDs on call to RConnectionServ::Connect() |
|
94 NET_RCONNECTION_SERV_04_040 - Invalid connect to ipproto tier - KErrNotSupported |
|
95 NET_RCONNECTION_SERV_04_045 - Try to reconnect with out closing first |
|
96 |
|
97 Commsdat |
|
98 NET_RCONNECTION_SERV_04_050 - Duplicated MCPR record - ensure we don't fall over |
|
99 |
|
100 + (rjl) set up commsdat with a PPP connection and invalid TsyName ("bananas"). |
|
101 then query availability on link layer. |
|
102 for the bad AP the startup of PPP availability will raise KErrNotFound, and rather |
|
103 than this rippling all the way back to be a KErrNotFound on the query request, |
|
104 we need to ensure that a bundle *is* returned, with availability marked as unknown |
|
105 for the bad access point. |
|
106 |
|
107 05 - Query - Other |
|
108 Test Cases - Filtering by subset of APs |
|
109 NET_RCONNECTION_SERV_05_100 - Filter by access point when querying each attribute and combinations of them |
|
110 |
|
111 10 - Notifications - availability status |
|
112 NET_RCONNECTION_SERV_10_000 - Availability notifications - *link* tier |
|
113 NET_RCONNECTION_SERV_10_002 - Availability notifications - *link* tier - validated with queries |
|
114 NET_RCONNECTION_SERV_10_005 - Availability notifications - *link* tier - filtered by single AP |
|
115 NET_RCONNECTION_SERV_10_015 - Availability notifications - *network* tier |
|
116 NET_RCONNECTION_SERV_10_025 - Availability notification - *link* and *network* tiers together |
|
117 NET_RCONNECTION_SERV_10_030 - Multiple RConnServ instances at the *link* tier (2) |
|
118 NET_RCONNECTION_SERV_10_040 - Multiple RConnServ instances at the *network* tier (2) |
|
119 |
|
120 11 - Notifications - active status |
|
121 Test Cases |
|
122 NET_RCONNECTION_SERV_11_000 - Notifs: Active attribute - *link* tier |
|
123 NET_RCONNECTION_SERV_11_010 - Notifs: Active attribute - *link* tier - validated with queries |
|
124 NET_RCONNECTION_SERV_11_020 - Notifs: Active attribute - *link* tier - filtered by single AP |
|
125 NET_RCONNECTION_SERV_11_040 - Notifs: Active attribute - *network* tier |
|
126 NET_RCONNECTION_SERV_11_060 - Notifs: Active attribute - *link* and *network* tiers together |
|
127 NET_RCONNECTION_SERV_11_070 - Notifs: Active attribute - *link* tier - implicit connection |
|
128 NET_RCONNECTION_SERV_11_200 - Notifs: Active attribute - Connection going idle |
|
129 |
|
130 12 - Notifications - configured and restricted status |
|
131 NET_RCONNECTION_SERV_12_100 - Notifs: Detect change to configured status of an AP on *link* tier |
|
132 NET_RCONNECTION_SERV_12_110 - Notifs: Detect change to restricted status of an AP on *link* tier |
|
133 NET_RCONNECTION_SERV_12_140 - Notifs: Detect change to configured status of an AP on *network* tier |
|
134 NET_RCONNECTION_SERV_12_150 - Notifs: Detect change to restricted status of an AP on *network* tier |
|
135 |
|
136 16 - Notifications - cancelling |
|
137 NET_RCONNECTION_SERV_16_000 - Cancellation of notifs - should return KErrCancel - must still be able to use |
|
138 |
|
139 Deprecated |
|
140 13 - Notifications - mixed status |
|
141 Available and started together |
|
142 Combination of access point properties |
|
143 |
|
144 NET_RCONNECTION_SERV_03_040 - Test for different values of score and status and make sure they meet the bounds expected |
|
145 No longer valid as status and score are a single value now and any nonzero value is available |