??????????Loadrunner?????????2??
?????ЦЦ??Цsmile ???????[ 2016/9/12 10:00:03 ] ?????????????????? LoadRunner ????
???????????????Loadrunner????????????????????????β?????????????????????????????????????????????£?????????????????????漰????C????????????????????
lr_error_message();
lr_log_message();
lr_message();
lr_output_message();
atoi();
?????????c Langue(LR)??????lr?????????????????c????????message???????c??????printf???????????
????printf???????????????printf(“????????????”?? ???????)??
???????и??????????????????????????????????????%??????????????%??????и???????????????г?????????????磺
????“%d”???????????????????
????“%o”???????????????????
????“%x”?????????????????????
????“%c”?????????????
????“%s”???????????????
???????lr_error_message();
?????????F1????????????????????÷????????и???2???÷???
????1?????Login???? lr_error_message???????????????????ù??????????????
????int status = web_url("Login"??
????"URL=https://secure.computing.com//login.asp?user={username}&session={ssid}"??
????"RecContentType=text/html"?? LAST );
????if (status == LR_FAIL) {
????lr_error_message("Error: %s"?? "Unable to login to secure computing");
????return -1;
????}
????2??????????????????iteration??????????????? lr_error_message????iteration???????????????ù??????????????
????int status = web_url("Login"??
????"URL=https://secure.computing.com//login.asp?user={username}&session={ssid}"??
????"RecContentType=text/html"?? LAST );
????if (status == LR_FAIL) {
????lr_error_message( "Error at iteration #%s"?? lr_eval_string( "{iteration}" ) );
????return -1;
????}
????????lr_log_message();
?????????F1????????????????????÷????????и???2???÷???
????1?????Login???? lr_log_message???????????????
????char* abort="aborting...";
????if (init() < 0) {
????lr_log_message ("login failed: %s"?? abort);}
????return(0); }
????2??????????????????iteration??????????????? lr_log_message????iteration???????????????ù??????????????
????lr_log_message( "We are on iteration #%s"?? lr_eval_string( "{iteration}" ) );
????????lr_message();
?????????F1????????????????????÷????????и???1???÷???
????1??init()???????????????????????????????????????
????char* abort="aborting...";
????if (init() < 0) {
????lr_message ("login failed: %s"?? abort);}
????return(0);
????}
???????lr_output_message() ;
?????????F1????????????????????÷????????и???1???÷???
????1??
????????????????????iteration???????????????lr_output_message????iteration???????????????ù??????????????
????lr_output_message( "We are on iteration #%s"?? lr_eval_string( "{iteration}" ) );
?????塢??????????????;
???????????????????4??????????????????????????
????lr_error_message( "lr_error_message??д????? %d"?? atoi(lr_eval_string( "{SCount}" )));
????lr_log_message( "lr_log_message??д???: %d"?? atoi(lr_eval_string( "{SCount}" )));
????lr_output_message( "lr_output_message??д????? %d"?? atoi(lr_eval_string( "{SCount}" )) );
?????????????3????????????????????
????
????SCount???
???????????????F9?????????F10??????????У??????RunTimeData????????????Scount=1??
????
??????????н??
?????????2?????????£?
????1??lr_eval_string();
????char *lr_eval_string( const char *instring );
?????????C?????е??÷??????????????
????2??atoi();
????int atoi( const char *string );
?????????????string???????????
??????
???·???
??????????????????
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