8

Integrating SAP Cloud ALM and the Test Automation Tool [TAT] for SAP S/4 HANA Cl...

 2 years ago
source link: https://blogs.sap.com/2022/06/20/integrating-sap-cloud-alm-and-the-test-automation-tool-tat-for-sap-s-4-hana-cloud/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
June 20, 2022 7 minute read

Integrating SAP Cloud ALM and the Test Automation Tool [TAT] for SAP S/4 HANA Cloud

Introduction

Testing is crucial for SAP S/4HANA Cloud projects. You want to ensure that your business processes run as designed after go-live. In this blog post, I will explain how the SAP Cloud ALM can be integrated with SAP S/4HANA Cloud system to run the Automated test scripts directly from SAP Cloud ALM. This blog covers a complete step by step procedure on how the Integration takes place between SAP Cloud ALM with SAP S/4 HANA Cloud.

I invite you to take a look at my colleague Nicloas ALECH blog that gives us basic insight on Test automation tool for SAP S/4 Hana Cloud and this would be a continuity of the same with in detail setup, configuration and execution of automated test case from SAP Cloud ALM.

This below Flow diagram shows how the automated test scripts are retrieved in SAP Cloud ALM using the Outbound REST APIS using the same we are able to achieve the script execution, log checks, and test case execution status can be centrally orchestrated from SAP Cloud ALM.

1-18.jpg

Flow Diagram

A. Steps for retrieving automated Test cases from SAP S/4HANA Cloud to SAP Cloud ALM

Prerequisites

  1. Ensure you have your SAP Cloud ALM tenant
  2. SAP S/4HANA Cloud Tenant connected with your SAP Cloud ALM  tenant.
  3. Kindly ensure one Implementation project is scoped and created in your SAP Cloud ALM.
  4. Based on your scoped process we will be able to pull the respective E2E automated test cases.

Step1 #

Login to your SAP Cloud ALM System using your credentials

2-7.jpg

Step 2 #

Select Fiori Group Administration and choose Landscape Management tile.

3-5.jpg

Step 3 #

Use the Cloud Service Filter option to filter and choose Test Automation.

4-4.jpg

Click Apply and now you will see the list of service type available.

Capture5.jpg

Step 4 #

Click on the TAT-Test Automation

Here the place holder for creating your automation API.

6-1.jpg

Step 5 #

In this step, if we need to Add an end point for connecting a SAP S/4HANA Cloud system.

Click on Add

7-1.jpg

Step 6 #

In this place we would need to mention all the mandatory fields like

End point Name # SAPS4_TAT

Use case # Customer specific name should be maintained

Root URL # This points to your SAP S/4HANA Cloud system.

User Name # This user should be created and available in your SAP S/4HANA Cloud system.

Password # The Password which we have created and generated in the  SAP S/4HANA Cloud system to be maintained in this area.

ep.jpg

Click on Save and Check Connection.

If we see a GREEN status that means the connections are working fine.

green.jpg
end.jpg

B. Steps to Create a Communication user in the SAP S/4HANA Cloud system.

To make the user available we have mentioned in Step 6 # below are the steps we need to follow in the SAP S/4HANA Cloud System.

Step 1 #

Login to your SAP S/4HANA Cloud System URL.

And below is the user authorization needed for your user to create a communication user.

Click on the tile Maintain Business users under Identity and Access Management Fiori Group.

bp.jpg

And enter your ID/ Username #

i.jpg

Click on your user and add the below highlighted user role for your ID in the SAP S/4HANA Cloud system for creating a communication user.

Click Save.

save.jpg

 Step 2 #

Once the above roles are granted you will see the new tile # Communication arrangements.

Click on this tile.

ca.jpg

Step 3 #

For this Communication arrangement scenario, SAP provides by default  # SAP_COM_0620 

aut.jpg

aut2.jpg

Click on Create.

Please note # you cannot have 2 Communication arrangement with same name.

Step 4 #

