Skip to Content

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.

/wp-content/uploads/2014/09/26_08_544645.png

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:

/wp-content/uploads/2014/09/19_09_544802.png

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

To report this post you need to login first.

9 Comments

You must be Logged on to comment or reply to a post.

    1. Sonal Kumar 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.

      (0) 
      1. Hasan Sidra

        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.

        Regards

        (0) 
        1. 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.

          Thanks,

          Avijit.

          (0) 
  1. Siva Kumar

    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.

    Regards,

    Siva

    (0) 
    1. Reiner Markheiser

      Hi Siva,

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

      http://scn.sap.com/community/it-management/alm/solution-manager/blog/2014/12/01/how-to-use-the-new-cbta-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

      https://service.sap.com/~sapidb/011000358700000194872014E.PDF

      Regards Reiner

      (0) 
    1. 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.

      Thanks,

      Avijit.

      (0) 

Leave a Reply