docs

Support Assistant API

The Support Assistant can also run in silent mode and accept calls through its API. This way it can be integrated in more complex automated scenarios.


General Information

The Support Assistant is currently separated into two main parts:

In the following diagram you can see how the Support Assistant is connected to the individual application layers.

Support Assistant Architecture

There are two different use cases for its integration:

We will take a closer look into these use cases in the following sections.


Window Messaging API

The window messaging API is an asynchronous API based on the browser low-level postMessage/onMessage APIs. It is enabled by using a custom generic communication bus component - WindowCommunicationBus, delivered with the Support Assistant. The WindowCommunicationBus is used for implementing the remote UI interaction between the Support Assistant and the application iFrame.


Programming API

This section illustrates how to use the Support Assistant programming API through specific sap.ui.support.RuleAnalyzer API examples.


Add a Temporary Rule

After the Support Assistant has been started, if in silent mode, you can add a new temporary rule by using the addRule method. Then you can run an analysis with this rule.

sap.ui.require(["sap/ui/support/RuleAnalyzer"],
      function (RuleAnalyzer) {
         var oRule = {
            id: "Temp rule id",
            title: "Temp rule title",
            ...
         };
         RuleAnalyzer.addRule(oRule);
});

For more information about rule properties, see Guidelines and Best Practices.


Run the Analysis

The Support Assistant API allows you to:


View the Results

Related Information

Integrating the Rules in OPA Tests

API Reference: sap.ui.support

API Reference: sap.ui.support.RuleAnalyzer