LoadRunner????
?????scale_ee ???????[ 2017/6/27 15:43:30 ] ?????????????????? LoadRunner
????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); }
??????
???·???
??????????????????
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