Md5 encryption in Loadrunner

1. Print timestamp

web_save_timestamp_param ("tStamp", LAST); // Print timestamp
lr_output_message ("# Print time:% s", lr_eval_string ("{tStamp}")); // Convert timestamp to string

2.md5 encryption ( download )

Method one: add md5.h file to the project, you need to pay attention to the variables used in Action must be declared in global.h

image

This method runs slowly.

Method 2: Load the compiled dll

lr_load_dll ("md5.dll"); // Call dll method
md5 (a, sign0);
lr_output_message (& sign0 [5]);

This method runs fast.

Guess you like

Origin www.cnblogs.com/fanfeng/p/12746405.html