/[cwmp]/google/test_files/test-set_parameter_values.txt
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /google/test_files/test-set_parameter_values.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Sat May 19 15:15:14 2007 UTC (17 years ago) by dpavlin
File MIME type: text/plain
File size: 4403 byte(s)
initial import of cruft around TR-069

1 dpavlin 2 Name: SetParameterValues test
2     Scenario:
3     - Send GetParameterValues from ".a.d", "a.b.a" and "a.b.b".
4     - Expect to receive stored data.
5     - Send SetParameterValues to change values of ".a.d", "a.b.a" and "a.b.b".
6     - Expect to receive OK status.
7     - Send GetParameterValues from ".a.d", "a.b.a" and "a.b.b".
8     - Expect to receive changed data.
9     Include: test_files/inform.txt
10     Include: test_files/inform_response.txt
11     Include: test_files/get_parameter_values.txt
12     Include: test_files/get_parameter_values_response.txt
13     Request: <soap:Envelope
14     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
15     soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
16     xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
17     <soap:Header>
18     <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
19     </soap:Header>
20     <soap:Body>
21     <cwmp:SetParameterValues>
22     <cwmp:ParameterList>
23     <cwmp:ParameterValueStruct>
24     <cwmp:Name>.a.d</cwmp:Name>
25     <cwmp:Value>a new string</cwmp:Value>
26     </cwmp:ParameterValueStruct>
27     <cwmp:ParameterValueStruct>
28     <cwmp:Name>.a.b.a</cwmp:Name>
29     <cwmp:Value>54321</cwmp:Value>
30     </cwmp:ParameterValueStruct>
31     <cwmp:ParameterValueStruct>
32     <cwmp:Name>.a.b.b</cwmp:Name>
33     <!-- base64 encoding of "fedcba987654321" -->
34     <cwmp:Value>ZmVkY2JhOTg3NjU0MzIxCg==</cwmp:Value>
35     </cwmp:ParameterValueStruct>
36     </cwmp:ParameterList>
37     </cwmp:SetParameterValues>
38     </soap:Body>
39     </soap:Envelope>
40     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">
41     <soap:Header>
42     <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
43     </soap:Header>
44     <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
45     <cwmp:SetParameterValuesResponse>
46     <Status xsi:type="xsd:int">1</Status>
47     </cwmp:SetParameterValuesResponse>
48     </soap:Body>
49     </soap:Envelope>
50    
51     Request: <soap:Envelope
52     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
53     soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
54     xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
55     <soap:Header>
56     <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
57     <cwmp:NoMoreRequests>1</cwmp:NoMoreRequests>
58     </soap:Header>
59     <soap:Body>
60     <cwmp:GetParameterValues>
61     <cwmp:ParameterNames>
62     <xsd:string>.a.d</xsd:string>
63     <xsd:string>.a.b.a</xsd:string>
64     <xsd:string>.a.b.b</xsd:string>
65     </cwmp:ParameterNames>
66     </cwmp:GetParameterValues>
67     </soap:Body>
68     </soap:Envelope>
69     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">
70     <soap:Header>
71     <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
72     </soap:Header>
73     <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
74     <cwmp:GetParameterValuesResponse>
75     <ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterValueStruct[3]">
76     <ParameterValueStruct xsi:type="cwmp:ParameterValueStruct">
77     <Name xsi:type="xsd:string">.a.d</Name>
78     <Value xsi:type="xsd:string">a new string</Value>
79     </ParameterValueStruct>
80     <ParameterValueStruct xsi:type="cwmp:ParameterValueStruct">
81     <Name xsi:type="xsd:string">.a.b.a</Name>
82     <Value xsi:type="xsd:int">54321</Value>
83     </ParameterValueStruct>
84     <ParameterValueStruct xsi:type="cwmp:ParameterValueStruct">
85     <Name xsi:type="xsd:string">.a.b.b</Name>
86     <Value xsi:type="xsd:base64">ZmVkY2JhOTg3NjU0MzIxCg==</Value>
87     </ParameterValueStruct>
88     </ParameterList>
89     </cwmp:GetParameterValuesResponse>
90     </soap:Body>
91     </soap:Envelope>
92    
93     Include: test_files/session_end.txt

  ViewVC Help
Powered by ViewVC 1.1.26