Asqatasun v4 - Summary

Asqatasun v4 - Asqatasun scenario advanced usage

Triggering additional audits in a scenario

Inside a given scenario, an audit is triggered each time the URL changes (e.g. when the user clicks a links or submits a form button).

You may trigger additional audits by adding the Selenium command storeCurrentUrl.

Let's enhance the Transport for London example. Say once we have the list of possible paths, we want to evaluate the accessibility of the page, showing the details of a path.

If sent as is in Asqatasun, the result of the scenario won't show the "third page" (precisely the detail of the path shown by the Javascript button View Details). We have to add a storeCurrentUrl command at the end of the scenario.

The variable must be at least tanaguru. You may add a -my_title_for_this_state_of_the_page to distinguish one storeCurrentUrl from another.

Adding a pause

You may want to add a pause. This is typically used when a page is slow to respond.

To do this, add a Selenium command: click on the "mini-menu" besides a step and choose New step below. Click on clickElement and choose Misc then Pause. Define the duration of the pause in millisecondes.

Adjust selectors

The Webdriver element locator extension may be of a great help to adjust precisely the selectors used in a scenario.