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