Bryan_Nahrwold
16 years agoContributor
Property Transfer Failing
I am having trouble with a propertytransfer.
I have a TestSuite containing three test Steps, representing three operations:
ReportUsageData
GetUsageReport
RemoveUsageReport
ReportUsageData contains:
jdoe
mypassword
<usage><feature id="1" version="8.1"><use count="0" dateTime="2004-03-05 18:34:17" version="8.1"/></use count></feature></usage>
ReportUsageData Respose produces a fileName like this:
jdoemypassword2008-04-05-17-00-35.xml
Both GetUsageReport and RemoveUsagereport use the filename string generated by ReportUsageDataResponse:
The requests are:
GetUsageReport:
jdoemypassword2008-04-05-17-00-35.xml
RemoveUsageReport:
I created two PropertyTransfers to move the out response from ReportUseageData to GetUsageReport and another to transfer this same value to RemoveUsageReport.
In both cases, the Source XPath is:
declare namespace ns1='http://amp.avocent.com/licensing';
//ns1:ReportUsageDataResponse[1]/ns1:out[1]
The first transfer Target XPath is:
declare namespace lic='http://amp.avocent.com/licensing';
//lic:GetUsageReport[1]/lic:usageReportFileName[1]
This first Property Transfer works. I get:
GetUsageReportResponse
out
The Target XPath for the second Property Transfer is:
declare namespace lic='http://amp.avocent.com/licensing';
//lic:RemoveUsageReport[1]/lic:usageReportFileName[1]
The second Property transfer does not work. The TestCase reports success, but when I look at RemoveUsageReport after the failure I see that the usageReportFileName was not populated by the PropertyTransfer.
As a result, the response is not success or failure but an HTTP ERROR: 500
Note: In the property transfer, both transfers are listed as "out", not sure if this is a problem.
Can you tell me what I am doing wrong?
I have a TestSuite containing three test Steps, representing three operations:
ReportUsageData
GetUsageReport
RemoveUsageReport
ReportUsageData contains:
ReportUsageData Respose produces a fileName like this:
Both GetUsageReport and RemoveUsagereport use the filename string generated by ReportUsageDataResponse:
The requests are:
GetUsageReport:
RemoveUsageReport:
I created two PropertyTransfers to move the out response from ReportUseageData to GetUsageReport and another to transfer this same value to RemoveUsageReport.
In both cases, the Source XPath is:
declare namespace ns1='http://amp.avocent.com/licensing';
//ns1:ReportUsageDataResponse[1]/ns1:out[1]
The first transfer Target XPath is:
declare namespace lic='http://amp.avocent.com/licensing';
//lic:GetUsageReport[1]/lic:usageReportFileName[1]
This first Property Transfer works. I get:
GetUsageReportResponse
out
The Target XPath for the second Property Transfer is:
declare namespace lic='http://amp.avocent.com/licensing';
//lic:RemoveUsageReport[1]/lic:usageReportFileName[1]
The second Property transfer does not work. The TestCase reports success, but when I look at RemoveUsageReport after the failure I see that the usageReportFileName was not populated by the PropertyTransfer.
As a result, the response is not success or failure but an HTTP ERROR: 500
Note: In the property transfer, both transfers are listed as "out", not sure if this is a problem.
Can you tell me what I am doing wrong?