diff --git a/test/methods.coffee b/test/methods.coffee index ac57dc8..b031daf 100644 --- a/test/methods.coffee +++ b/test/methods.coffee @@ -112,7 +112,7 @@ exports.SetParameterValues = (device, xmlIn, xmlOut, callback) -> name = p.get('Name').text() value = p.get('Value') device[name][1] = value.text() - device[name][2] = value.attr('xsi:type') + device[name][2] = value.attr('type').value() responseNode = xmlOut.root().childNodes()[1].node('cwmp:SetParameterValuesResponse') responseNode.node('Status', '0') diff --git a/test/test.coffee b/test/test.coffee index bbadd1f..9165e2b 100644 --- a/test/test.coffee +++ b/test/test.coffee @@ -91,7 +91,7 @@ sendRequest = (device,xml, callback) -> if response.headers['set-cookie']? # TODO set individual cookies - device['Cookies'] = [true, response.headers['set-cookie'], 'string'] + device['Cookies'] = [true, response.headers['set-cookie'], 'xsd:string'] callback(xml) )