Enter the System Id and System Name click create

men.jpg

Enter all the mandatory fields like, Communication System, username, Host name and click Save.

men2.jpg

Enter all the mandatory fields like, Communication System, username, Host name and click Save.

you will see the Inbound Service is generated.

men4.jpg

Step 5#

Inbound services add the service name

ib.jpg

Click on ADD button

Click New User

ib2-1.jpg
ib2.jpg

Mention the Username and click on proposed password and this will be used in your above step 6.

ib3.jpg

Click create button

create.jpg

Finally save the configuration which you have created and now your API is available for our Integration

save2.jpg

C. Steps to Synchronization for your automated test cases within SAP Cloud ALM and SAP S/4HANA Cloud.

Prerequisite #

  1. A project must be created using the available Best practice Content in SAP Cloud ALM.
  2. Scoping must be completed, and phase of the project is ready for testing.

Step 1#

Click on Test Preparation tile which is available under SAP Cloud ALM for Implementation fiori group.

tp1.jpg

Choose your project.

tp2.jpg

Step 2 #

Click on Synch

tp3.jpg

Select your scope and click on Synchronize Automated test cases.

tp4.jpg

The synchronization will be started automatically after you choose Synchronize automated test cases.

Now you will see the automatic test cases generated from SAP S/4HANA Cloud to our SAP Cloud ALM system.

tp6.jpg

D. Steps for Execution of automated test cases from SAP Cloud ALM

Prerequisite # You need to have a user created in the SAP S/4HANA Cloud system for execution of your test process.

We need to create an user in your SAP S/4 HANA Cloud system which will execute your test cases.

Step1#

Login to your SAP S/4HANA Cloud system and select the tile Maintain business user and add the below HIGHLIGHTED role (SAP_BR_ADMIN_TEST_AUTOMATION).

ex1.jpg

Step2#

Go to the tile # Manage your solution and choose the below Highlighted area. # Test your processes

ex2.jpg

Step3#

Click on User settings and Maintain roles as shown in the below snapshot.

ex3.jpg

Step 4#

Click On Add the user (+) Icon

as.jpg

Step 5#

Enter all the mandatory fields and click save.

ex5.jpg

Once this above user has relevant Business Application UI authorization in your SAP S/4HANA Cloud system you are ready to execute the automated test scripts from SAP Cloud ALM.

Step 6#

Go to Test execution Title click Execute and test case will automatically be executed.

ex7.jpg

You can also see the log information of the latest execution. When you click on Open Execution Log

And this will take you to SAP S/4HANA Cloud system where the error screen shot will be automatically captured.

ex8.jpg

Just click on error step screen shot and this will help your functional team to check it out further.

ex9.jpg

If you would like to execute the same Test script with different data sets that is also possible.

You can add the different Variants in the SAP S/4HANA Cloud system and eventually if you re-synch the test scripts in SAP Cloud ALM  then the respective Variants will also be available for you.

ex10.jpg

Conclusion

Now we have successfully completed the integration setup of SAP Cloud ALM with Test Automation Tool [TAT] for SAP S/4 HANA Cloud System we can now do the E2E execution of Automated test script.

we are able to achieve the script execution, log checks, and test case execution status can be centrally orchestrated from SAP Cloud ALM. we can Enjoy E2E Automation within SAP Cloud ALM without any additional cost.

Click here to download the excel file the objective of this is to help you to identify available automated test scripts (test automats). It lists all available automated test scripts, with the needed business roles, the respective business related component, and possibly pre-requisites.

Also I would highly recommend to have this URL handy # SAP Cloud ALM tag as this gives complete information about SAP Cloud ALM product features and its roadmap.

Please do share your valuable thoughts and feedback in the comments section.

Follow the SAP Cloud ALM tag
Check the Application Lifecycle Management topic page
Post and answer questions about SAP Cloud ALM and read other posts on SAP Cloud ALM
Please followNaveen Kumar Damodaran.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK