Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

CTE – 4226 Simulator Mode
Canvas has introduced a simulator mode to address the need to logon and mimic the application behaviour to troubleshoot issues faced by the end-users. Simulation is one of the important methods that help analyse the workflow and easily verify, communicate and understand the practical experience of an end-user.

For example, a backend support staff may want to understand the erroneous workflow of the end-user; or may want to find out the navigation sequence of the end-user. Canvas addresses this situation and offers the simulation experience on the application built using Canvas. To use the simulation mode, the support staff must perform the following:

...

To enable simulation mode, perform the following steps:

  1. Implement an authentication mechanism for the simulation user in a simple Java class.

    Note

    Note: Refer

    Image Removed for

    CTAuthenticationProviderSimulatingUser.java for your reference.


  2. Specify the authentication provider class in the securityconfig.property file as shown.

    Code Block
    languagejava
    This is the default authentication provider that is to be used during Login / logout / re-authentication purposes.

    
    AUTH_SERV_PROV_CLASS=com.intellectdesign.canvas.test.providers.CTAuthenticationProviderSimulatingUser


    Image Modified

    Note

    Note: Refer

    Image Removed for

    securityconfig.properties for your reference.


    This property maps the authentication provider that is to be used during logon, logoff and re-authentication purposes. In the example, the class that provides the authentication mechanism is CTAuthenticationProviderSimulatingUser.

  3. Pass isSimulated flag as TRUE as a request parameter in the login request.
    The following is a sample login request that shows the flag 'isSimulated' sent along with other login request parameters.

    Image Modified

Anchor_GoBack_GoBack When  When the simulation user logs into the application and performs activities, the issues can be tracked with the help of logs. The difference between the real end-user and the simulation user can be identified easily.

The following log shows the audit of the simulation user:

Image Modified