51Testing软件测试论坛

标题: 脚本变得无效了 [打印本页]

作者: dabeixiong    时间: 2010-2-4 10:00
标题: 脚本变得无效了
我用web http协议录了一段从服务器下载文件的脚本,结果发现每当服务器weblogic重启,或者版本更新后,发现执行脚本后,下载次数没有增加,只能重新录制脚本,,,

请问谁碰见过类似的问题?怎么解决的?
作者: dabeixiong    时间: 2010-2-4 10:01
标题: 把我的脚本贴上来
lr_start_transaction("Download");
web_custom_request("SuperPass_5",
  "URL=http://172.21.71.21:10002/SuperPassPiats/SuperPass?wsdl",
  "Method=POST",
  "Resource=0",
  "RecContentType=text/xml",
  "Referer=",
  "Snapshot=t8.inf",
  "Mode=HTML",
  "EncType=text/xml; charset=utf-8",
  "Body=<?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:tns=\"http://www.cneport.com/webservices/superpass\" xmlns:types=\"http://www.cneport.com/webservices/superpass/encodedTypes\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><soap:Body soap:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><tns"
  ":service><serviceName xsi:type=\"xsd:string\">piats.superpass.code.QueryDownloadCodeService</serviceName><requestContext xsi:type=\"xsd:base64Binary\">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9InllcyI/PjxSZXF1ZXN0Q29udGV4dD48R3JvdXAgbmFtZT0iU3lzdGVtSW5mbyI+PEtleSBuYW1lPSJTZXNzaW9uSWQiPkUyMkQ2QkRDMjVDMkNEQjg5QjFBMTAyNUU2OTJDQkMxPC9LZXk+PC9Hcm91cD48R3JvdXAgbmFtZT0iRGF0YVByZXNlbnRhdGlvbiI+PEtleSBuYW1lPSJTaWduYXR1cmVBbGdvcml0aG0iIC8+"
  "PEtleSBuYW1lPSJFbmNyeXB0QWxnb3JpdGhtIiAvPjxLZXkgbmFtZT0iQ29tcHJlc3NBbGdvcml0aG0iIC8+PC9Hcm91cD48L1JlcXVlc3RDb250ZXh0Pg==</requestContext><requestData xsi:type=\"xsd:base64Binary\">PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8UXVlcnlEb3dubG9hZENvZGVSZXF1ZXN0IHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiPg0KICA8ZG93bmxvYWRGbGFnPjA8L2Rvd25sb2FkRmxhZz4NCiAgPGZpbGVOYW1lPuaAp+iDveiCpUIo55uS6KOFM+"
  "WMhSkoNDQ0NDQ0NDQ0NDQ0NClfMjAxMDAyMDItMDAzXzEuemlwPC9maWxlTmFtZT4NCiAgPGVudFNlcU5vPjMwMDAwMDAwMDAwMDAwMDE2NjwvZW50U2VxTm8+DQogIDxvcGVySWNDb2RlPjEwMDAwMDAwMDEwMDE8L29wZXJJY0NvZGU+DQogIDxvcGVySWNOYW1lPuaTjeS9nOWRmDI8L29wZXJJY05hbWU+DQo8L1F1ZXJ5RG93bmxvYWRDb2RlUmVxdWVzdD4=</requestData></tns:service></soap:Body></soap:Envelope>",
  LAST);
lr_end_transaction("Download",LR_AUTO);
作者: 云层    时间: 2010-2-4 12:20
你录完重启一下服务器做个自动关联试试
作者: dabeixiong    时间: 2010-2-4 13:25
试过了~不行...
作者: baileyqw    时间: 2010-2-5 11:21
觉得这里面肯定有关联,手动的字迹添加一个试试看。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2