loadrunner11 flex测试遇到的问题
lr_message( "resp1 %s",lr_eval_string("{resp1}") );lr_xml_get_values("XML={resp1}","Query=//double","ValueParam=eventid",LAST);
lr_message( "eventid==== %s",lr_eval_string("{eventid}") );
EVENTID = atol(lr_eval_string("{eventid}"));
lr_message("EVENTID====== %d",EVENTID);
eventid==== 1132191.0
EVENTID====== 1132191
Action.c(882): FLEX AMF Call ("AMF3_call_36") was successful
Action.c(905): Error: Encoding of AMF message failed. Error is : Exception Occurred while invoking WriteObject method - com.thoughtworks.xstream.converters.ConversionException: Could not call flex.messaging.io.amf.ASObject.readObject() : For input string: "{EVENTID}" : For input string: "{EVENTID}"
---- Debugging information ----
message : For input string: "{EVENTID}"
cause-exception : java.lang.NumberFormatException
cause-message : For input string: "{EVENTID}"
class : java.lang.Integer
required-type : java.lang.Integer
path : /flex.messaging.messages.RemotingMessage/parameters/flex.messaging.io.amf.ASObject/map/int
line number : 1
-------------------------------
message : Could not call flex.messaging.io.amf.ASObject.readObject()
cause-exception : com.thoughtworks.xstream.converters.ConversionException
cause-message : For input string: "{EVENTID}" : For input string: "{EVENTID}"
class : flex.messaging.messages.RemotingMessage
required-type : java.lang.Integer
path : /flex.messaging.messages.RemotingMessage/parameters/flex.messaging.io.amf.ASObject/map/int
line number : 1
<string>DSId</string> <string>"
"{dsid}</string> dsid关联没有问题。
<string>eventID</string> <int>{EVENTID}</int>
eventid关联的时候无法使用自己定义的。
请帮忙看看是什么原因。谢谢。 已解决,没有使用lr_save_int 把EVENTID变量转为参数使用。 :)…………
页:
[1]