LoadRunner time stamp function Web_save_timestamp_param

Source: Internet
Author: User

Example: 1520822348346 (13-bit, MS-level)The purpose of time stamping is to JS cache and prevent csrf, in LR can simply use the following functionWeb_save_timestamp_paramto generate a timestamp

Web_save_timestamp_param ("Tstamp", last);

Lr_output_message ("%s", Lr_eval_string ("{tstamp}"));

BROKERDETAIL.C (+): Web_save_timestamp_param ("Web_save_timestamp_param") was successful [msgid:mmsg-26392]
BROKERDETAIL.C (53): 1433760182344

can also be used to generate unique values.

Web_save_timestamp_param function saves the current timestamp to LoadRunner parameter. Timestamp is the number of milliseconds since midnight January 1st, 1970 (also known as Unix Epoch).
This function is a timestamp that stores the millisecond level. And the timestamp I just took was 1520822348346, and the timestamp was the time now minus January 1, 1970 0 o'clock 00, and then converted to milliseconds.

LoadRunner time stamp function Web_save_timestamp_param

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.