Hello Everyone,
In this blog post I would like to show the steps to provision a Selenium Runner in a private landscape and connect it to Cloud ALM using SAP Cloud Connector.
This blog post will directly shows configuration steps, for an details about Synthetic User Monitoring solution, refer to SAP Expert Portal .
The overall steps to provision the runner are the following:
You are ready to record scripts and deploy for execution in the provisioned runner
The complete architecture for Synthetic User Monitoring will look like following:
Now let’s see these steps in detail.
1) Provision SAP Cloud Connector in Landscape & SSL Certificate Configuration
An SAP Cloud Connector must be available in the landscape to allow the communication between Selenium Grid/Runner and SAP Cloud ALM. An existing Cloud Connector can be used, or a new one can be provisioned. The details how to install Cloud Connector are described in this SAP Help page .
SSL Requirement: SAP Cloud Connector must have a valid certificate installed. Refer for following documentations for this configuration:
Ensure that a valid certificate is available as follows in the Cloud Connector as shown in picture below:
NOTE: It is possible to use a self-signed certificates.
2) Register SAP Cloud ALM BTP Subaccount in provisioned SAP Cloud Connector
Connect Cloud ALM SAP BTP Sub-Account in Cloud Connector, the Cloud ALM Expert Portal for details.
IMPORTANT: Set a Location ID in the sub-account, this will be used later when registering the Runner in Cloud ALM (step #6)
3) Provision Selenium Server with required components (OS, Browsers and Webdrivers)
This step I will provide additional details. There are several ways to provisioning a selenium infrastructure, including different installation approaches Standalone or distributed scenario (Hub + Nodes).
Two simple ways to provision this infrastructure are the following:
I will show here steps to provision a standalone Selenium Grid with Chrome webdriver.
This will start the Selenium Grid at http://localhost:4444/. You should be able to access it using browser:
4) Define connection mapping in Cloud Connector for the Selenium address
To allow the communication between Cloud ALM and Selenium Server through Cloud Connector, it is required to configure the Selenium Server URL as a resource in Cloud Connector.
Under ‘Cloud to On-Premise’, configure the mapping to the Selenium Grid. In my example Cloud Connector and Selenium Grid were running at same server, hence ‘localhost:4444’ is the ‘Internal Host’ for Selenium Grid. Adjust the Selenium host and port according to your installation.
The configuration should look like the following:
Use the ‘Check Connection’ option in Cloud Connector to ensure that connectivity works at this Cloud Connector level.
5) Configure Cloud Connector in Cloud ALM Landscape Management
Define Cloud Connector in SAP Cloud ALM Landscape Management. This is a manual process, refer to Expert Portal.
6) Configure Runner in SAP Cloud ALM
NOTE: It is highly recommended to setup HTTPS and credentials in Selenium Grid.
During runner registration or maintenance, Cloud ALM triggers test script execution to test connectivity between Cloud ALM and Selenium Server.
Complete details on Expert Portal.
CONTRATULATIONS
You are ready to record scripts using Selenium IDE and deploy for execution in the provisioned runner.
Script Recording details will be cover in second blog post. See you soon. 😊
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
17 | |
14 | |
11 | |
10 | |
10 | |
9 | |
8 | |
7 | |
7 | |
5 |