51Testing软件测试论坛
标题:
请问怎么输出lr_xml_get_values里的其中一个值
[打印本页]
作者:
yangshuxin1989
时间:
2012-10-9 18:04
标题:
请问怎么输出lr_xml_get_values里的其中一个值
Action()
{
web_service_call( "StepName=getSupportCityString_101",
"SOAPMethod=WeatherWS|WeatherWSSoap|getSupportCityString",
"ResponseParam=response",
"Service=WeatherWS",
"ExpectedResponse=SoapResult",
"Snapshot=t1349765211.inf",
BEGIN_ARGUMENTS,
"theRegionCode={NewParam}",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_xml_get_values("XML={response}",
"FastQuery=/Envelope/Body/getSupportCityStringResponse/getSupportCityStringResult/string[10]",
"ValueParam=ParamValue_string",
LAST);
// lr_output_message("ParmValue_string");
//這裡要怎麼輸出string為10的參數值
web_service_call( "StepName=getWeather_102",
"SOAPMethod=WeatherWS|WeatherWSSoap|getWeather",
"ResponseParam=response",
"Service=WeatherWS",
"ExpectedResponse=SoapResult",
"Snapshot=t1349766283.inf",
BEGIN_ARGUMENTS,
"theCityCode=1023",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
return 0;
}
复制代码
作者:
yangshuxin1989
时间:
2012-10-10 09:40
没人回复噶~
作者:
yangshuxin1989
时间:
2012-10-10 10:16
我自己来结贴吧~
lr_output_message(lr_eval_string("FastQuery result = {ParamValue_string}"));
写上这句话就可以输出string10的值
作者:
yangshuxin1989
时间:
2012-10-10 10:17
我自己来结贴吧~
lr_output_message(lr_eval_string("FastQuery result = {ParamValue_string}"));
写上这句话就可以输出string10的值
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2