LoadRunner??????? ????Webservice???????
???????????? ???????[ 2014/4/24 15:08:56 ] ????????LoadRunner ??????? Webservice
lr_start_transaction("init"); //????????????
strcat(input??cmd);
lr_end_transaction("init"?? LR_AUTO);//?????????????
lr_rendezvous("beginaction");//???????
lr_start_transaction("call");//????????????????
web_service_call( "StepName=ExecuteCommand_102"??
"SOAPMethod=Test|TestSoap|ExecuteCommand"??
"ResponseParam=response"??
"Service=Test"??
"ExpectedResponse=SoapResult"??
"Snapshot=t1397177849.inf"??
BEGIN_ARGUMENTS??
input??
END_ARGUMENTS??
BEGIN_RESULT??
"ExecuteCommandResult=outPutParams"??
END_RESULT??
LAST);
lr_end_transaction("call"?? LR_AUTO);//??????????????
lr_start_transaction("log");//???????????????
//????????
out = lr_eval_string("{outPutParams}");
//??????
lr_output_message("???????|Cmd=%s|Re=%s
"??cmd??out);
//д???????????
if ((filename=fopen(address??"a+"))==NULL)//?????
{
lr_error_message("can not open this file??address=%s"??address);
return -1;
}
fprintf(filename??"???????|Cmd=%s|Re=%s
"??cmd??out);
lr_end_transaction("log"?? LR_AUTO);//??????????????
lr_start_transaction("interval");
lr_think_time(0.1); //??????????????????????????????????Щ????
lr_end_transaction("interval"?? LR_AUTO);
return 0;
}
????????????????????иy???action??????????????????????С?
?????????????????У????????????????
????3.3??и???????Run Load Tests??
?????????????Design???ж???????????3??????????????????????????????????????????????Interactive Schedule Graph???????????????
???????ú???????Run?????Start scenario??
??????????????????????????????????????????????????????С?????????
????3.4??в????????????Analyze Load Tests??
?????????????res1???????????????????????????????Analysis Summary?п??????????????????
???????????????Running Vusers?????????????????????????
??????Hits per Second???????????????????????
??????Throughput??????????????????????д??????????????????????????????
??????Transaction Summary???????????????????????????????????
??????Average Transaction Response Time ???????????Action?????????????????????
????4.?????????????????????ж???????????????????
??????????????????????е?????“??????????????????????????????????????”
????LoadRunner??????????????????????Щ???????У?????????????????????????????????????????????????????????????????????????????????????????
??????????????????????棬?????????????????????????????????淢?????????????????????????顣
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11