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).
- Click the current profile icon.
- In the popup, choose + Add.
This opens a new window.
- If you are proposed to Sign-in, you can choose to Continue without an account.
- Select a name (e.g. Selenium) and a color theme.
- Click Done.
The new profile is created.
2. Install the Selenium IDE extension
- Open your browser in the Selenium profile.
- Open the customization panel > Extensions section > visit the browser vendor extension store.
- 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". |
- Install the extension.
- 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.
- Open your browser in the Selenium profile.
- Open the customization panel > Settings section.
- Go to the Privacy and Security section.
- And choose Clear browsing data
Hint
In Chrome, this section can be directly accessed by entering the URL: chrome://settings/clearBrowserData |
- Select Advanced, the Time range All time, and tick all the options.
- 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