Action () {Char*ip,temp; intState ; Doubletime_elapsed, duration, waste; merc_timer_handle_t Timer_check; /*lr_save_datetime ("%y-%b-%d-%s", date_now* (One_hour), "time"); Save the date of the day to the parameter time in the Lr_message ("The Time is:%s", lr_eval_string ("{Time}")); The value of the output time*/lr_rendezvous ("Shenqintixiankaishi");//Withdrawal Meeting PointLr_think_time (Ten); Lr_start_transaction ("Shenqintixian"); Timer_check= Lr_start_timer ();//here if you enable Lr_start_timer to calculate when a text checkpoint is spentWeb_custom_request ("Aj_sp_message.php_4", "url=http://ip/lsmvas/account/pretr.action", "Method=post", "resource=0", "reccontenttype=text/html", "Referer=http://newtest.xiaolin.com/new_sp/lsb_record.php?act=bills", "Snapshot=t12.inf", "mode=html", "enctype=", //body is the requested content, you can consult the development "body=accountnum={accountnum}&bankname= Bank name &bankaccountname= user name &bankaccountnumber=212332131231 &bankarea=bjbj&bnname= the account &bnnumber={bnnumber}", last); //AccountNum, Bnnumber parameterization more realistic simulation business, in line with the requirements of the database paradigmLr_log_message ("******************accountnum is:%s", Lr_eval_string ("{AccountNum}"));//Print AccountNumLr_log_message ("******************bnnumber is:%s", Lr_eval_string ("{Bnnumber}"));//Print Bnnumbertime_elapsed=Lr_end_timer (Timer_check); Waste= time_elapsed * +; Lr_wasted_time (waste); Lr_end_transaction ("Shenqintixian", Lr_auto); return 0; }
Http://www.51testing.com/html/71/410671-810897.html
Custom function Web_custom_request request in LR11