Quantcast
Channel: All LoadRunner Practitioners Forum posts
Viewing all articles
Browse latest Browse all 12134

Re: Time parameter parsed incorrectly during replay in TruClient Develop Script mode

$
0
0

Hi Guy,

 

One more update: I tried using the following javascript:

 

var Time = new Date();

Time.setMinutes(Time.getMinutes() - 5);
var aMinutes = '' + Time.getMinutes();
var aHours = '' + Time.getHours();

if (aMinutes < 10) {
  aMinutes = 0 + aMinutes;
}

if (aHours < 10) {
  aHours = 0 + aHours;
}

var aTime = aHours + ":" + aMinutes;

Time.setMinutes(Time.getMinutes() - 25);
var bMinutes = '' + Time.getMinutes();
var bHours = '' + Time.getHours();

if (bMinutes < 10) {
  bMinutes = 0 + bMinutes;
}

if (bHours < 10) {
  bHours = 0 + bHours;
}

var bTime = bHours + ":" + bMinutes;

The script works, however... when the values for aTime and bTime are parsed to the UI of IE in develop script mode, I still have the same problem as when using the time parameters with offset in the past. Very strange....

When I add a window.alert() to display the values of aTime and bTime the format is correct, but when parsed to the UI during runtime it is getting malformed for some reason.

 

Peet

 


Viewing all articles
Browse latest Browse all 12134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>