LoadRunner11在测试WebService的时候返回值为乱码
我在windows 7 64位系统下,成功安装LoadRunner11,并且按照论坛上"LR11 web service测试简介 by 云层"的帖子进行相关测试,当调用getSupportCityString,我在日志输出中,出现的是乱码,相关代码片段如下:<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.or
Action.c(3): g/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://
Action.c(3): www.w3.org/2001/XMLSchema"><soap:Body><getSupportCityStringResponse xmlns="http://WebXml.c
Action.c(3): om.cn/"><getSupportCityStringResult><string>瀹濆北,2009</string><string>宕囨槑,2012</strin
Action.c(3): g><string>濂夎搐,2063</string><string>鍢夊畾,2011</string><string>閲戝北,3530</string><str
Action.c(3): ing>闂佃,2008</string><string>鍗楁眹,2014</string><string>娴︿笢,2015</string><string>闈
Action.c(3): 掓郸,2061</string><string>涓婃捣,2013</string><string>鏉炬睙,3413</string><string>寰愬姹
Action.c(3): \x87,3643</string></getSupportCityStringResult></getSupportCityStringResponse></soap:Body>
Action.c(3): </soap:Envelope>
相关编码我都设置为UTF-8.不知为何? 除了设置为utf-8,还要设置vuser->run-time settings...->选择browser下的"browser emulation"->在右侧点击"chang...""按钮-> 选择use browser->在language列表下选择chinese,保存即可,重新录制脚本即可。 。。
楼上正解。
页:
[1]