1 |
Name: GetParameterNames test |
2 |
Scenario: |
3 |
- Send GetParameterNames from ".". |
4 |
- Expect to receive the list of all Parameters. |
5 |
Include: test_files/inform.txt |
6 |
Include: test_files/inform_response.txt |
7 |
Request: <soap:Envelope |
8 |
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" |
9 |
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
10 |
xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> |
11 |
<soap:Header> |
12 |
<cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> |
13 |
<cwmp:NoMoreRequests>1</cwmp:NoMoreRequests> |
14 |
</soap:Header> |
15 |
<soap:Body> |
16 |
<cwmp:GetParameterNames> |
17 |
<cwmp:ParameterPath></cwmp:ParameterPath> |
18 |
<cwmp:NextLevel>0</cwmp:NextLevel> |
19 |
</cwmp:GetParameterNames> |
20 |
</soap:Body> |
21 |
</soap:Envelope> |
22 |
Response: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
23 |
<soap:Header> |
24 |
<cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> |
25 |
</soap:Header> |
26 |
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
27 |
<cwmp:GetParameterNamesResponse> |
28 |
<ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterInfoStruct[14]"> |
29 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
30 |
<Name xsi:type="xsd:string">.</Name> |
31 |
<Writable xsi:type="xsd:boolean">true</Writable> |
32 |
</ParameterInfoStruct> |
33 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
34 |
<Name xsi:type="xsd:string">.a.</Name> |
35 |
<Writable xsi:type="xsd:boolean">true</Writable> |
36 |
</ParameterInfoStruct> |
37 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
38 |
<Name xsi:type="xsd:string">.a.b.</Name> |
39 |
<Writable xsi:type="xsd:boolean">true</Writable> |
40 |
</ParameterInfoStruct> |
41 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
42 |
<Name xsi:type="xsd:string">.a.b.a</Name> |
43 |
<Writable xsi:type="xsd:boolean">true</Writable> |
44 |
</ParameterInfoStruct> |
45 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
46 |
<Name xsi:type="xsd:string">.a.b.b</Name> |
47 |
<Writable xsi:type="xsd:boolean">true</Writable> |
48 |
</ParameterInfoStruct> |
49 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
50 |
<Name xsi:type="xsd:string">.a.b.c</Name> |
51 |
<Writable xsi:type="xsd:boolean">false</Writable> |
52 |
</ParameterInfoStruct> |
53 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
54 |
<Name xsi:type="xsd:string">.a.c.</Name> |
55 |
<Writable xsi:type="xsd:boolean">true</Writable> |
56 |
</ParameterInfoStruct> |
57 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
58 |
<Name xsi:type="xsd:string">.a.c.1.</Name> |
59 |
<Writable xsi:type="xsd:boolean">true</Writable> |
60 |
</ParameterInfoStruct> |
61 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
62 |
<Name xsi:type="xsd:string">.a.c.1.d</Name> |
63 |
<Writable xsi:type="xsd:boolean">false</Writable> |
64 |
</ParameterInfoStruct> |
65 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
66 |
<Name xsi:type="xsd:string">.a.c.2.</Name> |
67 |
<Writable xsi:type="xsd:boolean">true</Writable> |
68 |
</ParameterInfoStruct> |
69 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
70 |
<Name xsi:type="xsd:string">.a.c.2.d</Name> |
71 |
<Writable xsi:type="xsd:boolean">false</Writable> |
72 |
</ParameterInfoStruct> |
73 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
74 |
<Name xsi:type="xsd:string">.a.c.5.</Name> |
75 |
<Writable xsi:type="xsd:boolean">true</Writable> |
76 |
</ParameterInfoStruct> |
77 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
78 |
<Name xsi:type="xsd:string">.a.c.5.d</Name> |
79 |
<Writable xsi:type="xsd:boolean">false</Writable> |
80 |
</ParameterInfoStruct> |
81 |
<ParameterInfoStruct xsi:type="cwmp:ParameterInfoStruct"> |
82 |
<Name xsi:type="xsd:string">.a.d</Name> |
83 |
<Writable xsi:type="xsd:boolean">true</Writable> |
84 |
</ParameterInfoStruct> |
85 |
</ParameterList> |
86 |
</cwmp:GetParameterNamesResponse> |
87 |
</soap:Body> |
88 |
</soap:Envelope> |
89 |
|
90 |
Include: test_files/session_end.txt |