It is fairly common for web applications to use Javascript timestamps for session handling, for timeouts etc. This is done on the web page using the Javascript GetTime() function which returns the number of milliseconds that have elapsed since midnight 1/1/1970. Since the value of the timestamp does not occur anywhere in the returned content from the server, it will be hard-coded into the recorded script with something like the following: FORM_NAME "TS" := "1130645944998"; // Here"s the timestamp This can be implemented in BDL using the function GetTimeStamp as follows: FORM_NAME "TS" := GetTimeStamp(TIMESTAMP_IN_MS); // "1130645944998"; This may need to be adapted to the particular needs of a given application. For example, if the same timestamp is reused at a later point it should be set in a variable with something similar to the following: sTimeStamp := GetTimeStamp(TIMESTAMP_IN_MS); --- FORM_NAME1 "TS" := sTimeStamp; // "1130645944998"; FORM_NAME2 "TS" := sTimeStamp; // "1130645944998"; An alternative would be to use a recording rule, such as in the attached (Please visit the site to view this file), in order to have SilkPerformer recorder automatically replace the Time Stamp, with the GetTimeStamp function. This means that you would not need to manually customize the script, after recording. Old KB# 19369
↧