Principle

Hero Time is a measure unique to Quanta. It does not exist anywhere else. It is the time that the Quanta probe will take between the beginning and the end of a stage.

A step starts at the moment of the action, such as clicking on a link, filling in a form, adding an item to the shopping cart, etc. This action ends when all success checks are reached. These checks can be for example the display of a popup, the navigation to a new page, or a request to one of your servers. Hero Time measures the time between these two events.

Examples

Loading a web page

The probe arrives at the home page of the site and must click on a link to one of the categories. On clicking, a new page should load. Hero Time will measure the time between clicking on this link and the end of the HTML document being received. The page will continue to be displayed after the Hero Time but the probe has already confirmed that the navigation is successful.

Adding an item to the basket

Considering a simple item (no need to choose size or colour), the probe should simply click on "Add to cart". When a user adds an item to the basket, they do not navigate to another page, but a popup should inform them that the item is added to their basket and the basket logo changes to show the number of items in it.

In this case, multiple success checks are expected:

The probe clicks on "Add to cart". The request to /add-to-cart?id=id-of-my-object starts. The Hero Time continues to increase as the request is launched but the server has not yet responded.

The server responds, the request is validated. The first check is therefore successful but the Hero Time continues to increase because the other checks are not validated.

Once the request is validated, the popup is displayed almost instantly. The second check is validated

But the number in the basket only updates every 10 seconds. So the probe waits to see the number change. After a few seconds it changes. The last check is validated, the Hero Time stops.