Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Richard_Büffing
Participant

Introduction

SAP Cloud ALM Synthetic User Monitoring allows you to monitor any web-ui based application throughout your entire landscape. It simulates the inputs and clicks from an enduser perspective and as such, Synthetic User Monitoring is the spiritual successor of the Enduser Experience Monitoring in SAP Solution Manager.
In this article I'm going to show you step-by-step instructions on how to setup Synthetic User Monitoring in SAP Cloud ALM with a third party Selenium WebDriver provider.

Architecture Overview

In Synthetic User Monitoring you need a so called "Runner" which, in simple terms, is a robot that executes your prepared selenium scripts.
These runners are based on the Selenium WebDriver infrastructure.
So you will need such a web driver infrastructure and for that you have two options:
1. A local on-premise Selenium WebDriver
2. A cloud based 3rd party WebDriver provider.
In this guide we will focus on the cloud based 3rd party provider, depicted in this picture upper half.
The application to be monitored is shown as an SAP BTP application, but it could really be any web application.

Richard_Bffing_0-1712145344109.png

 

Getting a Provider Subscription

SAP Cloud ALM supports a wide variety of Selenium WebDriver providers.
Personally I have successfully tested three of them: BrowserStack, LambdaTest and SauceLabs.
But I suppose any of the providers listed on the Selenium Website will do.
https://www.selenium.dev/documentation/webdriver/drivers/remote_webdriver/ Richard_Bffing_0-1712146382041.png
For the sake of fairness, I will not give any recommendation for a specific provider.
I suggest that you do your own evaluation for any of the available providers and their subscription models.
As a starting point you can just signup for a trial account on any provider and then take it from there.

 

Prerequisites

Once you have your account with the provider of your choice you need the following things:

  • Your account information (this is not your normal username/password with your provider!)
  • The URL of your Selenium WebDriver
  • A Selenium Script: See my blog on creating scripts with Selenium IDE: HERE 

Gathering your account information

For LambdaTest

Log in to your account, then in the upper right corner click on "Dashboard"

Richard_Bffing_1-1712148103250.png

Then in the upper right corner click on your account details, then on "Account Settings"

Richard_Bffing_0-1712147534941.png
From your account settings click on "Password & Security". Here you can copy your user name and access key (this is not your password).

Richard_Bffing_0-1712148300289.png

For SauceLabs

Log in to your account, then from the upper right menu click on the key icon.
Here, again you can copy your user name and access key.

Richard_Bffing_1-1712148507081.png

For Browserstack

Log in to your account then from the upper right menu click on the account icon and choose "Account & Profile"

Richard_Bffing_2-1712148688970.png
Then from the lefthand menu choose "My Profile"

Richard_Bffing_3-1712148747164.png
Here, again you can copy your username and access key.

WebDriver URLs

Depending on your chosen provider you need one of the following URLs:

 

Setup in SAP Cloud ALM

For the setup of Synthetic User Monitoring in SAP Cloud ALM you are going to create the following components:

  • Runners: These are the "robots" that will execute your scripts
  • Resources: These are the Selenium scripts that you created using Selenium IDE
  • Scenarios: These are the "containers" that glue everyhing together, schedule the execustions and show you the results.

Creating Runners

From the Operations section of SAP Cloud ALM choose the tile "Synthetic User Monitoring".

Richard_Bffing_2-1712150906634.png

If this is the first time you access this tile, then you get greeted by a welcome screen.
Click on "configuration"

Richard_Bffing_1-1712150744651.png
When you open the configuration for the first time everything is empty, so you need to add your first runner.
In the left menu click on "Runners" and choose "Add" from the upper right area.

Richard_Bffing_3-1712151250503.png

From the following dialog enter a name for your runner as well as the data gathered from the Prerequisites section of this blog (URLs and user / access token). Make sure you set the type to "Internet" for cloud based Selenium WebDrivers.

Richard_Bffing_4-1712151828127.png
If the registration is successful the result should look like this:

 
Richard_Bffing_3-1712152393874.png
From this view in the "Endpoint" tab you can also adjust further settings or perform a connection test.
 

Creating Resources

In this step you upload the Selenium scripts that you previously created using the Selenium IDE.
In the lefthand menu click on "Resources", then in the upper right area click on "Upload".

Richard_Bffing_0-1712153163945.png

Browse for the Selenium script that you prevsiously created as described in my previous blog.
Create Selenium scripts for SAP Cloud ALM Synthetic User Monitoring
Then click on "Upload"

Richard_Bffing_0-1712154990808.png

Creating Scenarios

So far we have runners and resources, we now have to create a scenario holding the two together.
In the lefthand menu click on "Scenarios", then in the upper right area click "Add"

Richard_Bffing_0-1712155389327.png
In the "General" section give your scenario a name and a description.
Then fom the "Execution" section chose the script to be executed (you uploaded this in the previous chapter)
Finally choose which business services the scenario should be included in.
There's one created by default, but you can also include the scenario in your own business services.
Richard_Bffing_1-1712155697669.png

After the creation, you have to assign a runner to the scenario.
On the lefthand menu choose "Scenarios", then click on the scenario you just created.
Richard_Bffing_4-1712219280399.png

From the "General" section click on "Assign" to assign a runner.

Richard_Bffing_6-1712219361113.png

Now choose the runner that you previously created:

Richard_Bffing_0-1712220497964.png

Finally from the list of runners, make sure the runner is active for this scenario, then save and close:

Richard_Bffing_1-1712220632890.png
 

Business Service Assignment

In order to see results, make sure your scenario is assigned to at least  one business service.
(in my case the assignmend of the previous chapter didn't persist, so I had to do it again here.)
From the lefthand menu choose "Business Services", then cklick on the desired business service you want the scenario to be included. Again this can be the default one (created automatically) or one that you created yourself.
Richard_Bffing_0-1712218078576.png
From the "General" section click on the "Assign" button.
Richard_Bffing_1-1712218385170.png
Choose the scenario you want to be assigned, it will get added to the list above, then click on the "Assign" button.
Richard_Bffing_2-1712218562574.png

The result should look something like this. Notice the Scenario has been added to the list.
You can go ahead and click on the "Close" button.
Richard_Bffing_3-1712218725360.png

If you have done everything correctly the final result should look something like this:
Note that in the lower scenario picture I assigned several runners from different providers and also an on-prem runner which will be part of another blog.

Richard_Bffing_1-1712222002103.png

 

Richard_Bffing_0-1712221265977.png

Conclusion

We have learned how to register runners from different providers. We have uploaded Selenium scripts that we previously created. Finally we have put everything together in a scenario and assigned that to a business service.



 



 


 


 

 

 

 



 

 

 

 

 

Labels in this area