loadrunner-----页面压测

Action中脚本

     Action()
{
   //事务
	lr_start_transaction("第一个页面压测");
  //检查页面,如果body中含有 JapanCart则成功,否则失败。
	web_reg_find ("FAIL=NotFound",
				  "Search=Body",
				  "Text=JapanCart",
				  LAST);

	//打开首页,首页网址:URL=http://japanxxx.com/
	web_url ("首页",
			 "URL=http://japanxxx.com",
			 "RecContentType=text/html;charset=utf-8",
			 "Mode=HTTP",
			 LAST);

	lr_end_transaction ("第一个页面压测",LR_AUTO);
						
	return 0;
}

  

猜你喜欢

转载自www.cnblogs.com/taiyangfeng/p/12714764.html