loadrunner参数化silverlight系统脚本问题
本帖最后由 ypyyu0513 于 2015-7-20 17:22 编辑公司进行性能测试使用loadrunner11,系统采用silverlight开发,抓取报体如下:
eb_custom_request("%E4%BF%9D%E5%AD%98%E5%A4%87%E4%BB%B6%E9%94%80%E5%94%AE%E8%AE%A2%E5%8D%95%E5%AE%A1%E6%A0%B8%E7%BB%93%E6%9E%9C",
"URL=http://192.168.17.154/ClientBin/Sunlight-Silverlight-Dcs-Web-DcsDomainService.svc/binary/%E4%BF%9D%E5%AD%98%E5%A4%87%E4%BB%B6%E9%94%80%E5%94%AE%E8%AE%A2%E5%8D%95%E5%AE%A1%E6%A0%B8%E7%BB%93%E6%9E%9C",
"Method=POST",
"Resource=0",
"RecContentType=application/msbin1",
"Referer=http://192.168.17.154/ClientBin/SDSDCS.xap?20150716134832",
"Snapshot=t8.inf",
"Mode=HTML",
"EncType=application/msbin1",
"BodyBinary=@$淇濆瓨澶囦欢閿\\x80鍞鍗曞鏍哥粨鏋\\x9C\\x08\\x13http://tempuri.org/@\\x05order\t\\x01aDhttp://schemas.datacontract.org/ ... Silverlight.Dcs.Web\t\\x01i)http://www.w3.org/2001/XMLSchema-instance^\\x0BAbandonTime.\\x03nil\\x86\\x01^\\x0BAbandonerId.\\x03nil\\x86\\x01^\rAbandonerName.\\x03nil\\x86\\x01^\\x0FApprovalComment.\\x03nil\\x86\\x01^\\x0BApproveTime.\\x03nil\\x86\\x01^\nApproverId.\\x03nil\\x86\\x01^\\x0CApproverName.\\x03nil\\x86\\x01^\nAutoStatus僞\n"
"BranchCode\\x99\\x04FMSC^\\x08BranchId僞\nBranchName\\xB7\\x1A\\x00N}ll氷伨弣lf\\x8F\\x00\\x95.U\tgP杔Q鳶^\\x10CancelOperatorId.\\x03nil\\x86\\x01^\\x12CancelOperatorName.\\x03nil\\x86\\x01^\nCancelTime.\\x03nil\\x86\\x01^\\x04Code\\x99\\x12ESH040201507160009^\rContactPerson.\\x03nil\\x86\\x01^\\x0CContactPhone.\\x03nil\\x86\\x01^\nCreateTime\\x97\\x00\\x11鄭\\xD2\\x08^\tCreatorId嬮\\x07^\\x0BCreatorName\\x99\\x06niu001^\\x1ECustOrderPriceGradeCoefficient乛\\x11CustomerAccountId\\x8B\\x18\\x01^"
"\\x0CCustomerType.\\x03nil\\x86\\x01^\\x08FinishId.\\x03nil\\x86\\x01^\tFinishMan.\\x03nil\\x86\\x01^\nFinishTime.\\x03nil\\x86\\x01^\\x15FirstClassStationCode.\\x03nil\\x86\\x01^\\x13FirstClassStationId.\\x03nil\\x86\\x01^\\x15FirstClassStationName.\\x03nil\\x86\\x01^\tFreezeMan\\x99\\x06niu001^\\x0BFreezeManId嬮\\x07^\nFreezeTime\\x97\\x00\\x11鄭\\xD2\\x08^\\x02Id乛\\x0B\\x00^\\x0FIfAgencyService嘵\\x11IfDirectProvision區\\x19InvoiceReceiveCompanyCode\\x99\\x06ESH040^"
"\\x17InvoiceReceiveCompanyId\\x8B\\x18\\x01^\\x19InvoiceReceiveCompanyName\\xB7\\x18\nNwmof孴}lf\\x8F\\x00\\x95.U\tgP杔Q鳶^\\x19InvoiceReceiveCompanyType\\x89\\x05^\\x18InvoiceReceiveSaleCateId.\\x03nil\\x86\\x01^\\x1AInvoiceReceiveSaleCateName.\\x03nil\\x86\\x01^\\x0CIsClaimSpare區\\x11IsContainPriority區\\x06IsDebt區\\x14IsForceConfirmFinish區\rIsForceFinish區\\x08IsFreeze嘵\\x05IsSub區\\x08KindRate乛\nModifierId嬮\\x07^\\x0CModifierName\\x99\\x06niu001^\nModifyTime\\x97\\x00\\x11鄭\\xD2\\x08^"
"\rNowConfirmQty乛\\x19OriginalRequirementBillId.\\x03nil\\x86\\x01^\\x1BOriginalRequirementBillType.\\x03nil\\x86\\x01^\\x15PartsSalesOrderTypeId.\\x03nil\\x86\\x01^\\x17PartsSalesOrderTypeName.\\x03nil\\x86\\x01^\\x07QtyRate乛\\x10ReceivingAddress.\\x03nil\\x86\\x01^\\x14ReceivingCompanyCode\\x99\\x06ESH040^\\x12ReceivingCompanyId\\x8B\\x18\\x01^\\x14ReceivingCompanyName\\xB7\\x18\nNwmof孴}lf\\x8F\\x00\\x95.U\tgP杔Q鳶^\\x16ReceivingWarehouseCode僞\\x14ReceivingWarehouseId塩^"
"\\x16ReceivingWarehouseName\\xB7\\x04;`揯^\rRejectComment.\\x03nil\\x86\\x01^\nRejectTime.\\x03nil\\x86\\x01^\nRejecterId.\\x03nil\\x86\\x01^\\x0CRejecterName.\\x03nil\\x86\\x01^\\x06Remark.\\x03nil\\x86\\x01^\\x15RequestedDeliveryTime.\\x03nil\\x86\\x01^\\x15RequestedShippingTime.\\x03nil\\x86\\x01^\nRowVersion桜\\x04ㄧ鄭\\xD2\\x08^\\x08SaleType\\x89\\x03^\\x1BSalesActivityDiscountAmount\\x95\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00^"
"\\x19SalesActivityDiscountRate僞\\x0FSalesCategoryId僞\\x11SalesCategoryName.\\x03nil\\x86\\x01^\rSalesUnitCode\\x99\\x04FMSC^\\x0BSalesUnitId僞\rSalesUnitName\\xB7\\x1A\\x00N}ll氷伨弣lf\\x8F\\x00\\x95.U\tgP杔Q鳶^\\x19SalesUnitOwnerCompanyCode\\x99\\x06ESH040^\\x17SalesUnitOwnerCompanyId\\x8B\\x18\\x01^\\x19SalesUnitOwnerCompanyName\\xB7\\x18\nNwmof孴}lf\\x8F\\x00\\x95.U\tgP杔Q鳶^\\x14SecondLevelOrderType.\\x03nil\\x86\\x01^\\x0EShippingMethod.\\x03nil\\x86\\x01^"
"\\x0ESourceBillCode\\x99\\x12ESH040201507160009^\\x0CSourceBillId嶆w\\x0B\\x00^\\x06Status僞\\x0BStopComment.\\x03nil\\x86\\x01^\\x11SubmitCompanyCode\\x99\\x06ESH040^\\x0FSubmitCompanyId\\x8B\\x18\\x01^\\x11SubmitCompanyName\\xB7\\x18\nNwmof孴}lf\\x8F\\x00\\x95.U\tgP杔Q鳶^\nSubmitTime.\\x03nil\\x86\\x01^\\x0BSubmitterId.\\x03nil\\x86\\x01^\rSubmitterName.\\x03nil\\x86\\x01^\\x07TaxRate撁\\xF5(\\\\徛\\xC5?^"
"\\x0BTotalAmount\\x95\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\xB2*b\\x00\\x00\\x00\\x00\\x00^\\x0BUnFreezeMan.\\x03nil\\x86\\x01^\rUnFreezeManId.\\x03nil\\x86\\x01^\\x0CUnFreezeTime.\\x03nil\\x86\\x01^\\x0BWarehouseId\\x89\\x04\\x01@\\x08entities\t\\x01aDhttp://schemas.datacontract.org/ ... Silverlight.Dcs.Web\t\\x01i)http://www.w3.org/2001/XMLSchema-instance^\\x15PartsSalesOrderResult^\\x0FApproveQuantity僞\nContentQty僞\\x1ECustOrderPriceGradeCoefficient撏烫烫甜?^"
"\\x14EstimatedfulFillTime.\\x03nil\\x86\\x01^\\x02Id乛\\x07MinUnit僞\nOrderPrice\\x95\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\xB2*b\\x00\\x00\\x00\\x00\\x00^\\x0FOrderedQuantity僞\rOriginalPrice\\x95\\x00\\x00\\x04\\x00\\x00\\x00\\x00\\x00\\xFF}]\\x00\\x00\\x00\\x00\\x00^\rSparePartCode\\x99\t49S120440^\\x0BSparePartId\\x8D6\\x9B\\x00\\x00^\rSparePartName\\xB7\\x08;Nt\\x8F/e秅^\\x11SwapSparePartCode\\x99\t49S120440^\\x0FSwapSparePartId\\x8D6\\x9B\\x00\\x00^\\x11SwapSparePartName\\xB7\\x08;Nt\\x8F"
"/e秅^\\x08SwapType\\x81\\x01\\x01\\x01",
EXTRARES,
"Url=%E6%A0%B9%E6%8D%AE%E5%AE%A1%E6%89%B9%E4%BA%BA%E5%91%98%E6%9F%A5%E8%AF%A2%E5%8F%AF%E5%AE%A1%E6%A0%B8%E9%94%80%E5%94%AE%E8%AE%A2%E5%8D%95?personnelId=493&$where=((it.CreateTime%253e%253dDateTime(635726016000000000%252c%2522Unspecified%2522))%2526%2526(it.CreateTime%253c%253dDateTime(635726879990000000%252c%2522Unspecified%2522)))&$take=100&$includeTotalCount=True", "Referer=http://192.168.17.154/ClientBin/SDSDCS.xap?20150716134832", ENDITEM,
LAST);
BodyBinary为乱码,如何解决?(已使用UTF-8转码,一部分为中文,但是还有部分为乱码) BodyBinary 表示二进制代码,他的好多内容都是不可打印的字符,所以在请求体中以16进制方式,但是如果你回放应该是没有问题的;
想完全避免乱码,好像只能自己编程实现吧.
如果你要参数化,参见http://www.blogjava.net/xingcyx/archive/2007/10/31/157164.html
页:
[1]