Custom function Web_custom_request request in LR11

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.