LoadRunner ??????????
???????????? ???????[ 2013/11/28 13:33:11 ] ????????
????8.???????????ж???????
??????transaction ??????????????
????web_reg_find("Text=?????"??"SaveCount=flag"??LAST);
??????transaction ?????? ?ж??????????????
if(atoi(lr_eval_string("{flag}"))>0)
{
lr_set_transaction_status(LR_FAIL);
lr_error_message("???????");
}
else
{
lr_set_transaction_status(LR_PASS);
}
????9.??ù??????????????
web_reg_save_param("param1"??
"LB/IC=ViewState"value=""??
"RB/IC=""??
"Ord=1"??
"Search=Body"??
"RelFrameId=1"??
LAST);
??????ò???
web_url("HelpForm.aspx"?? "URL=http://10.0.0.104/Presentation.Settlement.UI/Form/HelpForm.aspx{param1}"??
"TargetFrame="??
"Resource=0"??
"RecContentType=text/html"??
"Referer=http://10.0.0.104/Presentation.Settlement.UI/Left.aspx"??
"Snapshot=t2.inf"??
"Mode=HTML"??
LAST);
????10. ??????y???html???????
????web_set_max_html_param_len("1024");
????11. ?????????????
char* transid ;
doubletime_elapsed;
merc_timer_handle_ttimer;
lr_start_timer();
if(atoi(lr_eval_string("{flag}"))> 0)
{
lr_message("it is fail ");
lr_set_transaction_status(LR_FAIL);
}
else
{
lr_message("it is ok");
lr_set_transaction_status(LR_PASS);
}
time_elapsed =lr_end_timer(timer);
lr_wasted_time(1000 * time_elapsed);
????12. ???????????????
??????globals.h ????ж?????????????????????????????????????????????????????????action ?е???
#ifndef _GLOBALS_H
#define _GLOBALS_H
//--------------------------------------------------------------------
// Include Files
#include "lrun.h"
#include "web_api.h"
#include "lrw_custom_body.h"
//--------------------------------------------------------------------
// Global Variables
int cpu_check(){
return 10;
}
#endif // _GLOBALS_H
??action ?????
for(i=0;i<100;i++) {
cpu_val=cpu_check()*i;
lr_user_data_point("cpu"?? cpu_val);
sleep(1);
}
??????????????????????????????????????????????μ????棬????????????????????Χ
????lr_user_data_point_ex(const char *sample_name?? double value?? intlog_flag);
????????????????????????????м???????log_flag?м?????????????????????е?log???ж?????
??????
???·???
??????????????????
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