loadrunner手寫腳本-常見函數

1、代理配置web_set_proxy

2、關聯函數web_reg_save_param

3、輸出函數lr_output_message

Action()
{
	//代理函數
	web_set_proxy("192.168.43.229:8888");
	//關聯函數
	web_reg_save_param("bigtitle",
					   "LB=<title>",
					   "RB=</title>",
					   "Search=body",
					   LAST);
	//get請求函數
	web_url("home",
			"URL=http://192.168.43.229/web/guest/home",
			"Resource=0",
			//text/html;charset=UTF-8
			"RecContentType=text/html;charset=UTF-8",
			LAST);
	//打印輸出函數
	lr_output_message("bigtitle=============%s",lr_eval_string("{bigtitle}"));
	return 0;
}

4、待補充。。。。。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章