51Testing软件测试论坛
标题:
如何向loadrunner中插入数据
[打印本页]
作者:
雁过之秋
时间:
2010-6-2 13:14
标题:
如何向loadrunner中插入数据
我是菜鸟 ,想问一下如何在lr中向数据库中插入数据(sql2005的),以下是脚本
Action()
{
web_service_call( "StepName=ServiceSimple_101",
"SOAPMethod=DealInfo.DealInfoSoap.ServiceSimple",
"ResponseParam=response",
"WSDL=http://172.16.111.111:8011/DealInfo.asmx?wsdl",
"UseWSDLCopy=1",
"Snapshot=t1275375544.inf",
BEGIN_ARGUMENTS,
"publick=tttt",
"privatek=J0ZwGTXZUwhVRnYIfyaJQ",
"DealTime=2010-06-01",
"TermialID=",
"CustomerID=",
"DataSource=",
"DealType=充值",
"BankCardID=2000010000000070",
"DealAmount=0.01",
"AffairType=对方的负担",
"ExprCardID=6660718800200002245",
"ValiCode=dfd6265",
"PhoneID=",
"UserName=",
"CarID=",
"EngerID=",
"OrderId=2626565",
"PayStatus=112312",
END_ARGUMENTS,
BEGIN_RESULT,
END_RESULT,
LAST);
lr_think_time(3);
return 0;
}
日志提示调用成功
作者:
雁过之秋
时间:
2010-6-2 13:29
自己顶
作者:
云层
时间:
2010-6-2 17:39
这是一个web service么,如果你想处理成功,把发给web service的数据包做对格式就行了,你不用操作数据库,只要叫web service操作就行了
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2