Friday 20 August 2010

Web Services performance testing using load runner

Webservices performance testing has a unique way to perform
Key points:
1. Web service header
2. Webservice body

Generally header and the body is provided by web services development.

For Eg:
Webservice name: Xyz
Action()
{
int Ltv, Term;
char *ltv_string;
web_add_header("SOAPAction",lr_eval_string("http://tempuri.org/Webservicename/webservice_function"));

lr_start_transaction ("xyz1" );

web_custom_request("webservice_function",
"URL=http://xyz31/Design_Time_Addresses/ServiceWS/webservice_function",
"Method=Post",
"Resource=0",
"RecContentType=text/xml",
"Referer=",
"Mode=HTML",
"EncType=text/xml; charset=utf-8",
"Body="

LAST);

lr_end_transaction ( "xyz1", LR_PASS);

lr_think_time(55) ;

return 0;
}

3 comments: