Skip to Content
Author's profile photo Sonal Kumar

Component Based Test Automation (CBTA) in SAP Solution Manager 7.1

After receiving lot of requests seeking information around Component Based Test Automation (CBTA), I had decided to write a blog post series. This is the first one!

CBTA is a test automation tool present in SAP Solution Manager (SAP SolMan), and the usage right is available for all enterprise support customers. The tool helps in creation of modular test cases which are made of components. The user can record a transaction or a SAP web application as a normal business user, subsequently, CBTA would create a modular test in SAP Solution Manager.

So, what’s big deal? – The CBTA generated tests are made of default and screen components. The default components typically signify user actions e.g. pressing of enter key, navigation to menu item, etc while the screen components represent a screen or sub-screen which does the input for application under test. The screen components are easier to repair or recreate if the application under test changes, which leads to much easier maintenance.


Many default components are pre-shipped by SAP, and it’s available in SAP Solution Manager, while the screen components are created automatically, when a particular screen is accessed while doing the recording. It’s also interesting to note that the screen components are created by accessing the DDIC from the System Under Test, and also the input fields are automatically parameterized. The process of the screen component creation is called Inspection.

The CBTA generated tests would have the following:

  1. The script is made of components e.g. default and screen components
  2. Screen components are generated automatically by reading information from DDIC of System Under Test
  3. The data entered at the time of recording an application, is captured as a default data

The CBTA generated test scripts can be seen in an environment called Test Composition Environment (TCE). TCE provides powerful environment not only to trigger test script creation, but makes edit of the test script easier in the following manner:

  1. New default or screen components can be easily inserted
  2. Sequence of the components can changed easily
  3. Screen component can generated
  4. Usage of parameters can be changed
  5. Test Data Container assignment, etc.

CBTA was launched in 2012 in SAP SolMan 7.1 SP07, and it was supporting following UI technologies:

  1. SAP GUI
  2. CRM Web Client (Sales, Service and Marketing)

With SAP SolMan 7.1 SP10, CBTA started supporting automation of the following UI technologies over and above the ones already mentioned before:

  1. WebDynPro ABAP (WD-ABAP)
  2. WebDynPro JAVA (WD-JAVA)
  3. SAP NetWeaver Portal (SAP NW Portal)
  4. SAP GUI for HTML
  5. Business Server Pages (HTML B controls)

With SAP SolMan 7.1 SP12, CBTA also started supporting automation of SAP UI5.  CBTA generated test for SAP UI 5 application is currently using only default components.

The above mentioned information can be simply put in the following table:


The component used by CBTA has following parameters which are classified in the following:

  1. Import parameter
  2. Export parameter

The parameters are also classified on the basis of usage:

  1. Exposed: The parameter can accept value from TDC
  2. Fixed: As the name suggests,/wp-content/uploads/2014/09/26_08_02_544803.pngthe value does not change.
  3. Local: The parameter is used with in the script to send or receive values
  4. Blank: not used at all e.g. many default components has parameter name: Option, which is reserved for future use, and not currently used by CBTA.

Generally, a suitable Export parameter is exposed, so that end-to-end test can be created.

In the next post, I will explain several of ways of executing a single CBTA test and passing of multiple data iterations via a Test Data Container.

Other relevant Blogs:

1. How to use String function in CBTA

2. Test automation challenges

3. Date handling using CBTA

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      How CBTA is different from QTP (which also comes in integration with Solman) ?



      Author's profile photo Sonal Kumar
      Sonal Kumar
      Blog Post Author

      CBTA generates modular tests in SAP Solution Manager, while HP QTP generates test in keyword mode or command line. Please check the CBTA material on the test management wiki in SCN.

      Author's profile photo Former Member
      Former Member

      Can you elaborate the benefits of one over another.

      We have to go for one tool, which one we should go for and why?

      Really appreciate your input.


      Author's profile photo Avijit Amitabh
      Avijit Amitabh

      Hi Hasan,

      HP UFT/QTP  is quite mature tool and it would take some time for CBTA to attain the same level.

      Currently  I  can list you CBTA benefits :

      1. Usage rights are included for customers with SAP Enterprise Support contract.

      2. Fast repair of damaged CBTA test scripts because of modular approach.

      3. Test creation wizard for business analysts to create test scripts.

      Another clear advantage of using CBTA over QTP is the cost factor. You should decide automation tool depending on the AUT. If the applications are only SAP based then you can use CBTA but if you are planning to automate some third party applications along with ERP such as web services then I would recommend HP UFT.



      Author's profile photo Former Member
      Former Member

      I have few questions related to CBTA tool.

      1. How to do looping statement in CBTA tool. ( Ex: DO...ENDDO command in eCATT ).

      2. How to attach a step in the middle of existing CBTA test scripts. ( Ex: Similar to SAPGUI ( Attach ) command in eCATT ).

      3. How to reset the session in CBTA test script ( Ex: Similar to (ResetGUI = 'X') in eCATT ).

      4. Can you provide me a link for the CBTA command reference. Similar to eCATT command reference ( eCATT Command Reference - eCATT: extended Computer Aided Test Tool (BC-TWB-TST-ECA) - SAP Library )

      5. Is there any special variables are available for CBTA, similar to eCATT special variables ( Special Variables - eCATT: extended Computer Aided Test Tool (BC-TWB-TST-ECA) - SAP Library ).

      Can you elaborate each answers in detail.



      Author's profile photo Reiner Markheiser
      Reiner Markheiser

      Hi Siva,

      1. I just created a blog post yesterday describing the new LOOP capabilities:

      2. this is not available yet, but planned for one of the future releases.

      3. dittto

      4. and 5. Information is available in this document:

      CBTA 3.0 SP02 - Runtime Library and Default Components

      Regards Reiner

      Author's profile photo Former Member
      Former Member

      Hi Sonal

      Can you tell me what is the latest on CBTA - I tried looking up TECH'ED 2015 blogs but could not find anything on this .

      Author's profile photo Avijit Amitabh
      Avijit Amitabh

      Hi Venkat,

      In TechEd 2015 , there was topic on BPCA with respect to CBTA. Apart from that there were no sessions related to CBTA this time. In last year TECH-ED's , there were few sessions on CBTA.



      Author's profile photo Former Member
      Former Member

      I see. ok thanks for the info.



      Author's profile photo Former Member
      Former Member

      Dear Sonal,

      I have some questions on CBTA.

      1. Is automation of testing using CBTA in SolMan 7.1 possible?
      2. Can it get connected to non-SAP applications for testing?

      Thanks in advance.