diff --git a/README.md b/README.md index a78a2060..fa22c7f0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The SAP Testing Automation Framework is an open-source orchestration tool designed to validate SAP deployments on Microsoft Azure. It enables you to assess system configurations against SAP on Azure best practices and guidelines. Additionally, the framework facilitates automation for various testing scenarios, including High Availability (HA) functional testing. -> **NOTE**: This repository is currently in private preview and is intended for testing and feedback purposes. As this is an early release, it is not yet production-ready, and breaking changes can be introduced at any time. +> **NOTE**: This repository is currently in public preview and is intended for testing and feedback purposes. As this is an early release, it is not yet production-ready, and breaking changes can be introduced at any time. ![SAP Testing Automation Framework](./docs/images/sap-testing-automation-framework.png) diff --git a/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00/sap-parameters.yaml b/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00/sap-parameters.yaml index d270c252..6cc4f965 100644 --- a/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00/sap-parameters.yaml +++ b/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00/sap-parameters.yaml @@ -9,6 +9,8 @@ sap_sid: X00 # if the SAP Central Services are deployed using high availability scs_high_availability: true scs_cluster_type: AFA +scs_instance_number: "00" +ers_instance_number: "01" ############################################################################# # Database tier # diff --git a/docs/HIGH_AVAILABILITY.md b/docs/HIGH_AVAILABILITY.md index 4e61665f..071036c4 100644 --- a/docs/HIGH_AVAILABILITY.md +++ b/docs/HIGH_AVAILABILITY.md @@ -262,6 +262,15 @@ NFS_provider: "ANF" # or "AFS" # If you're using system-assigned managed identity instead: # - Leave this blank or set to empty string "" user_assigned_identity_client_id: "000000-00000-00000-00000-000000" + +# If you have the SSH key or VM password stored in an Azure Key Vault as a secret: +# - Enter the Azure Key Vault Resource ID in the key_vault_id parameter and the Secret ID in the secret_id parameter. +# - You can find the Resource ID of the Key Vault in Azure Portal → Key Vaults → Your Key Vault → JSON view → Copy the Resource ID +# - You can find the Resource ID of the Secret in Your Key Vault → Secrets → Select Secret → Current Version → Copy the Secret Identifier +# If you're creating SSHKEY or VMPASSWORD file locally: +# - Remove the following two parameters +key_vault_id: /subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults/ +secret_id: https://.vault.azure.net/secrets// ``` 2.2.3. Credential Files @@ -272,7 +281,7 @@ The required credential files depend on the authentication method used to connec 1. Username and Password Authentication: If connecting using a username and password, create a password file by running the following command. It takes the username from hosts.yaml file. ```bash - echo "password" > WORKSPACE/SYSTEM//password + echo "password" > WORKSPACES/SYSTEM//password ``` ### 3. Test Execution @@ -283,13 +292,37 @@ To execute the script, run following command: ./scripts/sap_automation_qa.sh ``` -## Troubleshooting +### 4. Viewing Test Results -Test results and logs can be found in: +After the test execution completes, a detailed HTML report is generated that summarizes the PASS/FAIL status of each test case and includes detailed execution logs for every step of the automation run. -```bash -cd WORKSPACES/SYSTEM//quality_assurance/ -``` +**To locate and view your test report:** + +1. **Navigate to your SAP system’s workspace directory:** + + Replace `` with the name of your SAP system configuration (for example, `DEV-WEEU-SAP01-X00`): + + ```bash + cd WORKSPACES/SYSTEM//quality_assurance/ + ``` +2. **Find your report file:** + + The report file is named using the following format: + + ``` + HA_{SAP_TIER}_{DATABASE_TYPE}_{OS_DISTRO_NAME}_{INVOCATION_ID}.html + ``` + + - `SAP_TIER`: The SAP tier tested (e.g., DB, SCS) + - `DATABASE_TYPE`: The database type (e.g., HANA) + - `OS_DISTRO_NAME`: The operating system distribution (e.g., SLES15SP4) + - `INVOCATION_ID`: A unique identifier (Group invocation ID) for the test run which is logged at the end of test execution. Find example screenshot below: + + ![Test Execution Completion Screenshot](./images/execution_screenshot.png) + +3. **View the report** + + You can open the HTML report in any web browser to review the results and logs. ## Update the framework @@ -333,7 +366,7 @@ To ensure you have the latest features and fixes, it's important to keep your fo This process will update your fork with all the latest features, bug fixes, and improvements from the original SAP Testing Automation Framework repository. -> [!NOTE] +> **NOTE** > If you've made local changes to your fork, you might encounter merge conflicts during step 4. In that case, you'll need to resolve these conflicts before proceeding with the push in step 5. ## Additional Resources diff --git a/docs/images/execution_screenshot.png b/docs/images/execution_screenshot.png new file mode 100644 index 00000000..d10c9669 Binary files /dev/null and b/docs/images/execution_screenshot.png differ