LR Basic Learning _ Scripting information function

Source: Internet
Author: User

LR Basic Learning _ Script Information function action () {//script information functions. //Lr_whoami: Returns the ID of the VUser, the group name, and the scene ID information. /*int id,scid;    Char *vuser_group;    Lr_whoami (&ID,&VUSER_GROUP,&SCID); Lr_error_message ("Group:%s,vuser Id:%d,scenario ID%d", vuser_group,id,scid);*/ //Lr_get_host_name: Returns the host name of the generator running the script. /*char *my_host; my_host = Lr_get_host_name (); Lr_output_message ("my_host:%s", my_host);*/ //Lr_get_master_host_name: Returns the host name of the controller that runs the script. /*char *controller_host; controller_host = Lr_get_master_host_name (); Lr_output_message ("controller_host:%s", Controller_host);*/ //lr_get_vuser_id: After using IP spoofing, you can use LR_GET_VUSER_IP to return the current VUser IP. If the IP spoofing feature is not used, NULL is returned. //Lr_start_timer and Lr_end_timer: Must be used in combination to start a timer and return a handle to the timer, which is then used to stop the specified timer and return the timing result. //The syntax is as follows://merc_timer_handle_t Lr_start_timer ();//Double Lr_end_timer (merc_timer_handle_t timer); return 0;}

LR Basic Learning _ Scripting information function

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: 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.