????LoadRunner????????
????//????????
????lr_start_transaction("trans_login");
????//???ü??????????savecount????????????????????
????web_reg_find("Text=?????"??"SaveCount=loginss_count"??LAST);
????//??????????????????????
????web_submit_data("loginAction.do;jsessionid=16D156A310B3804B354123F7CDEE5211"??
????  "Action=http://****/loginAction.do;jsessionid={JSESSIONID2}"??
????  "Method=POST"??
????  ............
????  LAST);
????//?????????????????????if(strcmp(lr_eval_string("{loginss_count}")??"0")==0)??strcmp??atoi????C???????????????
????if(atoi(lr_eval_string("{loginss_count}"))==0)
????//???????????????????????????????????????????????????????lr_output_message("login failed??????!");
????   lr_error_message("login failed???????username:%s??pwd:%s"??lr_eval_string("{username}")??lr_eval_string("{pwd})"));
????else
????   lr_output_message("login successful????????");
????//??????????
????lr_end_transaction("trans_login"?? LR_AUTO);
????????????web_reg_find?÷???
????web_reg_find
?????ú???????????“??????в????????????”?????ò????????????£?
????web_reg_find("Search=Body"?? //????????Χ
????"SaveCount=ddd"?? //??????????????????
????"Text=aaaa"?? //???????????
????LAST);
???????ú??????????????
????1?? λ??
?????ú???д????????????????????????????д??????????????????
????Web_castom_request();web_image();web_link();web_submit_data();web_submit_form();web_url()
????2?? ??ü???
??????ú???????????и?“SaveCount”???ò???????????????в?????????????????????????????????ж??????????????????????????????????????????LR??????е??????
????// Run the Web Tours sample
????web_url("MercuryWebTours"??
????"URL=http://localhost/MercuryWebTours/"??
????"Resource=0"??
????"RecContentType=text/html"??
????"Referer="??
????"Snapshot=t1.inf"??
????"Mode=HTML"??
????LAST);
????// Set up check for successful login by looking for "Welcome"
????web_reg_find("Text=Welcome"??
????"SaveCount=Welcome_Count"??
????LAST);
????// Now log in
????web_submit_form("login.pl"??
????"Snapshot=t2.inf"??
????..........
????LAST);
????// Check result
????if (atoi(lr__string("{Welcome_Count}")) > 0){ //?ж????Welcome????????????????0
????lr_output_message("Log on successful."); }//??????????Log on successful
????else{ //??????????С?????
????lr_error_message("Log on failed"); //??????????Log on failed
????return(0); }