|
录制的一段提交代码如下,调用了webservices
web_service_call("StepName=UploadCandidateTestResult",
"SOAPMethod=TestService|TestServiceSoap|UploadCandidateTestResult",
"Service=TestService",
"Snapshot=t37.inf",
"ResponseParam=response",
BEGIN_ARGUMENTS,
"JobID=9d151164-77c0-4209-8532-a411038fe41c",
"LoginID=jpp6-0000-0010",
"TestResult=<eds id=\"{193C56C6-F451-4DA0-8300-0E7F2EEF4506}\" version="
"\"2.0\"><examheader permissionid=\"jpp6-0000-0010\" subjectid=\""
"f31ed0c7-a087-4b26-b061-1342d70b3806\" formid=\""
"b6c64510-0e38-4ecb-bdc6-af396b22fc78\" usertime=\"160\" examstatus=\""
"e\"><examitem sectionname=\"section1\" itemid=\""
"9ac5f4a0-a6d3-4fc8-b083-3c863a8f238a\" key=\"PGtleS8+\" "
"simpleuserresponse=\"\" userresponse=\""
.......",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
注意TestResult里的内容,录制后如上,但是脚本保存后,lr经常会自动对TestResult里的<、>、\和"字符自动进行转义,自动变成<、>、\",导致数据提交到服务器端后不正确,有人遇到过相同问题么,如何让lr不自动对字符进行转义? |
|