Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
christophe_garcia
Discoverer
With this blog, you'll learn how to put in place an optimized environment to create Synthetic User Monitoring scripts of type Selenium.






Disclaimer
The setup described in this document is not an SAP recommendation. It's one possibility of setup, but other setups are possible and could be more suited to your situation.

Prerequisite

  • The script-creation environment can be setup on any host able to access the application to monitor.
    In this document, I'm using a Windows 11 host. But this setup is also possible on a Linux or MacOS host.



  • A web browser is required.
    In this document, the I'm using Google Chrome, but other browsers are possible.


1. (optional) create a dedicated profile


Web browsers generally give the possibility to create individual profile (or persona).

Each profile has its own settings/cookies/sessions.

Having a dedicated profile gives the possibility to regularly cleanup the browser cache and ensure that the script creation is always performed in a clean environment. (e.g. with no pending session).

  1. Click the current profile icon.

  2. In the popup, choose + Add.
    This opens a new window.

  3. If you are proposed to Sign-in, you can choose to Continue without an account.

  4. Select a name (e.g. Selenium) and a color theme.

  5. Click Done.


The new profile is created.




2. Install the Selenium IDE extension



  1. Open your browser in the Selenium profile.

  2. Open the customization panel > Extensions section > visit the browser vendor extension store.

  3. Search for "Selenium IDE" extension.






    Important
    Always install extensions from a trusted store, and a trusted provider. Normally, the Selenium IDE is provided by "seleniumhq.org".


  4. Install the extension.

  5. Click the Extensions icon to "pin" the Selenium IDE extension in the browser header.
    The Selenium IDE icon should appear in the browser header bar.


3. Cleanup your browser environment


This is something you should do regularly. Ideally before each creation of a new script.

  1. Open your browser in the Selenium profile.

  2. Open the customization panel > Settings section.

  3. Go to the Privacy and Security section.

  4. And choose Clear browsing data






    Hint
    In Chrome, this section can be directly accessed by entering the URL: chrome://settings/clearBrowserData


  5. Select Advanced, the Time range All time, and tick all the options.

  6. Click the Clear data button.


 

You are now ready to create your Selenium scripts for Synthetic User Monitoring.

Stay tuned for additional blogs on how to create such a Selenium script.

In the meantime, I look forward to your feedbacks.

 

For additional information on SAP Application Lifecycle Management, have a look at the dedicated community topics page: https://community.sap.com/topics/application-lifecycle-management