Refresh - Instructions

When these pages are refreshed some content (timestamp display) is updated.

Time Rendered

The time rendered is the current system time in milliseconds truncated to the nearest second.

e.g. System.currentTimeMillis()/1000

Button

You can trigger a refresh by clicking the button.

One of the pages is refreshed on the client via JavaScript. The other page is refreshed by the server rendering.

Refresh Page

Simply reloading the page will refresh the details.

This triggers a reload from the server.

e.g. with WebDriver driver.navigate().refresh();

JavaScript

The JavaScript page will refresh details on load, or when the button is pressed.

The button refreshes the page using JavaScript.

Server Side

The button on the server side rendering page triggers a page reload.

Re-load experiments

You could also experiment with other ways of reloading the page using JavaScript in the console.

e.g. history.go()

Testing

  • Since one date is provided by the client, and the other by the server, can you be sure that the server side time is the same as the client side time?
  • Are there risks to this approach? Can you test for them?